From d1d1ddc29dba314963bd178931a2e9c8ecfc01ac Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 30 Apr 2026 16:10:32 +0000 Subject: [PATCH 1/4] feat: Support NativeDashboardService, DashboardChartService, DashboardQueryService, FeaturedContentNativeDashboardService, FeaturedContentMetadata for v1 PiperOrigin-RevId: 907979786 Source-Link: https://github.com/googleapis/googleapis/commit/d9675db6acda5d46f7dfa172e07f594438cf4c25 Source-Link: https://github.com/googleapis/googleapis-gen/commit/81c5aaeedab56f8f361065c777c52c9d2172fbeb Copy-Tag: eyJwIjoiQ2hyb25pY2xlLy5Pd2xCb3QueWFtbCIsImgiOiI4MWM1YWFlZWRhYjU2ZjhmMzYxMDY1Yzc3N2M1MmM5ZDIxNzJmYmViIn0= --- .../Cloud/Chronicle/V1/DashboardChart.php | 29 + .../Cloud/Chronicle/V1/DashboardQuery.php | 32 + .../Cloud/Chronicle/V1/DataAccessControl.php | 31 + .../Google/Cloud/Chronicle/V1/DataTable.php | 32 + .../Google/Cloud/Chronicle/V1/Entity.php | 31 + .../Chronicle/V1/FeaturedContentMetadata.php | 26 + .../V1/FeaturedContentNativeDashboard.php | 30 + .../Google/Cloud/Chronicle/V1/Instance.php | 28 + .../Cloud/Chronicle/V1/NativeDashboard.php | 34 + .../Cloud/Chronicle/V1/ReferenceList.php | 30 + .../Google/Cloud/Chronicle/V1/Rule.php | 33 + .../Cloud/Chronicle/V1/AddChartRequest.php | 227 ++++ .../Cloud/Chronicle/V1/AddChartResponse.php | 121 ++ .../Chronicle/V1/AdvancedFilterConfig.php | 339 +++++ .../V1/AdvancedFilterConfig/ManualOptions.php | 71 + .../V1/AdvancedFilterConfig/QueryOptions.php | 184 +++ .../V1/AdvancedFilterConfig/ValueSource.php | 111 ++ .../Google/Cloud/Chronicle/V1/AxisType.php | 63 + .../V1/BatchGetDashboardChartsRequest.php | 138 ++ .../V1/BatchGetDashboardChartsResponse.php | 67 + .../V1/BulkCreateDataTableRowsRequest.php | 137 ++ .../V1/BulkCreateDataTableRowsResponse.php | 67 + .../V1/BulkGetDataTableRowsRequest.php | 132 ++ .../V1/BulkGetDataTableRowsResponse.php | 67 + .../V1/BulkReplaceDataTableRowsRequest.php | 142 ++ .../V1/BulkReplaceDataTableRowsResponse.php | 67 + .../V1/BulkUpdateDataTableRowsRequest.php | 132 ++ .../V1/BulkUpdateDataTableRowsResponse.php | 67 + .../src/Google/Cloud/Chronicle/V1/Button.php | 185 +++ .../Cloud/Chronicle/V1/Button/Properties.php | 85 ++ .../Google/Cloud/Chronicle/V1/ButtonStyle.php | 58 + .../Cloud/Chronicle/V1/ColumnMetadata.php | 383 ++++++ .../Chronicle/V1/CompilationDiagnostic.php | 193 +++ .../V1/CompilationDiagnostic/Severity.php | 61 + .../Chronicle/V1/CompilationPosition.php | 170 +++ .../V1/CreateDataAccessLabelRequest.php | 183 +++ .../V1/CreateDataAccessScopeRequest.php | 178 +++ .../Chronicle/V1/CreateDataTableRequest.php | 188 +++ .../V1/CreateDataTableRowRequest.php | 137 ++ .../V1/CreateNativeDashboardRequest.php | 132 ++ .../V1/CreateReferenceListRequest.php | 193 +++ .../Chronicle/V1/CreateRetrohuntRequest.php | 137 ++ .../Cloud/Chronicle/V1/CreateRuleRequest.php | 132 ++ .../Chronicle/V1/CreateWatchlistRequest.php | 184 +++ .../Cloud/Chronicle/V1/DashboardAccess.php | 61 + .../Cloud/Chronicle/V1/DashboardChart.php | 431 ++++++ .../V1/DashboardChart/ChartDatasource.php | 101 ++ .../V1/DashboardChart/DrillDownConfig.php | 101 ++ .../DrillDownConfig/DrillDown.php | 176 +++ .../DrillDown/CustomDrillDownSettings.php | 213 +++ .../DrillDownExternalLink.php | 101 ++ .../DrillDownFilter.php | 67 + .../DrillDownDashboardFilter.php | 105 ++ .../DrillDownQuery.php | 67 + .../DrillDown/DefaultDrillDownSettings.php | 67 + .../V1/DashboardChart/Visualization.php | 533 ++++++++ .../V1/DashboardChart/Visualization/Axis.php | 181 +++ .../Visualization/ColumnDef.php | 101 ++ .../ColumnRenderTypeSettings.php | 102 ++ .../Visualization/ColumnTooltipSettings.php | 135 ++ .../Visualization/GoogleMapsConfig.php | 203 +++ .../GoogleMapsConfig/DataSettings.php | 135 ++ .../GoogleMapsConfig/MapPosition.php | 177 +++ .../GoogleMapsConfig/PointSettings.php | 105 ++ .../DashboardChart/Visualization/Legend.php | 328 +++++ .../DashboardChart/Visualization/Series.php | 627 +++++++++ .../Visualization/Series/AreaStyle.php | 271 ++++ .../Visualization/Series/ChartSliceColor.php | 111 ++ .../Visualization/Series/DataLabel.php | 67 + .../Visualization/Series/Encode.php | 161 +++ .../Visualization/Series/GaugeConfig.php | 155 +++ .../Visualization/Series/GaugeValue.php | 101 ++ .../Visualization/Series/ItemColors.php | 67 + .../Visualization/Series/ItemStyle.php | 135 ++ .../Series/MetricTrendConfig.php | 177 +++ .../Series/UserSelectedValues.php | 101 ++ .../Visualization/TableConfig.php | 135 ++ .../DashboardChart/Visualization/Tooltip.php | 85 ++ .../Visualization/VisualMap.php | 106 ++ .../VisualMap/VisualMapPiece.php | 194 +++ .../Chronicle/V1/DashboardDefinition.php | 136 ++ .../V1/DashboardDefinition/ChartConfig.php | 131 ++ .../ChartConfig/ChartLayout.php | 161 +++ .../Cloud/Chronicle/V1/DashboardFilter.php | 410 ++++++ .../Cloud/Chronicle/V1/DashboardQuery.php | 221 ++++ .../Chronicle/V1/DashboardQuery/Input.php | 108 ++ .../V1/DashboardQuery/Input/RelativeTime.php | 87 ++ .../Cloud/Chronicle/V1/DashboardType.php | 86 ++ .../Cloud/Chronicle/V1/DashboardUserData.php | 111 ++ .../Cloud/Chronicle/V1/DataAccessLabel.php | 337 +++++ .../Chronicle/V1/DataAccessLabelReference.php | 227 ++++ .../Cloud/Chronicle/V1/DataAccessScope.php | 470 +++++++ .../Google/Cloud/Chronicle/V1/DataSource.php | 143 ++ .../Google/Cloud/Chronicle/V1/DataTable.php | 585 ++++++++ .../Chronicle/V1/DataTableColumnInfo.php | 274 ++++ .../DataTableColumnType.php | 76 ++ .../Chronicle/V1/DataTableOperationErrors.php | 113 ++ .../Cloud/Chronicle/V1/DataTableRow.php | 235 ++++ .../Cloud/Chronicle/V1/DataTableScopeInfo.php | 79 ++ .../Chronicle/V1/DataTableUpdateSource.php | 68 + .../V1/DeleteDataAccessLabelRequest.php | 91 ++ .../V1/DeleteDataAccessScopeRequest.php | 91 ++ .../Chronicle/V1/DeleteDataTableRequest.php | 137 ++ .../V1/DeleteDataTableRowRequest.php | 91 ++ .../V1/DeleteNativeDashboardRequest.php | 91 ++ .../Cloud/Chronicle/V1/DeleteRuleRequest.php | 151 +++ .../Chronicle/V1/DeleteWatchlistRequest.php | 137 ++ .../Chronicle/V1/DuplicateChartRequest.php | 125 ++ .../Chronicle/V1/DuplicateChartResponse.php | 121 ++ .../V1/DuplicateNativeDashboardRequest.php | 142 ++ .../Cloud/Chronicle/V1/EditChartRequest.php | 318 +++++ .../Cloud/Chronicle/V1/EditChartResponse.php | 121 ++ .../V1/ExecuteDashboardQueryRequest.php | 257 ++++ .../V1/ExecuteDashboardQueryResponse.php | 261 ++++ .../ColumnData.php | 143 ++ .../ColumnType.php | 108 ++ .../ColumnType/PBList.php | 60 + .../ColumnValue.php | 410 ++++++ .../ColumnValue/ValueMetadata.php | 140 ++ .../V1/ExportNativeDashboardsRequest.php | 122 ++ .../V1/ExportNativeDashboardsResponse.php | 75 ++ .../Chronicle/V1/FeaturedContentMetadata.php | 445 +++++++ .../ContentSourceType.php | 68 + .../V1/FeaturedContentNativeDashboard.php | 163 +++ .../Cloud/Chronicle/V1/FilterOperator.php | 139 ++ .../Chronicle/V1/FilterOperatorAndValues.php | 107 ++ .../Chronicle/V1/GetDashboardChartRequest.php | 91 ++ .../Chronicle/V1/GetDashboardQueryRequest.php | 91 ++ .../V1/GetDataAccessLabelRequest.php | 91 ++ .../V1/GetDataAccessScopeRequest.php | 91 ++ .../V1/GetDataTableOperationErrorsRequest.php | 91 ++ .../Chronicle/V1/GetDataTableRequest.php | 91 ++ .../Chronicle/V1/GetDataTableRowRequest.php | 91 ++ ...tFeaturedContentNativeDashboardRequest.php | 91 ++ .../Cloud/Chronicle/V1/GetInstanceRequest.php | 91 ++ .../V1/GetNativeDashboardRequest.php | 129 ++ .../Chronicle/V1/GetReferenceListRequest.php | 129 ++ .../Chronicle/V1/GetRetrohuntRequest.php | 91 ++ .../Chronicle/V1/GetRuleDeploymentRequest.php | 91 ++ .../Cloud/Chronicle/V1/GetRuleRequest.php | 129 ++ .../Chronicle/V1/GetWatchlistRequest.php | 96 ++ .../Cloud/Chronicle/V1/ImportExportStatus.php | 111 ++ .../V1/ImportNativeDashboardsInlineSource.php | 67 + .../V1/ImportNativeDashboardsRequest.php | 132 ++ .../V1/ImportNativeDashboardsResponse.php | 91 ++ .../Google/Cloud/Chronicle/V1/InAppLink.php | 135 ++ .../Cloud/Chronicle/V1/IngestionLabel.php | 109 ++ .../Cloud/Chronicle/V1/InlineDestination.php | 67 + .../Google/Cloud/Chronicle/V1/InputsUsed.php | 137 ++ ...lFeaturedContentNativeDashboardRequest.php | 135 ++ ...FeaturedContentNativeDashboardResponse.php | 75 ++ .../Google/Cloud/Chronicle/V1/Instance.php | 71 + .../Cloud/Chronicle/V1/LanguageFeature.php | 70 + .../Google/Cloud/Chronicle/V1/LegendAlign.php | 58 + .../Cloud/Chronicle/V1/LegendOrient.php | 53 + .../V1/ListDataAccessLabelsRequest.php | 220 +++ .../V1/ListDataAccessLabelsResponse.php | 105 ++ .../V1/ListDataAccessScopesRequest.php | 220 +++ .../V1/ListDataAccessScopesResponse.php | 149 +++ .../Chronicle/V1/ListDataTableRowsRequest.php | 247 ++++ .../V1/ListDataTableRowsResponse.php | 105 ++ .../Chronicle/V1/ListDataTablesRequest.php | 220 +++ .../Chronicle/V1/ListDataTablesResponse.php | 105 ++ ...FeaturedContentNativeDashboardsRequest.php | 277 ++++ ...eaturedContentNativeDashboardsResponse.php | 109 ++ .../V1/ListNativeDashboardsRequest.php | 208 +++ .../V1/ListNativeDashboardsResponse.php | 105 ++ .../V1/ListReferenceListsRequest.php | 221 ++++ .../V1/ListReferenceListsResponse.php | 109 ++ .../Chronicle/V1/ListRetrohuntsRequest.php | 225 ++++ .../Chronicle/V1/ListRetrohuntsResponse.php | 105 ++ .../V1/ListRuleDeploymentsRequest.php | 230 ++++ .../V1/ListRuleDeploymentsResponse.php | 105 ++ .../Chronicle/V1/ListRuleRevisionsRequest.php | 221 ++++ .../V1/ListRuleRevisionsResponse.php | 105 ++ .../Cloud/Chronicle/V1/ListRulesRequest.php | 263 ++++ .../Cloud/Chronicle/V1/ListRulesResponse.php | 105 ++ .../Chronicle/V1/ListWatchlistsRequest.php | 232 ++++ .../Chronicle/V1/ListWatchlistsResponse.php | 105 ++ .../Google/Cloud/Chronicle/V1/Markdown.php | 111 ++ .../V1/Markdown/MarkdownProperties.php | 67 + .../Cloud/Chronicle/V1/MetricDisplayTrend.php | 68 + .../Cloud/Chronicle/V1/MetricFormat.php | 61 + .../Cloud/Chronicle/V1/MetricTrendType.php | 61 + .../Cloud/Chronicle/V1/NativeDashboard.php | 493 +++++++ .../Chronicle/V1/NativeDashboardView.php | 62 + .../NativeDashboardWithChartsAndQueries.php | 145 ++ .../Google/Cloud/Chronicle/V1/PlotMode.php | 68 + .../Cloud/Chronicle/V1/PointSizeType.php | 61 + .../Cloud/Chronicle/V1/QueryRuntimeError.php | 203 +++ .../V1/QueryRuntimeError/ErrorSeverity.php | 61 + .../V1/QueryRuntimeError/MetadataKey.php | 54 + .../QueryRuntimeErrorMetadata.php | 101 ++ .../V1/QueryRuntimeError/WarningReason.php | 68 + .../Cloud/Chronicle/V1/ReferenceList.php | 409 ++++++ .../Cloud/Chronicle/V1/ReferenceListEntry.php | 67 + .../Cloud/Chronicle/V1/ReferenceListScope.php | 75 ++ .../Chronicle/V1/ReferenceListSyntaxType.php | 68 + .../Cloud/Chronicle/V1/ReferenceListView.php | 67 + .../Cloud/Chronicle/V1/RemoveChartRequest.php | 125 ++ .../Google/Cloud/Chronicle/V1/RenderType.php | 68 + .../Google/Cloud/Chronicle/V1/Retrohunt.php | 255 ++++ .../Cloud/Chronicle/V1/Retrohunt/State.php | 75 ++ .../Cloud/Chronicle/V1/RetrohuntMetadata.php | 157 +++ .../src/Google/Cloud/Chronicle/V1/Rule.php | 810 ++++++++++++ .../Chronicle/V1/Rule/CompilationState.php | 63 + .../Cloud/Chronicle/V1/RuleDeployment.php | 477 +++++++ .../V1/RuleDeployment/ExecutionState.php | 72 + .../Google/Cloud/Chronicle/V1/RuleType.php | 62 + .../Google/Cloud/Chronicle/V1/RuleView.php | 77 ++ .../Cloud/Chronicle/V1/RunFrequency.php | 69 + .../Google/Cloud/Chronicle/V1/ScopeInfo.php | 81 ++ .../Chronicle/V1/SeriesStackStrategy.php | 63 + .../Google/Cloud/Chronicle/V1/SeriesType.php | 84 ++ .../Google/Cloud/Chronicle/V1/Severity.php | 71 + .../Google/Cloud/Chronicle/V1/TileType.php | 69 + .../Google/Cloud/Chronicle/V1/TimeUnit.php | 82 ++ .../Cloud/Chronicle/V1/TimestampMetadata.php | 203 +++ .../Cloud/Chronicle/V1/ToolTipTrigger.php | 58 + .../V1/UpdateDataAccessLabelRequest.php | 167 +++ .../V1/UpdateDataAccessScopeRequest.php | 172 +++ .../Chronicle/V1/UpdateDataTableRequest.php | 161 +++ .../V1/UpdateDataTableRowRequest.php | 156 +++ .../V1/UpdateNativeDashboardRequest.php | 197 +++ .../V1/UpdateReferenceListRequest.php | 167 +++ .../V1/UpdateRuleDeploymentRequest.php | 152 +++ .../Cloud/Chronicle/V1/UpdateRuleRequest.php | 157 +++ .../Chronicle/V1/UpdateWatchlistRequest.php | 152 +++ .../Cloud/Chronicle/V1/VisualMapType.php | 62 + .../Google/Cloud/Chronicle/V1/Watchlist.php | 414 ++++++ .../Chronicle/V1/Watchlist/EntityCount.php | 101 ++ .../Watchlist/EntityPopulationMechanism.php | 75 ++ .../EntityPopulationMechanism/Manual.php | 33 + .../Chronicle/V1/WatchlistUserPreferences.php | 67 + .../batch_get_dashboard_charts.php | 91 ++ .../get_dashboard_chart.php | 78 ++ .../execute_dashboard_query.php | 85 ++ .../get_dashboard_query.php | 78 ++ .../create_data_access_label.php | 89 ++ .../create_data_access_scope.php | 105 ++ .../delete_data_access_label.php | 78 ++ .../delete_data_access_scope.php | 76 ++ .../get_data_access_label.php | 78 ++ .../get_data_access_scope.php | 78 ++ .../list_data_access_labels.php | 81 ++ .../list_data_access_scopes.php | 81 ++ .../update_data_access_label.php | 59 + .../update_data_access_scope.php | 79 ++ .../bulk_create_data_table_rows.php | 108 ++ .../bulk_get_data_table_rows.php | 96 ++ .../bulk_replace_data_table_rows.php | 108 ++ .../bulk_update_data_table_rows.php | 92 ++ .../create_data_table.php | 87 ++ .../create_data_table_row.php | 87 ++ .../delete_data_table.php | 76 ++ .../delete_data_table_row.php | 77 ++ .../DataTableServiceClient/get_data_table.php | 78 ++ .../get_data_table_operation_errors.php | 78 ++ .../get_data_table_row.php | 79 ++ .../list_data_table_rows.php | 83 ++ .../list_data_tables.php | 77 ++ .../update_data_table.php | 72 + .../update_data_table_row.php | 74 ++ .../EntityServiceClient/create_watchlist.php | 83 ++ .../EntityServiceClient/delete_watchlist.php | 76 ++ .../V1/EntityServiceClient/get_watchlist.php | 79 ++ .../EntityServiceClient/list_watchlists.php | 77 ++ .../EntityServiceClient/update_watchlist.php | 77 ++ .../get_featured_content_native_dashboard.php | 80 ++ ...tall_featured_content_native_dashboard.php | 80 ++ ...ist_featured_content_native_dashboards.php | 84 ++ .../V1/InstanceServiceClient/get_instance.php | 73 + .../add_chart.php | 90 ++ .../create_native_dashboard.php | 83 ++ .../delete_native_dashboard.php | 76 ++ .../duplicate_chart.php | 87 ++ .../duplicate_native_dashboard.php | 85 ++ .../edit_chart.php | 81 ++ .../export_native_dashboards.php | 80 ++ .../get_native_dashboard.php | 78 ++ .../import_native_dashboards.php | 82 ++ .../list_native_dashboards.php | 81 ++ .../remove_chart.php | 87 ++ .../update_native_dashboard.php | 75 ++ .../create_reference_list.php | 111 ++ .../get_reference_list.php | 78 ++ .../list_reference_lists.php | 82 ++ .../update_reference_list.php | 90 ++ .../V1/RuleServiceClient/create_retrohunt.php | 90 ++ .../V1/RuleServiceClient/create_rule.php | 74 ++ .../V1/RuleServiceClient/delete_rule.php | 73 + .../V1/RuleServiceClient/get_retrohunt.php | 79 ++ .../samples/V1/RuleServiceClient/get_rule.php | 73 + .../RuleServiceClient/get_rule_deployment.php | 78 ++ .../V1/RuleServiceClient/list_retrohunts.php | 78 ++ .../list_rule_deployments.php | 79 ++ .../RuleServiceClient/list_rule_revisions.php | 78 ++ .../V1/RuleServiceClient/list_rules.php | 78 ++ .../V1/RuleServiceClient/update_rule.php | 59 + .../update_rule_deployment.php | 83 ++ .../V1/Client/DashboardChartServiceClient.php | 310 +++++ .../V1/Client/DashboardQueryServiceClient.php | 332 +++++ .../Client/DataAccessControlServiceClient.php | 572 ++++++++ .../src/V1/Client/DataTableServiceClient.php | 747 +++++++++++ .../v1/src/V1/Client/EntityServiceClient.php | 389 ++++++ ...redContentNativeDashboardServiceClient.php | 431 ++++++ .../src/V1/Client/InstanceServiceClient.php | 255 ++++ .../Client/NativeDashboardServiceClient.php | 644 +++++++++ .../V1/Client/ReferenceListServiceClient.php | 366 +++++ .../v1/src/V1/Client/RuleServiceClient.php | 733 ++++++++++ .../Chronicle/v1/src/V1/gapic_metadata.json | 429 ++++++ ...dashboard_chart_service_client_config.json | 44 + ...hboard_chart_service_descriptor_config.php | 56 + ...board_chart_service_rest_client_config.php | 98 ++ ...dashboard_query_service_client_config.json | 54 + ...hboard_query_service_descriptor_config.php | 57 + ...board_query_service_rest_client_config.php | 99 ++ ..._access_control_service_client_config.json | 94 ++ ...cess_control_service_descriptor_config.php | 171 +++ ...ess_control_service_rest_client_config.php | 198 +++ .../data_table_service_client_config.json | 119 ++ .../data_table_service_descriptor_config.php | 233 ++++ .../data_table_service_rest_client_config.php | 254 ++++ .../entity_service_client_config.json | 69 + .../entity_service_descriptor_config.php | 101 ++ .../entity_service_rest_client_config.php | 134 ++ ...ative_dashboard_service_client_config.json | 59 + ...ve_dashboard_service_descriptor_config.php | 80 ++ ...e_dashboard_service_rest_client_config.php | 110 ++ .../instance_service_client_config.json | 39 + .../instance_service_descriptor_config.php | 43 + .../instance_service_rest_client_config.php | 87 ++ ...ative_dashboard_service_client_config.json | 104 ++ ...ve_dashboard_service_descriptor_config.php | 187 +++ ...e_dashboard_service_rest_client_config.php | 221 ++++ .../reference_list_service_client_config.json | 64 + ...ference_list_service_descriptor_config.php | 89 ++ ...erence_list_service_rest_client_config.php | 126 ++ .../resources/rule_service_client_config.json | 126 ++ .../rule_service_descriptor_config.php | 221 ++++ .../rule_service_rest_client_config.php | 217 +++ .../DashboardChartServiceClientTest.php | 241 ++++ .../DashboardQueryServiceClientTest.php | 246 ++++ .../DataAccessControlServiceClientTest.php | 866 ++++++++++++ .../V1/Client/DataTableServiceClientTest.php | 1178 +++++++++++++++++ .../V1/Client/EntityServiceClientTest.php | 477 +++++++ ...ontentNativeDashboardServiceClientTest.php | 295 +++++ .../V1/Client/InstanceServiceClientTest.php | 155 +++ .../NativeDashboardServiceClientTest.php | 1021 ++++++++++++++ .../Client/ReferenceListServiceClientTest.php | 434 ++++++ .../Unit/V1/Client/RuleServiceClientTest.php | 1100 +++++++++++++++ 351 files changed, 53897 insertions(+) create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/NativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php new file mode 100644 index 000000000000..e57de8719a47 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xD4Y\x0A/google/cloud/chronicle/v1/dashboard_chart.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A/google/cloud/chronicle/v1/dashboard_query.proto\"\xFD=\x0A\x0EDashboardChart\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12J\x0A\x10native_dashboard\x18\x04 \x01(\x09B0\xE0A\x03\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12;\x0A\x09tile_type\x18\x07 \x01(\x0E2#.google.cloud.chronicle.v1.TileTypeB\x03\xE0A\x01\x12X\x0A\x10chart_datasource\x18\x05 \x01(\x0B29.google.cloud.chronicle.v1.DashboardChart.ChartDatasourceB\x03\xE0A\x01\x12S\x0A\x0Dvisualization\x18\x06 \x01(\x0B27.google.cloud.chronicle.v1.DashboardChart.VisualizationB\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11drill_down_config\x18\x09 \x01(\x0B29.google.cloud.chronicle.v1.DashboardChart.DrillDownConfigB\x03\xE0A\x01\x12\x13\x0A\x06tokens\x18\x0A \x03(\x09B\x03\xE0A\x01\x1A\x95\x01\x0A\x0FChartDatasource\x12E\x0A\x0Fdashboard_query\x18\x01 \x01(\x09B,\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\x12;\x0A\x0Cdata_sources\x18\x03 \x03(\x0E2%.google.cloud.chronicle.v1.DataSource\x1A\x8C+\x0A\x0DVisualization\x12L\x0A\x06x_axes\x18\x07 \x03(\x0B2<.google.cloud.chronicle.v1.DashboardChart.Visualization.Axis\x12L\x0A\x06y_axes\x18\x08 \x03(\x0B2<.google.cloud.chronicle.v1.DashboardChart.Visualization.Axis\x12N\x0A\x06series\x18\x03 \x03(\x0B2>.google.cloud.chronicle.v1.DashboardChart.Visualization.Series\x12P\x0A\x07tooltip\x18\x04 \x01(\x0B2?.google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip\x12O\x0A\x07legends\x18\x09 \x03(\x0B2>.google.cloud.chronicle.v1.DashboardChart.Visualization.Legend\x12V\x0A\x0Bcolumn_defs\x18\x0A \x03(\x0B2A.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef\x12^\x0A\x0Ctable_config\x18\x12 \x01(\x0B2C.google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfigB\x03\xE0A\x01\x121\x0A\x06button\x18\x0B \x01(\x0B2!.google.cloud.chronicle.v1.Button\x12:\x0A\x08markdown\x18\x11 \x01(\x0B2#.google.cloud.chronicle.v1.MarkdownB\x03\xE0A\x01\x12\x1A\x0A\x0Dseries_column\x18\x0C \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dgrouping_type\x18\x0D \x01(\x09B\x03\xE0A\x01\x12i\x0A\x12google_maps_config\x18\x0E \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfigB\x03\xE0A\x01\x12'\x0A\x1Athreshold_coloring_enabled\x18\x0F \x01(\x08B\x03\xE0A\x01\x12[\x0A\x0Bvisual_maps\x18\x10 \x03(\x0B2A.google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMapB\x03\xE0A\x01\x1A\x88\x01\x0A\x04Axis\x126\x0A\x09axis_type\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.AxisType\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x10\x0A\x03min\x18\x06 \x01(\x05H\x00\x88\x01\x01\x12\x10\x0A\x03max\x18\x07 \x01(\x05H\x01\x88\x01\x01B\x06\x0A\x04_minB\x06\x0A\x04_max\x1A\xC1\x12\x0A\x06Series\x12:\x0A\x0Bseries_type\x18\x08 \x01(\x0E2%.google.cloud.chronicle.v1.SeriesType\x12\x13\x0A\x0Bseries_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bshow_symbol\x18\x04 \x01(\x08\x12\x17\x0A\x0Fshow_background\x18\x05 \x01(\x08\x12\x0D\x0A\x05stack\x18\x06 \x01(\x09\x12M\x0A\x15series_stack_strategy\x18\x09 \x01(\x0E2..google.cloud.chronicle.v1.SeriesStackStrategy\x12U\x0A\x06encode\x18\x0A \x01(\x0B2E.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode\x12\x0D\x0A\x05label\x18\x0B \x01(\x09\x12\x0D\x0A\x05field\x18\x0C \x01(\x09\x12a\x0A\x0Adata_label\x18\x0D \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabelB\x03\xE0A\x01\x12\x13\x0A\x06radius\x18\x0E \x03(\x09B\x03\xE0A\x01\x12a\x0A\x0Aitem_style\x18\x0F \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyleB\x03\xE0A\x01\x12 \x0A\x13series_unique_value\x18\x10 \x01(\x09B\x03\xE0A\x01\x12a\x0A\x0Aarea_style\x18\x11 \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyleB\x03\xE0A\x01\x12c\x0A\x0Bitem_colors\x18\x12 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColorsB\x03\xE0A\x01\x12e\x0A\x0Cgauge_config\x18\x13 \x01(\x0B2J.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfigB\x03\xE0A\x01\x12r\x0A\x13metric_trend_config\x18\x14 \x01(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfigB\x03\xE0A\x01\x1A@\x0A\x06Encode\x12\x09\x0A\x01x\x18\x01 \x01(\x09\x12\x09\x0A\x01y\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\x12\x11\x0A\x09item_name\x18\x04 \x01(\x09\x1A\x1E\x0A\x09DataLabel\x12\x11\x0A\x04show\x18\x01 \x01(\x08B\x03\xE0A\x01\x1AU\x0A\x09ItemStyle\x12\x19\x0A\x0Cborder_width\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x19\x0A\x0Cborder_color\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\xBB\x01\x0A\x09AreaStyle\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06origin\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bshadow_blur\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x19\x0A\x0Cshadow_color\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fshadow_offset_x\x18\x05 \x01(\x05B\x03\xE0A\x01\x12\x1C\x0A\x0Fshadow_offset_y\x18\x06 \x01(\x05B\x03\xE0A\x01\x12\x14\x0A\x07opacity\x18\x07 \x01(\x05B\x03\xE0A\x01\x1A<\x0A\x12UserSelectedValues\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05label\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\x8A\x01\x0A\x0FChartSliceColor\x12\x10\x0A\x03key\x18\x01 \x01(\x09B\x03\xE0A\x01\x12e\x0A\x05value\x18\x02 \x01(\x0B2Q.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValuesB\x03\xE0A\x01\x1Aq\x0A\x0AItemColors\x12c\x0A\x06colors\x18\x01 \x03(\x0B2N.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColorB\x03\xE0A\x01\x1A4\x0A\x0AGaugeValue\x12\x12\x0A\x05value\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\xC0\x02\x0A\x0BGaugeConfig\x12b\x0A\x0Abase_value\x18\x01 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x12c\x0A\x0Blimit_value\x18\x02 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x12h\x0A\x10threshold_values\x18\x03 \x03(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x1A\x96\x02\x0A\x11MetricTrendConfig\x12C\x0A\x0Dmetric_format\x18\x01 \x01(\x0E2'.google.cloud.chronicle.v1.MetricFormatB\x03\xE0A\x01\x12\x1E\x0A\x11show_metric_trend\x18\x05 \x01(\x08B\x03\xE0A\x01\x12P\x0A\x14metric_display_trend\x18\x03 \x01(\x0E2-.google.cloud.chronicle.v1.MetricDisplayTrendB\x03\xE0A\x01\x12J\x0A\x11metric_trend_type\x18\x04 \x01(\x0E2*.google.cloud.chronicle.v1.MetricTrendTypeB\x03\xE0A\x01\x1A[\x0A\x07Tooltip\x12\x0C\x0A\x04show\x18\x01 \x01(\x08\x12B\x0A\x0Ftooltip_trigger\x18\x03 \x01(\x0E2).google.cloud.chronicle.v1.ToolTipTrigger\x1A\x87\x02\x0A\x06Legend\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0C\x0A\x04show\x18\x02 \x01(\x08\x12\x0F\x0A\x07z_level\x18\x03 \x01(\x05\x12\x09\x0A\x01z\x18\x04 \x01(\x05\x12\x0C\x0A\x04left\x18\x05 \x01(\x05\x12\x0B\x0A\x03top\x18\x06 \x01(\x05\x12\x0D\x0A\x05right\x18\x07 \x01(\x05\x12\x0E\x0A\x06bottom\x18\x08 \x01(\x05\x12>\x0A\x0Dlegend_orient\x18\x0C \x01(\x0E2'.google.cloud.chronicle.v1.LegendOrient\x12<\x0A\x0Clegend_align\x18\x0D \x01(\x0E2&.google.cloud.chronicle.v1.LegendAlign\x12\x0F\x0A\x07padding\x18\x0B \x03(\x05\x1A*\x0A\x09ColumnDef\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x0E\x0A\x06header\x18\x02 \x01(\x09\x1Av\x0A\x18ColumnRenderTypeSettings\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x12column_render_type\x18\x02 \x01(\x0E2%.google.cloud.chronicle.v1.RenderTypeB\x03\xE0A\x01\x1Am\x0A\x15ColumnTooltipSettings\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12 \x0A\x13header_tooltip_text\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11cell_tooltip_text\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\x9D\x02\x0A\x0BTableConfig\x12\x1D\x0A\x10enable_text_wrap\x18\x01 \x01(\x08B\x03\xE0A\x01\x12z\x0A\x1Bcolumn_render_type_settings\x18\x02 \x03(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettingsB\x03\xE0A\x01\x12s\x0A\x17column_tooltip_settings\x18\x03 \x03(\x0B2M.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettingsB\x03\xE0A\x01\x1A\xFD\x05\x0A\x10GoogleMapsConfig\x12q\x0A\x0Ddata_settings\x18\x01 \x01(\x0B2U.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettingsB\x03\xE0A\x01\x12;\x0A\x09plot_mode\x18\x02 \x01(\x0E2#.google.cloud.chronicle.v1.PlotModeB\x03\xE0A\x01\x12o\x0A\x0Cmap_position\x18\x03 \x01(\x0B2T.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPositionB\x03\xE0A\x01\x12s\x0A\x0Epoint_settings\x18\x04 \x01(\x0B2V.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettingsB\x03\xE0A\x01\x1Af\x0A\x0CDataSettings\x12\x1C\x0A\x0Flatitude_column\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10longitude_column\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ccount_column\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A~\x0A\x0BMapPosition\x12\x15\x0A\x08fit_data\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Elatitude_value\x18\x05 \x01(\x01B\x03\xE0A\x01\x12\x1C\x0A\x0Flongitude_value\x18\x06 \x01(\x01B\x03\xE0A\x01\x12\x1D\x0A\x10zoom_scale_value\x18\x07 \x01(\x01B\x03\xE0A\x01\x1Ak\x0A\x0DPointSettings\x12F\x0A\x0Fpoint_size_type\x18\x01 \x01(\x0E2(.google.cloud.chronicle.v1.PointSizeTypeB\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\xB2\x02\x0A\x09VisualMap\x12F\x0A\x0Fvisual_map_type\x18\x01 \x01(\x0E2(.google.cloud.chronicle.v1.VisualMapTypeB\x03\xE0A\x01\x12e\x0A\x06pieces\x18\x02 \x03(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPieceB\x03\xE0A\x01\x1Av\x0A\x0EVisualMapPiece\x12\x15\x0A\x03min\x18\x01 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x15\x0A\x03max\x18\x02 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x12\x0A\x05color\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05label\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04_minB\x06\x0A\x04_max\x1A\xED\x0B\x0A\x0FDrillDownConfig\x12b\x0A\x10left_drill_downs\x18\x01 \x03(\x0B2C.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDownB\x03\xE0A\x02\x12c\x0A\x11right_drill_downs\x18\x02 \x03(\x0B2C.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDownB\x03\xE0A\x02\x1A\x90\x0A\x0A\x09DrillDown\x12x\x0A\x10default_settings\x18\x03 \x01(\x0B2\\.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettingsH\x00\x12v\x0A\x0Fcustom_settings\x18\x04 \x01(\x0B2[.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettingsH\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x1A0\x0A\x18DefaultDrillDownSettings\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x02\x1A\xA6\x07\x0A\x17CustomDrillDownSettings\x12{\x0A\x05query\x18\x03 \x01(\x0B2j.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQueryH\x00\x12}\x0A\x06filter\x18\x04 \x01(\x0B2k.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilterH\x00\x12\x8A\x01\x0A\x0Dexternal_link\x18\x05 \x01(\x0B2q.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLinkH\x00\x12\x14\x0A\x07new_tab\x18\x01 \x01(\x08B\x03\xE0A\x02\x12\x1E\x0A\x11left_click_column\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0EDrillDownQuery\x12\x12\x0A\x05query\x18\x01 \x01(\x09B\x03\xE0A\x02\x1A\xD5\x02\x0A\x0FDrillDownFilter\x12\xA5\x01\x0A\x11dashboard_filters\x18\x01 \x03(\x0B2\x84\x01.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilterB\x03\xE0A\x02\x1A\x99\x01\x0A\x18DrillDownDashboardFilter\x12 \x0A\x13dashboard_filter_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12[\x0A\x1Afilter_operator_and_values\x18\x02 \x03(\x0B22.google.cloud.chronicle.v1.FilterOperatorAndValuesB\x03\xE0A\x02\x1AD\x0A\x15DrillDownExternalLink\x12\x11\x0A\x04link\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06actionB\x0A\x0A\x08settings:\xA4\x01\xEAA\xA0\x01\x0A'chronicle.googleapis.com/DashboardChart\x12Tprojects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}*\x0FdashboardCharts2\x0EdashboardChart\"\x90\x02\x0A\x06Button\x12\x12\x0A\x05label\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09hyperlink\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x14\x0A\x07new_tab\x18\x04 \x01(\x08B\x03\xE0A\x01\x12E\x0A\x0Aproperties\x18\x05 \x01(\x0B2,.google.cloud.chronicle.v1.Button.PropertiesB\x03\xE0A\x01\x1Ac\x0A\x0AProperties\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12A\x0A\x0Cbutton_style\x18\x02 \x01(\x0E2&.google.cloud.chronicle.v1.ButtonStyleB\x03\xE0A\x01\"\xA6\x01\x0A\x08Markdown\x12\x14\x0A\x07content\x18\x01 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x0Aproperties\x18\x02 \x01(\x0B26.google.cloud.chronicle.v1.Markdown.MarkdownPropertiesB\x03\xE0A\x01\x1A3\x0A\x12MarkdownProperties\x12\x1D\x0A\x10background_color\x18\x03 \x01(\x09B\x03\xE0A\x01\"Y\x0A\x18GetDashboardChartRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA1\x01\x0A\x1EBatchGetDashboardChartsRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/DashboardChart\x12>\x0A\x05names\x18\x02 \x03(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"f\x0A\x1FBatchGetDashboardChartsResponse\x12C\x0A\x10dashboard_charts\x18\x01 \x03(\x0B2).google.cloud.chronicle.v1.DashboardChart*p\x0A\x08TileType\x12\x19\x0A\x15TILE_TYPE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17TILE_TYPE_VISUALIZATION\x10\x01\x12\x14\x0A\x10TILE_TYPE_BUTTON\x10\x02\x12\x16\x0A\x12TILE_TYPE_MARKDOWN\x10\x03*t\x0A\x0ARenderType\x12\x1B\x0A\x17RENDER_TYPE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10RENDER_TYPE_TEXT\x10\x01\x12\x14\x0A\x10RENDER_TYPE_ICON\x10\x02\x12\x1D\x0A\x19RENDER_TYPE_ICON_AND_TEXT\x10\x03*Q\x0A\x08AxisType\x12\x19\x0A\x15AXIS_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05VALUE\x10\x01\x12\x0C\x0A\x08CATEGORY\x10\x02\x12\x08\x0A\x04TIME\x10\x03\x12\x07\x0A\x03LOG\x10\x04*t\x0A\x0ASeriesType\x12\x1B\x0A\x17SERIES_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04LINE\x10\x01\x12\x07\x0A\x03BAR\x10\x02\x12\x07\x0A\x03PIE\x10\x03\x12\x08\x0A\x04TEXT\x10\x04\x12\x07\x0A\x03MAP\x10\x05\x12\x09\x0A\x05GAUGE\x10\x06\x12\x0F\x0A\x0BSCATTERPLOT\x10\x07*o\x0A\x13SeriesStackStrategy\x12%\x0A!SERIES_STACK_STRATEGY_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08SAMESIGN\x10\x01\x12\x07\x0A\x03ALL\x10\x02\x12\x0C\x0A\x08POSITIVE\x10\x03\x12\x0C\x0A\x08NEGATIVE\x10\x04*\x7F\x0A\x0EToolTipTrigger\x12\x1F\x0A\x1BTOOLTIP_TRIGGER_UNSPECIFIED\x10\x00\x12\x18\x0A\x14TOOLTIP_TRIGGER_NONE\x10\x01\x12\x18\x0A\x14TOOLTIP_TRIGGER_ITEM\x10\x02\x12\x18\x0A\x14TOOLTIP_TRIGGER_AXIS\x10\x03*K\x0A\x0CLegendOrient\x12\x1D\x0A\x19LEGEND_ORIENT_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08VERTICAL\x10\x01\x12\x0E\x0A\x0AHORIZONTAL\x10\x02*J\x0A\x0BLegendAlign\x12\x1C\x0A\x18LEGEND_ALIGN_UNSPECIFIED\x10\x00\x12\x08\x0A\x04AUTO\x10\x01\x12\x08\x0A\x04LEFT\x10\x02\x12\x09\x0A\x05RIGHT\x10\x03*}\x0A\x0BButtonStyle\x12\x1C\x0A\x18BUTTON_STYLE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BUTTON_STYLE_FILLED\x10\x01\x12\x19\x0A\x15BUTTON_STYLE_OUTLINED\x10\x02\x12\x1C\x0A\x18BUTTON_STYLE_TRANSPARENT\x10\x03*f\x0A\x08PlotMode\x12\x19\x0A\x15PLOT_MODE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10PLOT_MODE_POINTS\x10\x01\x12\x15\x0A\x11PLOT_MODE_HEATMAP\x10\x02\x12\x12\x0A\x0EPLOT_MODE_BOTH\x10\x03*u\x0A\x0DPointSizeType\x12\x1F\x0A\x1BPOINT_SIZE_TYPE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15POINT_SIZE_TYPE_FIXED\x10\x01\x12(\x0A\$POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE\x10\x02*e\x0A\x0CMetricFormat\x12\x1D\x0A\x19METRIC_FORMAT_UNSPECIFIED\x10\x00\x12\x18\x0A\x14METRIC_FORMAT_NUMBER\x10\x01\x12\x1C\x0A\x18METRIC_FORMAT_PLAIN_TEXT\x10\x02*\xC0\x01\x0A\x12MetricDisplayTrend\x12\$\x0A METRIC_DISPLAY_TREND_UNSPECIFIED\x10\x00\x12'\x0A#METRIC_DISPLAY_TREND_ABSOLUTE_VALUE\x10\x02\x12#\x0A\x1FMETRIC_DISPLAY_TREND_PERCENTAGE\x10\x03\x126\x0A2METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE\x10\x04*r\x0A\x0FMetricTrendType\x12!\x0A\x1DMETRIC_TREND_TYPE_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19METRIC_TREND_TYPE_REGULAR\x10\x01\x12\x1D\x0A\x19METRIC_TREND_TYPE_INVERSE\x10\x02*O\x0A\x0DVisualMapType\x12\x1F\x0A\x1BVISUAL_MAP_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ACONTINUOUS\x10\x01\x12\x0D\x0A\x09PIECEWISE\x10\x022\xFE\x04\x0A\x15DashboardChartService\x12\xC3\x01\x0A\x11GetDashboardChart\x123.google.cloud.chronicle.v1.GetDashboardChartRequest\x1A).google.cloud.chronicle.v1.DashboardChart\"N\xDAA\x04name\x82\xD3\xE4\x93\x02A\x12?/v1/{name=projects/*/locations/*/instances/*/dashboardCharts/*}\x12\xF1\x01\x0A\x17BatchGetDashboardCharts\x129.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest\x1A:.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse\"_\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02J\x12H/v1/{parent=projects/*/locations/*/instances/*}/dashboardCharts:batchGet\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCA\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x13DashboardChartProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php new file mode 100644 index 000000000000..e7f520233eec --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\xB97\x0A/google/cloud/chronicle/v1/dashboard_query.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x19google/protobuf/any.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x16google/type/date.proto\x1A\x1Agoogle/type/interval.proto\"\xB5\x05\x0A\x0EDashboardQuery\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x05input\x18\x03 \x01(\x0B2/.google.cloud.chronicle.v1.DashboardQuery.InputB\x03\xE0A\x02\x12H\x0A\x0Fdashboard_chart\x18\x04 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\x11\x0A\x04etag\x18\x05 \x01(\x09B\x03\xE0A\x01\x1A\x84\x02\x0A\x05Input\x12,\x0A\x0Btime_window\x18\x01 \x01(\x0B2\x15.google.type.IntervalH\x00\x12U\x0A\x0Drelative_time\x18\x03 \x01(\x0B2<.google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTimeH\x00\x1Ah\x0A\x0CRelativeTime\x12;\x0A\x09time_unit\x18\x01 \x01(\x0E2#.google.cloud.chronicle.v1.TimeUnitB\x03\xE0A\x02\x12\x1B\x0A\x0Estart_time_val\x18\x02 \x01(\x03B\x03\xE0A\x02B\x0C\x0A\x0Atime_input:\xA6\x01\xEAA\xA2\x01\x0A'chronicle.googleapis.com/DashboardQuery\x12Uprojects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}*\x10dashboardQueries2\x0EdashboardQuery\"Y\x0A\x18GetDashboardQueryRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\"\xA0\x02\x0A\x1CExecuteDashboardQueryRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/DashboardQuery\x12=\x0A\x05query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x02\x12@\x0A\x07filters\x18\x03 \x03(\x0B2*.google.cloud.chronicle.v1.DashboardFilterB\x03\xE0A\x01\x12\x18\x0A\x0Bclear_cache\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\$\x0A\x17use_previous_time_range\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xD6\x05\x0A\x11QueryRuntimeError\x12\x13\x0A\x0Berror_title\x18\x01 \x01(\x09\x12\x19\x0A\x11error_description\x18\x02 \x01(\x09\x12R\x0A\x0Eerror_severity\x18\x03 \x01(\x0E2:.google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity\x12X\x0A\x08metadata\x18\x04 \x03(\x0B2F.google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata\x12R\x0A\x0Ewarning_reason\x18\x05 \x01(\x0E2:.google.cloud.chronicle.v1.QueryRuntimeError.WarningReason\x1Aq\x0A\x19QueryRuntimeErrorMetadata\x12E\x0A\x03key\x18\x01 \x01(\x0E28.google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"H\x0A\x0DErrorSeverity\x12\x1E\x0A\x1AERROR_SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WARNING\x10\x01\x12\x0A\x0A\x06SEVERE\x10\x02\":\x0A\x0BMetadataKey\x12\x1C\x0A\x18METADATA_KEY_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ROW_LIMIT\x10\x01\"\x95\x01\x0A\x0DWarningReason\x12\x1E\x0A\x1AWARNING_REASON_UNSPECIFIED\x10\x00\x12\x16\x0A\x12ROW_LIMIT_EXCEEDED\x10\x01\x12\x1E\x0A\x1ADEFAULT_ROW_LIMIT_EXCEEDED\x10\x02\x12,\x0A(CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED\x10\x03\"\xC2\x0B\x0A\x1DExecuteDashboardQueryResponse\x12T\x0A\x07results\x18\x01 \x03(\x0B2C.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData\x12;\x0A\x0Cdata_sources\x18\x03 \x03(\x0E2%.google.cloud.chronicle.v1.DataSource\x12J\x0A!last_backend_cache_refreshed_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12*\x0A\x0Btime_window\x18\x05 \x01(\x0B2\x15.google.type.Interval\x12J\x0A\x14query_runtime_errors\x18\x06 \x03(\x0B2,.google.cloud.chronicle.v1.QueryRuntimeError\x12J\x0A\x11language_features\x18\x07 \x03(\x0E2*.google.cloud.chronicle.v1.LanguageFeatureB\x03\xE0A\x01\x1A\xA6\x04\x0A\x0BColumnValue\x12\x12\x0A\x08null_val\x18\x01 \x01(\x08H\x00\x12\x12\x0A\x08bool_val\x18\x02 \x01(\x08H\x00\x12\x13\x0A\x09bytes_val\x18\x03 \x01(\x0CH\x00\x12\x14\x0A\x0Adouble_val\x18\x04 \x01(\x01H\x00\x12\x13\x0A\x09int64_val\x18\x05 \x01(\x03H\x00\x12\x14\x0A\x0Auint64_val\x18\x06 \x01(\x04H\x00\x12\x14\x0A\x0Astring_val\x18\x07 \x01(\x09H\x00\x123\x0A\x0Dtimestamp_val\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12%\x0A\x08date_val\x18\x09 \x01(\x0B2\x11.google.type.DateH\x00\x12)\x0A\x09proto_val\x18\x0A \x01(\x0B2\x14.google.protobuf.AnyH\x00\x12d\x0A\x08metadata\x18\x0B \x01(\x0B2R.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata\x1A\x8C\x01\x0A\x0DValueMetadata\x123\x0A\x05links\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.InAppLink\x12\x13\x0A\x0Bfield_paths\x18\x02 \x03(\x09\x121\x0A\x0Dtimestamp_val\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x07\x0A\x05value\x1A\xA3\x02\x0A\x0AColumnType\x12U\x0A\x05value\x18\x01 \x01(\x0B2D.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValueH\x00\x12X\x0A\x04list\x18\x02 \x01(\x0B2H.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.ListH\x00\x1A\\\x0A\x04List\x12T\x0A\x06values\x18\x01 \x03(\x0B2D.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValueB\x06\x0A\x04type\x1A\xAE\x01\x0A\x0AColumnData\x12\x0E\x0A\x06column\x18\x01 \x01(\x09\x12S\x0A\x06values\x18\x02 \x03(\x0B2C.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType\x12;\x0A\x08metadata\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.ColumnMetadata\"\xF4\x03\x0A\x0FDashboardFilter\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12:\x0A\x0Bdata_source\x18\x02 \x01(\x0E2%.google.cloud.chronicle.v1.DataSource\x12\x12\x0A\x0Afield_path\x18\x03 \x01(\x09\x12\\\x0A filter_operator_and_field_values\x18\x04 \x03(\x0B22.google.cloud.chronicle.v1.FilterOperatorAndValues\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x11\x0A\x09chart_ids\x18\x06 \x03(\x09\x12*\x0A\x1Dis_standard_time_range_filter\x18\x07 \x01(\x08B\x03\xE0A\x01\x12\x19\x0A\x0Cis_mandatory\x18\x08 \x01(\x08B\x03\xE0A\x01\x127\x0A%is_standard_time_range_filter_enabled\x18\x09 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01\x12T\x0A\x16advanced_filter_config\x18\x0A \x01(\x0B2/.google.cloud.chronicle.v1.AdvancedFilterConfigB\x03\xE0A\x01B(\x0A&_is_standard_time_range_filter_enabled\"s\x0A\x17FilterOperatorAndValues\x12B\x0A\x0Ffilter_operator\x18\x01 \x01(\x0E2).google.cloud.chronicle.v1.FilterOperator\x12\x14\x0A\x0Cfield_values\x18\x02 \x03(\x09\"\xC6\x05\x0A\x14AdvancedFilterConfig\x12\x12\x0A\x05token\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06prefix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06suffix\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09separator\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10multiple_allowed\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_values\x18\x06 \x03(\x09B\x03\xE0A\x01\x12!\x0A\x14skip_default_affixes\x18\x07 \x01(\x08B\x03\xE0A\x01\x12V\x0A\x0Cvalue_source\x18\x08 \x01(\x0B2;.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceB\x03\xE0A\x02\x1A\xD1\x01\x0A\x0BValueSource\x12\\\x0A\x0Emanual_options\x18\x01 \x01(\x0B2=.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsB\x03\xE0A\x01H\x00\x12Z\x0A\x0Dquery_options\x18\x02 \x01(\x0B2<.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsB\x03\xE0A\x01H\x00B\x08\x0A\x06source\x1A%\x0A\x0DManualOptions\x12\x14\x0A\x07options\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A\xA5\x01\x0A\x0CQueryOptions\x12\x12\x0A\x05query\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06column\x18\x02 \x01(\x09B\x03\xE0A\x02\x12'\x0A\x1Aglobal_time_filter_enabled\x18\x03 \x01(\x08B\x03\xE0A\x01\x12C\x0A\x05input\x18\x04 \x01(\x0B2/.google.cloud.chronicle.v1.DashboardQuery.InputB\x03\xE0A\x01\"9\x0A\x09InAppLink\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12\x10\x0A\x08icon_url\x18\x03 \x01(\x09\"\xB5\x02\x0A\x0EColumnMetadata\x12\x0E\x0A\x06column\x18\x01 \x01(\x09\x12\x12\x0A\x0Afield_path\x18\x02 \x01(\x09\x12\x15\x0A\x0Dfunction_name\x18\x03 \x01(\x09\x12\x17\x0A\x0Ffunction_module\x18\x04 \x01(\x09\x12:\x0A\x0Bdata_source\x18\x05 \x01(\x0E2%.google.cloud.chronicle.v1.DataSource\x12H\x0A\x12timestamp_metadata\x18\x06 \x01(\x0B2,.google.cloud.chronicle.v1.TimestampMetadata\x12\x11\x0A\x09longitude\x18\x07 \x01(\x08\x12\x10\x0A\x08latitude\x18\x08 \x01(\x08\x12\x10\x0A\x08selected\x18\x09 \x01(\x08\x12\x12\x0A\x0Aunselected\x18\x0A \x01(\x08\"\x83\x01\x0A\x11TimestampMetadata\x12\x13\x0A\x0Btime_format\x18\x01 \x01(\x09\x12\x11\x0A\x09time_zone\x18\x02 \x01(\x09\x12\x18\x0A\x10time_granularity\x18\x03 \x01(\x09\x12\x13\x0A\x0Bis_sortable\x18\x04 \x01(\x08\x12\x17\x0A\x0Fis_interpolable\x18\x05 \x01(\x08*[\x0A\x0FLanguageFeature\x12 \x0A\x1CLANGUAGE_FEATURE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05JOINS\x10\x01\x12\x0A\x0A\x06STAGES\x10\x02\x12\x0F\x0A\x0BDATA_TABLES\x10\x03*\xE4\x02\x0A\x0EFilterOperator\x12\x1F\x0A\x1BFILTER_OPERATOR_UNSPECIFIED\x10\x00\x12\x09\x0A\x05EQUAL\x10\x01\x12\x0D\x0A\x09NOT_EQUAL\x10\x02\x12\x06\x0A\x02IN\x10\x03\x12\x10\x0A\x0CGREATER_THAN\x10\x04\x12\x1C\x0A\x18GREATER_THAN_OR_EQUAL_TO\x10\x05\x12\x0D\x0A\x09LESS_THAN\x10\x06\x12\x19\x0A\x15LESS_THAN_OR_EQUAL_TO\x10\x07\x12\x0B\x0A\x07BETWEEN\x10\x08\x12\x08\x0A\x04PAST\x10\x09\x12\x0B\x0A\x07IS_NULL\x10\x0A\x12\x0F\x0A\x0BIS_NOT_NULL\x10\x0B\x12\x0F\x0A\x0BSTARTS_WITH\x10\x0C\x12\x0D\x0A\x09ENDS_WITH\x10\x0D\x12\x18\x0A\x14DOES_NOT_STARTS_WITH\x10\x0E\x12\x16\x0A\x12DOES_NOT_ENDS_WITH\x10\x0F\x12\x0A\x0A\x06NOT_IN\x10\x10\x12\x0C\x0A\x08CONTAINS\x10\x11\x12\x14\x0A\x10DOES_NOT_CONTAIN\x10\x12*\x9A\x02\x0A\x0ADataSource\x12\x1B\x0A\x17DATA_SOURCE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03UDM\x10\x01\x12\x0A\x0A\x06ENTITY\x10\x02\x12\x15\x0A\x11INGESTION_METRICS\x10\x03\x12\x13\x0A\x0FRULE_DETECTIONS\x10\x04\x12\x0C\x0A\x08RULESETS\x10\x05\x12\x0A\x0A\x06GLOBAL\x10\x06\x12\x0F\x0A\x0BIOC_MATCHES\x10\x07\x12\x09\x0A\x05RULES\x10\x08\x12\x0E\x0A\x0ASOAR_CASES\x10\x09\x12\x12\x0A\x0ESOAR_PLAYBOOKS\x10\x0A\x12\x15\x0A\x11SOAR_CASE_HISTORY\x10\x0B\x12\x0E\x0A\x0ADATA_TABLE\x10\x0C\x12\x11\x0A\x0DINVESTIGATION\x10\x0D\x12\x1A\x0A\x16INVESTIGATION_FEEDBACK\x10\x0E*o\x0A\x08TimeUnit\x12\x19\x0A\x15TIME_UNIT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SECOND\x10\x01\x12\x0A\x0A\x06MINUTE\x10\x02\x12\x08\x0A\x04HOUR\x10\x03\x12\x07\x0A\x03DAY\x10\x04\x12\x08\x0A\x04WEEK\x10\x05\x12\x09\x0A\x05MONTH\x10\x06\x12\x08\x0A\x04YEAR\x10\x072\xFC\x04\x0A\x15DashboardQueryService\x12\xC4\x01\x0A\x11GetDashboardQuery\x123.google.cloud.chronicle.v1.GetDashboardQueryRequest\x1A).google.cloud.chronicle.v1.DashboardQuery\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dashboardQueries/*}\x12\xEE\x01\x0A\x15ExecuteDashboardQuery\x127.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest\x1A8.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse\"b\xDAA\x0Cparent,query\x82\xD3\xE4\x93\x02M\"H/v1/{parent=projects/*/locations/*/instances/*}/dashboardQueries:execute:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCA\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x13DashboardQueryProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php new file mode 100644 index 000000000000..211a4b8a9af5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\xBA/\x0A3google/cloud/chronicle/v1/data_access_control.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCF\x01\x0A\x1CCreateDataAccessLabelRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12J\x0A\x11data_access_label\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12!\x0A\x14data_access_label_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\x9B\x01\x0A\x1BListDataAccessLabelsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x1CListDataAccessLabelsResponse\x12F\x0A\x12data_access_labels\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessLabel\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x01\x0A\x1CUpdateDataAccessLabelRequest\x12J\x0A\x11data_access_label\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\xCF\x01\x0A\x1CCreateDataAccessScopeRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12J\x0A\x11data_access_scope\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12!\x0A\x14data_access_scope_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x9B\x01\x0A\x1BListDataAccessScopesRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xD3\x01\x0A\x1CListDataAccessScopesResponse\x12F\x0A\x12data_access_scopes\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessScope\x12-\x0A global_data_access_scope_granted\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B#\x0A!_global_data_access_scope_granted\"\x9B\x01\x0A\x1CUpdateDataAccessScopeRequest\x12J\x0A\x11data_access_scope\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\xD5\x03\x0A\x0FDataAccessLabel\x12\x13\x0A\x09udm_query\x18\x03 \x01(\x09H\x00\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x06 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessLabel\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}B\x0C\x0A\x0Adefinition\"\x88\x05\x0A\x0FDataAccessScope\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12\\\x0A\x1Aallowed_data_access_labels\x18\x02 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12[\x0A\x19denied_data_access_labels\x18\x03 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x09 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09allow_all\x18\x0A \x01(\x08B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessScope\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}\"\xD0\x01\x0A\x18DataAccessLabelReference\x12\x1B\x0A\x11data_access_label\x18\x01 \x01(\x09H\x00\x12\x12\x0A\x08log_type\x18\x02 \x01(\x09H\x00\x12\x19\x0A\x0Fasset_namespace\x18\x03 \x01(\x09H\x00\x12D\x0A\x0Fingestion_label\x18\x04 \x01(\x0B2).google.cloud.chronicle.v1.IngestionLabelH\x00\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x03B\x07\x0A\x05label\"V\x0A\x0EIngestionLabel\x12 \x0A\x13ingestion_label_key\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\"\x0A\x15ingestion_label_value\x18\x02 \x01(\x09B\x03\xE0A\x012\xE6\x12\x0A\x18DataAccessControlService\x12\x8A\x02\x0A\x15CreateDataAccessLabel\x127.google.cloud.chronicle.v1.CreateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8B\x01\xDAA-parent,data_access_label,data_access_label_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels:\x11data_access_label\x12\xC7\x01\x0A\x12GetDataAccessLabel\x124.google.cloud.chronicle.v1.GetDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\xDA\x01\x0A\x14ListDataAccessLabels\x126.google.cloud.chronicle.v1.ListDataAccessLabelsRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessLabelsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels\x12\x8C\x02\x0A\x15UpdateDataAccessLabel\x127.google.cloud.chronicle.v1.UpdateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8D\x01\xDAA\x1Ddata_access_label,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}:\x11data_access_label\x12\xB9\x01\x0A\x15DeleteDataAccessLabel\x127.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\x8A\x02\x0A\x15CreateDataAccessScope\x127.google.cloud.chronicle.v1.CreateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8B\x01\xDAA-parent,data_access_scope,data_access_scope_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes:\x11data_access_scope\x12\xC7\x01\x0A\x12GetDataAccessScope\x124.google.cloud.chronicle.v1.GetDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x12\xDA\x01\x0A\x14ListDataAccessScopes\x126.google.cloud.chronicle.v1.ListDataAccessScopesRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessScopesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes\x12\x8C\x02\x0A\x15UpdateDataAccessScope\x127.google.cloud.chronicle.v1.UpdateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8D\x01\xDAA\x1Ddata_access_scope,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}:\x11data_access_scope\x12\xB9\x01\x0A\x15DeleteDataAccessScope\x127.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC6\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0FDataAccessProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php new file mode 100644 index 000000000000..101c9111f097 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\xF3E\x0A*google/cloud/chronicle/v1/data_table.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\xAF\x01\x0A\x16CreateDataTableRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12=\x0A\x0Adata_table\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x12\x1A\x0A\x0Ddata_table_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"O\x0A\x13GetDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\"\x8D\x01\x0A\x16UpdateDataTableRequest\x12=\x0A\x0Adata_table\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\x9B\x01\x0A\x15ListDataTablesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\"f\x0A\x16DeleteDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"l\x0A\x16ListDataTablesResponse\x129\x0A\x0Bdata_tables\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.DataTable\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA0\x01\x0A\x19CreateDataTableRowRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12D\x0A\x0Edata_table_row\x18\x02 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\"\x97\x01\x0A\x19UpdateDataTableRowRequest\x12D\x0A\x0Edata_table_row\x18\x01 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xB6\x01\x0A\x18ListDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"{\x0A\x19ListDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"U\x0A\x16GetDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"X\x0A\x19DeleteDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"\xAC\x01\x0A\x1EBulkCreateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkCreateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xA6\x01\x0A\x1BBulkGetDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12H\x0A\x08requests\x18\x02 \x03(\x0B21.google.cloud.chronicle.v1.GetDataTableRowRequestB\x03\xE0A\x02\"`\x0A\x1CBulkGetDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAD\x01\x0A\x1FBulkReplaceDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"d\x0A BulkReplaceDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAC\x01\x0A\x1EBulkUpdateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.UpdateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkUpdateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"b\x0A\x12DataTableScopeInfo\x12L\x0A\x12data_access_scopes\x18\x01 \x03(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x99\x06\x0A\x09DataTable\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12H\x0A\x0Bcolumn_info\x18\x06 \x03(\x0B2..google.cloud.chronicle.v1.DataTableColumnInfoB\x03\xE0A\x05\x12\x1C\x0A\x0Fdata_table_uuid\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05rules\x18\x08 \x03(\x09B\x03\xE0A\x03\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\"\x0A\x15approximate_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12F\x0A\x0Ascope_info\x18\x0C \x01(\x0B2-.google.cloud.chronicle.v1.DataTableScopeInfoB\x03\xE0A\x01\x12L\x0A\x0Dupdate_source\x18\x0D \x01(\x0E20.google.cloud.chronicle.v1.DataTableUpdateSourceB\x03\xE0A\x03\x12E\x0A\x1Crow_time_to_live_update_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\x95\x01\xEAA\x91\x01\x0A\"chronicle.googleapis.com/DataTable\x12Tprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}*\x0AdataTables2\x09dataTable\"\x81\x03\x0A\x0CDataTableRow\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x13\x0A\x06values\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x05 \x01(\x09B\x03\xE0A\x01:\xBD\x01\xEAA\xB9\x01\x0A%chronicle.googleapis.com/DataTableRow\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}*\x0DdataTableRows2\x0CdataTableRow\"\xFA\x02\x0A\x13DataTableColumnInfo\x12\x1C\x0A\x12mapped_column_path\x18\x03 \x01(\x09H\x00\x12Y\x0A\x0Bcolumn_type\x18\x04 \x01(\x0E2B.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnTypeH\x00\x12\x19\x0A\x0Ccolumn_index\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1C\x0A\x0Foriginal_column\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Akey_column\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Frepeated_values\x18\x06 \x01(\x08B\x03\xE0A\x01\"j\x0A\x13DataTableColumnType\x12&\x0A\"DATA_TABLE_COLUMN_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x01\x12\x09\x0A\x05REGEX\x10\x02\x12\x08\x0A\x04CIDR\x10\x03\x12\x0A\x0A\x06NUMBER\x10\x04B\x0E\x0A\x0Cpath_or_type\"m\x0A\"GetDataTableOperationErrorsRequest\x12G\x0A\x04name\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1chronicle.googleapis.com/DataTableOperationErrors\"\xB8\x02\x0A\x18DataTableOperationErrors\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12&\x0A\x0Arpc_errors\x18\x03 \x03(\x0B2\x12.google.rpc.Status:\xE0\x01\xEAA\xDC\x01\x0A1chronicle.googleapis.com/DataTableOperationErrors\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}*\x18dataTableOperationErrors2\x18dataTableOperationErrors*a\x0A\x15DataTableUpdateSource\x12(\x0A\$DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04USER\x10\x01\x12\x08\x0A\x04RULE\x10\x02\x12\x0A\x0A\x06SEARCH\x10\x032\x89\x1C\x0A\x10DataTableService\x12\xDC\x01\x0A\x0FCreateDataTable\x121.google.cloud.chronicle.v1.CreateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"p\xDAA\x1Fparent,data_table,data_table_id\x82\xD3\xE4\x93\x02H\":/v1/{parent=projects/*/locations/*/instances/*}/dataTables:\x0Adata_table\x12\xC2\x01\x0A\x0EListDataTables\x120.google.cloud.chronicle.v1.ListDataTablesRequest\x1A1.google.cloud.chronicle.v1.ListDataTablesResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/dataTables\x12\xAF\x01\x0A\x0CGetDataTable\x12..google.cloud.chronicle.v1.GetDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xDE\x01\x0A\x0FUpdateDataTable\x121.google.cloud.chronicle.v1.UpdateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"r\xDAA\x16data_table,update_mask\x82\xD3\xE4\x93\x02S2E/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}:\x0Adata_table\x12\xAD\x01\x0A\x0FDeleteDataTable\x121.google.cloud.chronicle.v1.DeleteDataTableRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xEF\x01\x0A\x12CreateDataTableRow\x124.google.cloud.chronicle.v1.CreateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"z\xDAA\x15parent,data_table_row\x82\xD3\xE4\x93\x02\\\"J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:\x0Edata_table_row\x12\x84\x02\x0A\x12UpdateDataTableRow\x124.google.cloud.chronicle.v1.UpdateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"\x8E\x01\xDAA\x1Adata_table_row,update_mask\x82\xD3\xE4\x93\x02k2Y/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}:\x0Edata_table_row\x12\xDB\x01\x0A\x11ListDataTableRows\x123.google.cloud.chronicle.v1.ListDataTableRowsRequest\x1A4.google.cloud.chronicle.v1.ListDataTableRowsResponse\"[\xDAA\x06parent\x82\xD3\xE4\x93\x02L\x12J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows\x12\xC8\x01\x0A\x0FGetDataTableRow\x121.google.cloud.chronicle.v1.GetDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\xBD\x01\x0A\x12DeleteDataTableRow\x124.google.cloud.chronicle.v1.DeleteDataTableRowRequest\x1A\x16.google.protobuf.Empty\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L*J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\x84\x02\x0A\x17BulkCreateDataTableRows\x129.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate:\x01*\x12\xF8\x01\x0A\x14BulkGetDataTableRows\x126.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest\x1A7.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse\"o\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02W\"R/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet:\x01*\x12\x88\x02\x0A\x18BulkReplaceDataTableRows\x12:.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest\x1A;.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse\"s\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02[\"V/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace:\x01*\x12\x84\x02\x0A\x17BulkUpdateDataTableRows\x129.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate:\x01*\x12\xEA\x01\x0A\x1BGetDataTableOperationErrors\x12=.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest\x1A3.google.cloud.chronicle.v1.DataTableOperationErrors\"W\xDAA\x04name\x82\xD3\xE4\x93\x02J\x12H/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xC5\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0EDataTableProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php new file mode 100644 index 000000000000..45b8f91f3f08 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\x9A\x19\x0A&google/cloud/chronicle/v1/entity.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD5\x06\x0A\x09Watchlist\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12multiplying_factor\x18\x05 \x01(\x02B\x03\xE0A\x01\x12h\x0A\x1Bentity_population_mechanism\x18\x06 \x01(\x0B2>.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanismB\x03\xE0A\x02\x12K\x0A\x0Centity_count\x18\x07 \x01(\x0B20.google.cloud.chronicle.v1.Watchlist.EntityCountB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\\\x0A\x1Awatchlist_user_preferences\x18\x0A \x01(\x0B23.google.cloud.chronicle.v1.WatchlistUserPreferencesB\x03\xE0A\x01\x1A\x90\x01\x0A\x19EntityPopulationMechanism\x12\\\x0A\x06manual\x18\x01 \x01(\x0B2E.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.ManualB\x03\xE0A\x01H\x00\x1A\x08\x0A\x06ManualB\x0B\x0A\x09mechanism\x1A4\x0A\x0BEntityCount\x12\x11\x0A\x04user\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x12\x0A\x05asset\x18\x02 \x01(\x05B\x03\xE0A\x03:\x94\x01\xEAA\x90\x01\x0A\"chronicle.googleapis.com/Watchlist\x12Sprojects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}*\x0Awatchlists2\x09watchlist\"/\x0A\x18WatchlistUserPreferences\x12\x13\x0A\x06pinned\x18\x01 \x01(\x08B\x03\xE0A\x01\"O\x0A\x13GetWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\"\x99\x01\x0A\x15ListWatchlistsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"u\x0A\x16ListWatchlistsResponse\x12=\x0A\x0Awatchlists\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x01\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAD\x01\x0A\x16CreateWatchlistRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x19\x0A\x0Cwatchlist_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x09watchlist\x18\x03 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateWatchlistRequest\x12<\x0A\x09watchlist\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"f\x0A\x16DeleteWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x012\xBE\x08\x0A\x0DEntityService\x12\xAF\x01\x0A\x0CGetWatchlist\x12..google.cloud.chronicle.v1.GetWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x12\xC2\x01\x0A\x0EListWatchlists\x120.google.cloud.chronicle.v1.ListWatchlistsRequest\x1A1.google.cloud.chronicle.v1.ListWatchlistsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/watchlists\x12\xD9\x01\x0A\x0FCreateWatchlist\x121.google.cloud.chronicle.v1.CreateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"m\xDAA\x1Dparent,watchlist,watchlist_id\x82\xD3\xE4\x93\x02G\":/v1/{parent=projects/*/locations/*/instances/*}/watchlists:\x09watchlist\x12\xDB\x01\x0A\x0FUpdateWatchlist\x121.google.cloud.chronicle.v1.UpdateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"o\xDAA\x15watchlist,update_mask\x82\xD3\xE4\x93\x02Q2D/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}:\x09watchlist\x12\xAD\x01\x0A\x0FDeleteWatchlist\x121.google.cloud.chronicle.v1.DeleteWatchlistRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC2\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0BEntityProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php new file mode 100644 index 000000000000..f4fbffb8eaae --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xEA\x06\x0A9google/cloud/chronicle/v1/featured_content_metadata.proto\x12\x19google.cloud.chronicle.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x92\x04\x0A\x17FeaturedContentMetadata\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x05 \x01(\x09B\x03\xE0A\x03\x12\x16\x0A\x09certified\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x0Acategories\x18\x08 \x03(\x09B\x03\xE0A\x03\x12\x14\x0A\x07version\x18\x09 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x08verified\x18\x0A \x01(\x08B\x03\xE0A\x03H\x00\x88\x01\x01\x12^\x0A\x0Bsource_type\x18\x0B \x01(\x0E2D.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceTypeB\x03\xE0A\x03\"`\x0A\x11ContentSourceType\x12#\x0A\x1FCONTENT_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GOOGLE\x10\x01\x12\x0D\x0A\x09COMMUNITY\x10\x02\x12\x0B\x0A\x07PARTNER\x10\x03B\x0B\x0A\x09_verifiedB\xD3\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x1CFeaturedContentMetadataProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php new file mode 100644 index 000000000000..b081e08823f4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\x9F\x18\x0AAgoogle/cloud/chronicle/v1/featured_content_native_dashboard.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A9google/cloud/chronicle/v1/featured_content_metadata.proto\x1A0google/cloud/chronicle/v1/native_dashboard.proto\"\xF5\x03\x0A\x1EFeaturedContentNativeDashboard\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12Q\x0A\x10content_metadata\x18\x02 \x01(\x0B22.google.cloud.chronicle.v1.FeaturedContentMetadataB\x03\xE0A\x03\x12^\x0A\x11dashboard_content\x18\x03 \x01(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueriesB\x03\xE0A\x01:\x8C\x02\xEAA\x88\x02\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\x12\x8B\x01projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}*\x1FfeaturedContentNativeDashboards2\x1EfeaturedContentNativeDashboard\"y\x0A(GetFeaturedContentNativeDashboardRequest\x12M\x0A\x04name\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\"\xC3\x01\x0A*ListFeaturedContentNativeDashboardsRequest\x12O\x0A\x06parent\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x127chronicle.googleapis.com/FeaturedContentNativeDashboard\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xAD\x01\x0A+ListFeaturedContentNativeDashboardsResponse\x12e\x0A\"featured_content_native_dashboards\x18\x01 \x03(\x0B29.google.cloud.chronicle.v1.FeaturedContentNativeDashboard\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xE8\x01\x0A,InstallFeaturedContentNativeDashboardRequest\x12M\x0A\x04name\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\x12i\x0A!featured_content_native_dashboard\x18\x02 \x01(\x0B29.google.cloud.chronicle.v1.FeaturedContentNativeDashboardB\x03\xE0A\x01\"{\x0A-InstallFeaturedContentNativeDashboardResponse\x12J\x0A\x10native_dashboard\x18\x01 \x01(\x09B0\xE0A\x01\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard2\xBC\x08\x0A%FeaturedContentNativeDashboardService\x12\x8E\x02\x0A!GetFeaturedContentNativeDashboard\x12C.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest\x1A9.google.cloud.chronicle.v1.FeaturedContentNativeDashboard\"i\xDAA\x04name\x82\xD3\xE4\x93\x02\\\x12Z/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}\x12\xA1\x02\x0A#ListFeaturedContentNativeDashboards\x12E.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest\x1AF.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse\"k\xDAA\x06parent\x82\xD3\xE4\x93\x02\\\x12Z/v1/{parent=projects/*/locations/*/instances/*/contentHub}/featuredContentNativeDashboards\x12\xB0\x02\x0A%InstallFeaturedContentNativeDashboard\x12G.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest\x1AH.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g\"b/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}:install:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xE4\x02\x0A\x1Dcom.google.cloud.chronicle.v1B#FeaturedContentNativeDashboardProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1\xEAA\x86\x01\x0A#chronicle.googleapis.com/ContentHub\x12Gprojects/{project}/locations/{location}/instances/{instance}/contentHub*\x0AcontentHub2\x0AcontentHubb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php new file mode 100644 index 000000000000..35968a37f5c2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xD7\x06\x0A(google/cloud/chronicle/v1/instance.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\x98\x01\x0A\x08Instance\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08:y\xEAAv\x0A!chronicle.googleapis.com/Instance\x12internalAddGeneratedFile( + "\x0A\x8AF\x0A0google/cloud/chronicle/v1/native_dashboard.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A/google/cloud/chronicle/v1/dashboard_chart.proto\x1A/google/cloud/chronicle/v1/dashboard_query.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"u\x0A\x1DExportNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12\x12\x0A\x05names\x18\x02 \x03(\x09B\x03\xE0A\x02\"{\x0A\x1EExportNativeDashboardsResponse\x12J\x0A\x12inline_destination\x18\x01 \x01(\x0B2,.google.cloud.chronicle.v1.InlineDestinationH\x00B\x0D\x0A\x0Bdestination\"g\x0A\x11InlineDestination\x12R\x0A\x0Adashboards\x18\x01 \x03(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries\"\xFE\x01\x0A#NativeDashboardWithChartsAndQueries\x12B\x0A\x09dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x01\x12H\x0A\x10dashboard_charts\x18\x02 \x03(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x01\x12I\x0A\x11dashboard_queries\x18\x03 \x03(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\"\xB5\x01\x0A\x1DImportNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12R\x0A\x06source\x18\x02 \x01(\x0B2=.google.cloud.chronicle.v1.ImportNativeDashboardsInlineSourceB\x03\xE0A\x02\"}\x0A\"ImportNativeDashboardsInlineSource\x12W\x0A\x0Adashboards\x18\x01 \x03(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueriesB\x03\xE0A\x02\"e\x0A\x1EImportNativeDashboardsResponse\x12C\x0A\x07results\x18\x01 \x03(\x0B2-.google.cloud.chronicle.v1.ImportExportStatusB\x03\xE0A\x03\"P\x0A\x12ImportExportStatus\x12\x11\x0A\x09dashboard\x18\x01 \x01(\x09\x12'\x0A\x06status\x18\x02 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03\"\x85\x06\x0A\x0FNativeDashboard\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x03\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x0Adefinition\x18\x04 \x01(\x0B2..google.cloud.chronicle.v1.DashboardDefinitionB\x03\xE0A\x01\x12;\x0A\x04type\x18\x05 \x01(\x0E2(.google.cloud.chronicle.v1.DashboardTypeB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Ecreate_user_id\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eupdate_user_id\x18\x09 \x01(\x09B\x03\xE0A\x03\x12N\x0A\x13dashboard_user_data\x18\x0A \x01(\x0B2,.google.cloud.chronicle.v1.DashboardUserDataB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0B \x01(\x09B\x03\xE0A\x01\x12?\x0A\x06access\x18\x0C \x01(\x0E2*.google.cloud.chronicle.v1.DashboardAccessB\x03\xE0A\x03:\xAC\x01\xEAA\xA8\x01\x0A(chronicle.googleapis.com/NativeDashboard\x12Yprojects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}*\x10nativeDashboards2\x0FnativeDashboard\"\xAB\x01\x0A\x1CCreateNativeDashboardRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12I\x0A\x10native_dashboard\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\"\x9E\x01\x0A\x19GetNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12A\x0A\x04view\x18\x02 \x01(\x0E2..google.cloud.chronicle.v1.NativeDashboardViewB\x03\xE0A\x01\"\xD3\x01\x0A\x1BListNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12A\x0A\x04view\x18\x04 \x01(\x0E2..google.cloud.chronicle.v1.NativeDashboardViewB\x03\xE0A\x01\"~\x0A\x1CListNativeDashboardsResponse\x12E\x0A\x11native_dashboards\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9F\x01\x0A\x1CUpdateNativeDashboardRequest\x12I\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"\xAC\x01\x0A\x1FDuplicateNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12I\x0A\x10native_dashboard\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\"^\x0A\x1CDeleteNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\"\xC6\x02\x0A\x0FAddChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12G\x0A\x0Fdashboard_query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\x12G\x0A\x0Fdashboard_chart\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x02\x12a\x0A\x0Cchart_layout\x18\x04 \x01(\x0B2F.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutB\x03\xE0A\x02\"\x9C\x01\x0A\x10AddChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\xE4\x02\x0A\x10EditChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12G\x0A\x0Fdashboard_query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\x12G\x0A\x0Fdashboard_chart\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x01\x122\x0A\x09edit_mask\x18\x04 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12J\x0A\x11language_features\x18\x05 \x03(\x0E2*.google.cloud.chronicle.v1.LanguageFeatureB\x03\xE0A\x01\"\x9D\x01\x0A\x11EditChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\x9E\x01\x0A\x12RemoveChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12H\x0A\x0Fdashboard_chart\x18\x02 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA1\x01\x0A\x15DuplicateChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12H\x0A\x0Fdashboard_chart\x18\x02 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA2\x01\x0A\x16DuplicateChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\\\x0A\x11DashboardUserData\x124\x0A\x10last_viewed_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x11\x0A\x09is_pinned\x18\x02 \x01(\x08\"\xF3\x03\x0A\x13DashboardDefinition\x12;\x0A\x07filters\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DashboardFilter\x12\x13\x0A\x0Bfingerprint\x18\x02 \x01(\x09\x12J\x0A\x06charts\x18\x04 \x03(\x0B2:.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig\x1A\xBD\x02\x0A\x0BChartConfig\x12H\x0A\x0Fdashboard_chart\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\\\x0A\x0Cchart_layout\x18\x02 \x01(\x0B2F.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout\x12\x13\x0A\x0Bfilters_ids\x18\x04 \x03(\x09\x1Aq\x0A\x0BChartLayout\x12\x14\x0A\x07start_x\x18\x09 \x01(\x05H\x00\x88\x01\x01\x12\x0E\x0A\x06span_x\x18\x0A \x01(\x05\x12\x14\x0A\x07start_y\x18\x0B \x01(\x05H\x01\x88\x01\x01\x12\x0E\x0A\x06span_y\x18\x0C \x01(\x05B\x0A\x0A\x08_start_xB\x0A\x0A\x08_start_y*r\x0A\x0DDashboardType\x12\x1E\x0A\x1ADASHBOARD_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07CURATED\x10\x01\x12\x0B\x0A\x07PRIVATE\x10\x02\x12\x0A\x0A\x06PUBLIC\x10\x03\x12\x0A\x0A\x06CUSTOM\x10\x04\x12\x0F\x0A\x0BMARKETPLACE\x10\x05*`\x0A\x0FDashboardAccess\x12 \x0A\x1CDASHBOARD_ACCESS_UNSPECIFIED\x10\x00\x12\x15\x0A\x11DASHBOARD_PRIVATE\x10\x01\x12\x14\x0A\x10DASHBOARD_PUBLIC\x10\x02*}\x0A\x13NativeDashboardView\x12%\x0A!NATIVE_DASHBOARD_VIEW_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BNATIVE_DASHBOARD_VIEW_BASIC\x10\x01\x12\x1E\x0A\x1ANATIVE_DASHBOARD_VIEW_FULL\x10\x022\x86\x17\x0A\x16NativeDashboardService\x12\xF2\x01\x0A\x15CreateNativeDashboard\x127.google.cloud.chronicle.v1.CreateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"t\xDAA\x17parent,native_dashboard\x82\xD3\xE4\x93\x02T\"@/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:\x10native_dashboard\x12\xC7\x01\x0A\x12GetNativeDashboard\x124.google.cloud.chronicle.v1.GetNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}\x12\xDA\x01\x0A\x14ListNativeDashboards\x126.google.cloud.chronicle.v1.ListNativeDashboardsRequest\x1A7.google.cloud.chronicle.v1.ListNativeDashboardsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards\x12\x89\x02\x0A\x15UpdateNativeDashboard\x127.google.cloud.chronicle.v1.UpdateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"\x8A\x01\xDAA\x1Cnative_dashboard,update_mask\x82\xD3\xE4\x93\x02e2Q/v1/{native_dashboard.name=projects/*/locations/*/instances/*/nativeDashboards/*}:\x10native_dashboard\x12\xF2\x01\x0A\x18DuplicateNativeDashboard\x12:.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"n\xDAA\x16name, native_dashboard\x82\xD3\xE4\x93\x02O\"J/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicate:\x01*\x12\xB9\x01\x0A\x15DeleteNativeDashboard\x127.google.cloud.chronicle.v1.DeleteNativeDashboardRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}\x12\xE2\x01\x0A\x08AddChart\x12*.google.cloud.chronicle.v1.AddChartRequest\x1A+.google.cloud.chronicle.v1.AddChartResponse\"}\xDAA&name, dashboard_query, dashboard_chart\x82\xD3\xE4\x93\x02N\"I/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:addChart:\x01*\x12\xC8\x01\x0A\x0BRemoveChart\x12-.google.cloud.chronicle.v1.RemoveChartRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"^\xDAA\x04name\x82\xD3\xE4\x93\x02Q\"L/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:removeChart:\x01*\x12\xF2\x01\x0A\x09EditChart\x12+.google.cloud.chronicle.v1.EditChartRequest\x1A,.google.cloud.chronicle.v1.EditChartResponse\"\x89\x01\xDAA1name, dashboard_query, dashboard_chart, edit_mask\x82\xD3\xE4\x93\x02O\"J/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart:\x01*\x12\xD8\x01\x0A\x0EDuplicateChart\x120.google.cloud.chronicle.v1.DuplicateChartRequest\x1A1.google.cloud.chronicle.v1.DuplicateChartResponse\"a\xDAA\x04name\x82\xD3\xE4\x93\x02T\"O/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicateChart:\x01*\x12\xF1\x01\x0A\x16ExportNativeDashboards\x128.google.cloud.chronicle.v1.ExportNativeDashboardsRequest\x1A9.google.cloud.chronicle.v1.ExportNativeDashboardsResponse\"b\xDAA\x0Dparent, names\x82\xD3\xE4\x93\x02L\"G/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:export:\x01*\x12\xF1\x01\x0A\x16ImportNativeDashboards\x128.google.cloud.chronicle.v1.ImportNativeDashboardsRequest\x1A9.google.cloud.chronicle.v1.ImportNativeDashboardsResponse\"b\xDAA\x0Dparent,source\x82\xD3\xE4\x93\x02L\"G/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:import:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCB\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x14NativeDashboardProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php new file mode 100644 index 000000000000..9c6e24f4392f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xFF\x19\x0A.google/cloud/chronicle/v1/reference_list.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"]\x0A\x09ScopeInfo\x12P\x0A\x14reference_list_scope\x18\x02 \x01(\x0B2-.google.cloud.chronicle.v1.ReferenceListScopeB\x03\xE0A\x02\".\x0A\x12ReferenceListScope\x12\x18\x0A\x0Bscope_names\x18\x01 \x03(\x09B\x03\xE0A\x01\"\x93\x01\x0A\x17GetReferenceListRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12:\x0A\x04view\x18\x02 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"\xBE\x01\x0A\x19ListReferenceListsRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12:\x0A\x04view\x18\x04 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"x\x0A\x1AListReferenceListsResponse\x12A\x0A\x0Freference_lists\x18\x01 \x03(\x0B2(.google.cloud.chronicle.v1.ReferenceList\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC3\x01\x0A\x1ACreateReferenceListRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12E\x0A\x0Ereference_list\x18\x02 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12\x1E\x0A\x11reference_list_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x94\x01\x0A\x1AUpdateReferenceListRequest\x12E\x0A\x0Ereference_list\x18\x01 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\xAA\x04\x0A\x0DReferenceList\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x07entries\x18\x05 \x03(\x0B2-.google.cloud.chronicle.v1.ReferenceListEntryB\x03\xE0A\x02\x12\x12\x0A\x05rules\x18\x06 \x03(\x09B\x03\xE0A\x03\x12L\x0A\x0Bsyntax_type\x18\x08 \x01(\x0E22.google.cloud.chronicle.v1.ReferenceListSyntaxTypeB\x03\xE0A\x02\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x128\x0A\x0Ascope_info\x18\x0B \x01(\x0B2\$.google.cloud.chronicle.v1.ScopeInfo:\x8A\x01\xEAA\x86\x01\x0A&chronicle.googleapis.com/ReferenceList\x12\\projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}\"(\x0A\x12ReferenceListEntry\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x02*\xC2\x01\x0A\x17ReferenceListSyntaxType\x12*\x0A&REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED\x10\x00\x120\x0A,REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING\x10\x01\x12\$\x0A REFERENCE_LIST_SYNTAX_TYPE_REGEX\x10\x02\x12#\x0A\x1FREFERENCE_LIST_SYNTAX_TYPE_CIDR\x10\x03*u\x0A\x11ReferenceListView\x12#\x0A\x1FREFERENCE_LIST_VIEW_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19REFERENCE_LIST_VIEW_BASIC\x10\x01\x12\x1C\x0A\x18REFERENCE_LIST_VIEW_FULL\x10\x022\xF5\x07\x0A\x14ReferenceListService\x12\xBF\x01\x0A\x10GetReferenceList\x122.google.cloud.chronicle.v1.GetReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"M\xDAA\x04name\x82\xD3\xE4\x93\x02@\x12>/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}\x12\xD2\x01\x0A\x12ListReferenceLists\x124.google.cloud.chronicle.v1.ListReferenceListsRequest\x1A5.google.cloud.chronicle.v1.ListReferenceListsResponse\"O\xDAA\x06parent\x82\xD3\xE4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/instances/*}/referenceLists\x12\xF9\x01\x0A\x13CreateReferenceList\x125.google.cloud.chronicle.v1.CreateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x80\x01\xDAA'parent,reference_list,reference_list_id\x82\xD3\xE4\x93\x02P\">/v1/{parent=projects/*/locations/*/instances/*}/referenceLists:\x0Ereference_list\x12\xFB\x01\x0A\x13UpdateReferenceList\x125.google.cloud.chronicle.v1.UpdateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x82\x01\xDAA\x1Areference_list,update_mask\x82\xD3\xE4\x93\x02_2M/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}:\x0Ereference_list\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC9\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x12ReferenceListProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php new file mode 100644 index 000000000000..752c16da4d3a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + "\x0A\xE2@\x0A\$google/cloud/chronicle/v1/rule.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\x91\x09\x0A\x04Rule\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Brevision_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x0C\x0A\x04text\x18\x04 \x01(\x09\x12\x13\x0A\x06author\x18\x05 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x08severity\x18\x06 \x01(\x0B2#.google.cloud.chronicle.v1.SeverityB\x03\xE0A\x03\x12D\x0A\x08metadata\x18\x07 \x03(\x0B2-.google.cloud.chronicle.v1.Rule.MetadataEntryB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12P\x0A\x11compilation_state\x18\x0A \x01(\x0E20.google.cloud.chronicle.v1.Rule.CompilationStateB\x03\xE0A\x03\x126\x0A\x04type\x18\x0C \x01(\x0E2#.google.cloud.chronicle.v1.RuleTypeB\x03\xE0A\x03\x12G\x0A\x0Freference_lists\x18\x0D \x03(\x09B.\xE0A\x03\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12M\x0A\x17allowed_run_frequencies\x18\x0E \x03(\x0E2'.google.cloud.chronicle.v1.RunFrequencyB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0F \x01(\x09\x12<\x0A\x05scope\x18\x10 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12V\x0A\x17compilation_diagnostics\x18\x11 \x03(\x0B20.google.cloud.chronicle.v1.CompilationDiagnosticB\x03\xE0A\x03\x12.\x0A!near_real_time_live_rule_eligible\x18\x12 \x01(\x08B\x03\xE0A\x03\x12?\x0A\x0Binputs_used\x18\x14 \x01(\x0B2%.google.cloud.chronicle.v1.InputsUsedB\x03\xE0A\x03\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"P\x0A\x10CompilationState\x12!\x0A\x1DCOMPILATION_STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02:m\xEAAj\x0A\x1Dchronicle.googleapis.com/Rule\x12Iprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}\"\xCB\x05\x0A\x0ERuleDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x0F\x0A\x07enabled\x18\x02 \x01(\x08\x12\x10\x0A\x08alerting\x18\x03 \x01(\x08\x12\x10\x0A\x08archived\x18\x04 \x01(\x08\x125\x0A\x0Carchive_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12>\x0A\x0Drun_frequency\x18\x06 \x01(\x0E2'.google.cloud.chronicle.v1.RunFrequency\x12V\x0A\x0Fexecution_state\x18\x07 \x01(\x0E28.google.cloud.chronicle.v1.RuleDeployment.ExecutionStateB\x03\xE0A\x03\x12=\x0A\x0Eproducer_rules\x18\x08 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12=\x0A\x0Econsumer_rules\x18\x09 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12F\x0A\x1Dlast_alert_status_change_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"W\x0A\x0EExecutionState\x12\x1F\x0A\x1BEXECUTION_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07DEFAULT\x10\x01\x12\x0B\x0A\x07LIMITED\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03:\x82\x01\xEAA\x7F\x0A'chronicle.googleapis.com/RuleDeployment\x12Tprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment\"\xC8\x03\x0A\x09Retrohunt\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x124\x0A\x10process_interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x02\x126\x0A\x12execution_interval\x18\x03 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12>\x0A\x05state\x18\x04 \x01(\x0E2*.google.cloud.chronicle.v1.Retrohunt.StateB\x03\xE0A\x03\x12 \x0A\x13progress_percentage\x18\x05 \x01(\x02B\x03\xE0A\x03\"P\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04:\x8A\x01\xEAA\x86\x01\x0A\"chronicle.googleapis.com/Retrohunt\x12`projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}\"~\x0A\x11CreateRuleRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x122\x0A\x04rule\x18\x02 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\"x\x0A\x0EGetRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"\xB3\x01\x0A\x10ListRulesRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\\\x0A\x11ListRulesResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"x\x0A\x11UpdateRuleRequest\x122\x0A\x04rule\x18\x01 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\\\x0A\x11DeleteRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xA9\x01\x0A\x18ListRuleRevisionsRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"d\x0A\x19ListRuleRevisionsResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x92\x01\x0A\x16CreateRetrohuntRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12<\x0A\x09retrohunt\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.RetrohuntB\x03\xE0A\x02\"O\x0A\x13GetRetrohuntRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Retrohunt\"\x8A\x01\x0A\x15ListRetrohuntsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"k\x0A\x16ListRetrohuntsResponse\x128\x0A\x0Aretrohunts\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.Retrohunt\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"Y\x0A\x18GetRuleDeploymentRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/RuleDeployment\"\x94\x01\x0A\x1AListRuleDeploymentsRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/RuleDeployment\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"{\x0A\x1BListRuleDeploymentsResponse\x12C\x0A\x10rule_deployments\x18\x01 \x03(\x0B2).google.cloud.chronicle.v1.RuleDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9C\x01\x0A\x1BUpdateRuleDeploymentRequest\x12G\x0A\x0Frule_deployment\x18\x01 \x01(\x0B2).google.cloud.chronicle.v1.RuleDeploymentB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"y\x0A\x13CompilationPosition\x12\x17\x0A\x0Astart_line\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x19\x0A\x0Cstart_column\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x15\x0A\x08end_line\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Aend_column\x18\x04 \x01(\x05B\x03\xE0A\x03\"\x96\x02\x0A\x15CompilationDiagnostic\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x08position\x18\x02 \x01(\x0B2..google.cloud.chronicle.v1.CompilationPositionB\x03\xE0A\x03\x12P\x0A\x08severity\x18\x03 \x01(\x0E29.google.cloud.chronicle.v1.CompilationDiagnostic.SeverityB\x03\xE0A\x03\x12\x10\x0A\x03uri\x18\x05 \x01(\x09B\x03\xE0A\x03\"<\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WARNING\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\" \x0A\x08Severity\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\"\x9A\x01\x0A\x11RetrohuntMetadata\x125\x0A\x09retrohunt\x18\x01 \x01(\x09B\"\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x12execution_interval\x18\x02 \x01(\x0B2\x15.google.type.Interval\x12\x1B\x0A\x13progress_percentage\x18\x03 \x01(\x02\"Z\x0A\x0AInputsUsed\x12\x15\x0A\x08uses_udm\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Buses_entity\x18\x02 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Euses_detection\x18\x03 \x01(\x08B\x03\xE0A\x01*N\x0A\x0CRunFrequency\x12\x1D\x0A\x19RUN_FREQUENCY_UNSPECIFIED\x10\x00\x12\x08\x0A\x04LIVE\x10\x01\x12\x0A\x0A\x06HOURLY\x10\x02\x12\x09\x0A\x05DAILY\x10\x03*H\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CSINGLE_EVENT\x10\x01\x12\x0F\x0A\x0BMULTI_EVENT\x10\x02*V\x0A\x08RuleView\x12\x19\x0A\x15RULE_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x1A\x0A\x16REVISION_METADATA_ONLY\x10\x032\xA9\x13\x0A\x0BRuleService\x12\xAE\x01\x0A\x0ACreateRule\x12,.google.cloud.chronicle.v1.CreateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"Q\xDAA\x0Bparent,rule\x82\xD3\xE4\x93\x02=\"5/v1/{parent=projects/*/locations/*/instances/*}/rules:\x04rule\x12\x9B\x01\x0A\x07GetRule\x12).google.cloud.chronicle.v1.GetRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xAE\x01\x0A\x09ListRules\x12+.google.cloud.chronicle.v1.ListRulesRequest\x1A,.google.cloud.chronicle.v1.ListRulesResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1/{parent=projects/*/locations/*/instances/*}/rules\x12\xB8\x01\x0A\x0AUpdateRule\x12,.google.cloud.chronicle.v1.UpdateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"[\xDAA\x10rule,update_mask\x82\xD3\xE4\x93\x02B2:/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}:\x04rule\x12\x98\x01\x0A\x0ADeleteRule\x12,.google.cloud.chronicle.v1.DeleteRuleRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xD2\x01\x0A\x11ListRuleRevisions\x123.google.cloud.chronicle.v1.ListRuleRevisionsRequest\x1A4.google.cloud.chronicle.v1.ListRuleRevisionsResponse\"R\xDAA\x04name\x82\xD3\xE4\x93\x02E\x12C/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions\x12\xEF\x01\x0A\x0FCreateRetrohunt\x121.google.cloud.chronicle.v1.CreateRetrohuntRequest\x1A\x1D.google.longrunning.Operation\"\x89\x01\xCAA\x1E\x0A\x09Retrohunt\x12\x11RetrohuntMetadata\xDAA\x10parent,retrohunt\x82\xD3\xE4\x93\x02O\"B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts:\x09retrohunt\x12\xB7\x01\x0A\x0CGetRetrohunt\x12..google.cloud.chronicle.v1.GetRetrohuntRequest\x1A\$.google.cloud.chronicle.v1.Retrohunt\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}\x12\xCA\x01\x0A\x0EListRetrohunts\x120.google.cloud.chronicle.v1.ListRetrohuntsRequest\x1A1.google.cloud.chronicle.v1.ListRetrohuntsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts\x12\xC4\x01\x0A\x11GetRuleDeployment\x123.google.cloud.chronicle.v1.GetRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}\x12\xDA\x01\x0A\x13ListRuleDeployments\x125.google.cloud.chronicle.v1.ListRuleDeploymentsRequest\x1A6.google.cloud.chronicle.v1.ListRuleDeploymentsResponse\"T\xDAA\x06parent\x82\xD3\xE4\x93\x02E\x12C/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments\x12\x83\x02\x0A\x14UpdateRuleDeployment\x126.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"\x87\x01\xDAA\x1Brule_deployment,update_mask\x82\xD3\xE4\x93\x02c2P/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}:\x0Frule_deployment\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC0\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x09RuleProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php new file mode 100644 index 000000000000..2cc4250997ae --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php @@ -0,0 +1,227 @@ +google.cloud.chronicle.v1.AddChartRequest + */ +class AddChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Query used to create the chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_query = null; + /** + * Required. Chart to be added to the dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dashboard_chart = null; + /** + * Required. ChartLayout for newly added chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $chart_layout = null; + + /** + * @param string $name Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery Optional. Query used to create the chart. + * @param \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart Required. Chart to be added to the dashboard. + * + * @return \Google\Cloud\Chronicle\V1\AddChartRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery, \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart): self + { + return (new self()) + ->setName($name) + ->setDashboardQuery($dashboardQuery) + ->setDashboardChart($dashboardChart); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Cloud\Chronicle\V1\DashboardQuery $dashboard_query + * Optional. Query used to create the chart. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Required. Chart to be added to the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $chart_layout + * Required. ChartLayout for newly added chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Query used to create the chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null + */ + public function getDashboardQuery() + { + return $this->dashboard_query; + } + + public function hasDashboardQuery() + { + return isset($this->dashboard_query); + } + + public function clearDashboardQuery() + { + unset($this->dashboard_query); + } + + /** + * Optional. Query used to create the chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var + * @return $this + */ + public function setDashboardQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->dashboard_query = $var; + + return $this; + } + + /** + * Required. Chart to be added to the dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Required. Chart to be added to the dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Required. ChartLayout for newly added chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout|null + */ + public function getChartLayout() + { + return $this->chart_layout; + } + + public function hasChartLayout() + { + return isset($this->chart_layout); + } + + public function clearChartLayout() + { + unset($this->chart_layout); + } + + /** + * Required. ChartLayout for newly added chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $var + * @return $this + */ + public function setChartLayout($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout::class); + $this->chart_layout = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php new file mode 100644 index 000000000000..a07f0fc6420c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php @@ -0,0 +1,121 @@ +google.cloud.chronicle.v1.AddChartResponse + */ +class AddChartResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + protected $native_dashboard = null; + /** + * Created chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + protected $dashboard_chart = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Dashboard with chart added in definition. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Created chart resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Created chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Created chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php new file mode 100644 index 000000000000..38f79af8c7c2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php @@ -0,0 +1,339 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig + */ +class AdvancedFilterConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * + * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $token = ''; + /** + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * + * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $prefix = ''; + /** + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * + * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $suffix = ''; + /** + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * + * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $separator = ''; + /** + * Optional. Whether to allow selection of multiple values. + * + * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $multiple_allowed = false; + /** + * Optional. Default values to use if no value is selected/provided. + * + * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $default_values; + /** + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * + * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip_default_affixes = false; + /** + * Required. Source of the values for the filter. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value_source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $token + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * @type string $prefix + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * @type string $suffix + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * @type string $separator + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * @type bool $multiple_allowed + * Optional. Whether to allow selection of multiple values. + * @type string[] $default_values + * Optional. Default values to use if no value is selected/provided. + * @type bool $skip_default_affixes + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource $value_source + * Required. Source of the values for the filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * + * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * + * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkString($var, True); + $this->token = $var; + + return $this; + } + + /** + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * + * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * + * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * + * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSuffix() + { + return $this->suffix; + } + + /** + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * + * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSuffix($var) + { + GPBUtil::checkString($var, True); + $this->suffix = $var; + + return $this; + } + + /** + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * + * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSeparator() + { + return $this->separator; + } + + /** + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * + * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSeparator($var) + { + GPBUtil::checkString($var, True); + $this->separator = $var; + + return $this; + } + + /** + * Optional. Whether to allow selection of multiple values. + * + * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getMultipleAllowed() + { + return $this->multiple_allowed; + } + + /** + * Optional. Whether to allow selection of multiple values. + * + * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setMultipleAllowed($var) + { + GPBUtil::checkBool($var); + $this->multiple_allowed = $var; + + return $this; + } + + /** + * Optional. Default values to use if no value is selected/provided. + * + * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getDefaultValues() + { + return $this->default_values; + } + + /** + * Optional. Default values to use if no value is selected/provided. + * + * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setDefaultValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->default_values = $arr; + + return $this; + } + + /** + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * + * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSkipDefaultAffixes() + { + return $this->skip_default_affixes; + } + + /** + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * + * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSkipDefaultAffixes($var) + { + GPBUtil::checkBool($var); + $this->skip_default_affixes = $var; + + return $this; + } + + /** + * Required. Source of the values for the filter. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource|null + */ + public function getValueSource() + { + return $this->value_source; + } + + public function hasValueSource() + { + return isset($this->value_source); + } + + public function clearValueSource() + { + unset($this->value_source); + } + + /** + * Required. Source of the values for the filter. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource $var + * @return $this + */ + public function setValueSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource::class); + $this->value_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php new file mode 100644 index 000000000000..9bae191bc72d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php @@ -0,0 +1,71 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + */ +class ManualOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * + * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $options + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * + * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * + * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->options = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php new file mode 100644 index 000000000000..fdc4d1b5c93e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php @@ -0,0 +1,184 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + */ +class QueryOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The query to execute to fetch the values. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Required. The column name to use for the values. + * + * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $column = ''; + /** + * Optional. Enable global time filter + * + * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $global_time_filter_enabled = false; + /** + * Optional. Time range input specifically for the filter's population + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $input = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * Required. The query to execute to fetch the values. + * @type string $column + * Required. The column name to use for the values. + * @type bool $global_time_filter_enabled + * Optional. Enable global time filter + * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input $input + * Optional. Time range input specifically for the filter's population + * query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The query to execute to fetch the values. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. The query to execute to fetch the values. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Required. The column name to use for the values. + * + * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Required. The column name to use for the values. + * + * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Optional. Enable global time filter + * + * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getGlobalTimeFilterEnabled() + { + return $this->global_time_filter_enabled; + } + + /** + * Optional. Enable global time filter + * + * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setGlobalTimeFilterEnabled($var) + { + GPBUtil::checkBool($var); + $this->global_time_filter_enabled = $var; + + return $this; + } + + /** + * Optional. Time range input specifically for the filter's population + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input|null + */ + public function getInput() + { + return $this->input; + } + + public function hasInput() + { + return isset($this->input); + } + + public function clearInput() + { + unset($this->input); + } + + /** + * Optional. Time range input specifically for the filter's population + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input $var + * @return $this + */ + public function setInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input::class); + $this->input = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php new file mode 100644 index 000000000000..3ceaa6be54f0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource + */ +class ValueSource extends \Google\Protobuf\Internal\Message +{ + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions $manual_options + * Optional. Manual options provided by the user. + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions $query_options + * Optional. Query options to fetch the values from the query engine. + * This is used for the filter's population query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Manual options provided by the user. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions|null + */ + public function getManualOptions() + { + return $this->readOneof(1); + } + + public function hasManualOptions() + { + return $this->hasOneof(1); + } + + /** + * Optional. Manual options provided by the user. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions $var + * @return $this + */ + public function setManualOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. Query options to fetch the values from the query engine. + * This is used for the filter's population query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions|null + */ + public function getQueryOptions() + { + return $this->readOneof(2); + } + + public function hasQueryOptions() + { + return $this->hasOneof(2); + } + + /** + * Optional. Query options to fetch the values from the query engine. + * This is used for the filter's population query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions $var + * @return $this + */ + public function setQueryOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php new file mode 100644 index 000000000000..13139996bbfb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php @@ -0,0 +1,63 @@ +google.cloud.chronicle.v1.AxisType + */ +class AxisType +{ + /** + * Generated from protobuf enum AXIS_TYPE_UNSPECIFIED = 0; + */ + const AXIS_TYPE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum VALUE = 1; + */ + const VALUE = 1; + /** + * Generated from protobuf enum CATEGORY = 2; + */ + const CATEGORY = 2; + /** + * Generated from protobuf enum TIME = 3; + */ + const TIME = 3; + /** + * Generated from protobuf enum LOG = 4; + */ + const LOG = 4; + + private static $valueToName = [ + self::AXIS_TYPE_UNSPECIFIED => 'AXIS_TYPE_UNSPECIFIED', + self::VALUE => 'VALUE', + self::CATEGORY => 'CATEGORY', + self::TIME => 'TIME', + self::LOG => 'LOG', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php new file mode 100644 index 000000000000..30510080cba1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php @@ -0,0 +1,138 @@ +google.cloud.chronicle.v1.BatchGetDashboardChartsRequest + */ +class BatchGetDashboardChartsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The names of the dashboard charts to get. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. Please see + * {@see DashboardChartServiceClient::instanceName()} for help formatting this field. + * @param string[] $names Required. The names of the dashboard charts to get. Please see + * {@see DashboardChartServiceClient::dashboardChartName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\BatchGetDashboardChartsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * @type string[] $names + * Required. The names of the dashboard charts to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The names of the dashboard charts to get. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The names of the dashboard charts to get. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php new file mode 100644 index 000000000000..3b02a82be8a5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BatchGetDashboardChartsResponse + */ +class BatchGetDashboardChartsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The dashboardCharts from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + private $dashboard_charts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart[] $dashboard_charts + * The dashboardCharts from the specified chronicle instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * The dashboardCharts from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart> + */ + public function getDashboardCharts() + { + return $this->dashboard_charts; + } + + /** + * The dashboardCharts from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + * @param \Google\Cloud\Chronicle\V1\DashboardChart[] $var + * @return $this + */ + public function setDashboardCharts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_charts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php new file mode 100644 index 000000000000..dac0cbb7ab42 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest + */ +class BulkCreateDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * @return \Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php new file mode 100644 index 000000000000..ec0e78d92832 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse + */ +class BulkCreateDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataTableRows created + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * DataTableRows created + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * DataTableRows created + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * DataTableRows created + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php new file mode 100644 index 000000000000..6c824543b91b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.BulkGetDataTableRowsRequest + */ +class BulkGetDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * @return \Google\Cloud\Chronicle\V1\BulkGetDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\GetDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\GetDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php new file mode 100644 index 000000000000..b4bc937ab8bb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkGetDataTableRowsResponse + */ +class BulkGetDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The requested data table rows. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * The requested data table rows. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * The requested data table rows. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * The requested data table rows. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php new file mode 100644 index 000000000000..8389b6eecd77 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php @@ -0,0 +1,142 @@ +google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest + */ +class BulkReplaceDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * @return \Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php new file mode 100644 index 000000000000..2dc0f909f77a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse + */ +class BulkReplaceDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataTableRows that replaced existing data table rows + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * DataTableRows that replaced existing data table rows + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * DataTableRows that replaced existing data table rows + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * DataTableRows that replaced existing data table rows + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php new file mode 100644 index 000000000000..a635d9e33430 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest + */ +class BulkUpdateDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * @return \Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php new file mode 100644 index 000000000000..903503608d86 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse + */ +class BulkUpdateDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataTableRows updated + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * DataTableRows updated + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * DataTableRows updated + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * DataTableRows updated + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php new file mode 100644 index 000000000000..da3b6845d4f8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php @@ -0,0 +1,185 @@ +google.cloud.chronicle.v1.Button + */ +class Button extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $label = ''; + /** + * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $hyperlink = ''; + /** + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Whether to open the link in a new tab. + * + * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $new_tab = false; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $label + * @type string $hyperlink + * @type string $description + * @type bool $new_tab + * Optional. Whether to open the link in a new tab. + * @type \Google\Cloud\Chronicle\V1\Button\Properties $properties + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getHyperlink() + { + return $this->hyperlink; + } + + /** + * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setHyperlink($var) + { + GPBUtil::checkString($var, True); + $this->hyperlink = $var; + + return $this; + } + + /** + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Whether to open the link in a new tab. + * + * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getNewTab() + { + return $this->new_tab; + } + + /** + * Optional. Whether to open the link in a new tab. + * + * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setNewTab($var) + { + GPBUtil::checkBool($var); + $this->new_tab = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Button\Properties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Button\Properties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Button\Properties::class); + $this->properties = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php new file mode 100644 index 000000000000..63e61ffaacaf --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php @@ -0,0 +1,85 @@ +google.cloud.chronicle.v1.Button.Properties + */ +class Properties extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $button_style = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $color + * @type int $button_style + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getButtonStyle() + { + return $this->button_style; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setButtonStyle($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ButtonStyle::class); + $this->button_style = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php new file mode 100644 index 000000000000..2380d2624d4d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php @@ -0,0 +1,58 @@ +google.cloud.chronicle.v1.ButtonStyle + */ +class ButtonStyle +{ + /** + * Generated from protobuf enum BUTTON_STYLE_UNSPECIFIED = 0; + */ + const BUTTON_STYLE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum BUTTON_STYLE_FILLED = 1; + */ + const BUTTON_STYLE_FILLED = 1; + /** + * Generated from protobuf enum BUTTON_STYLE_OUTLINED = 2; + */ + const BUTTON_STYLE_OUTLINED = 2; + /** + * Generated from protobuf enum BUTTON_STYLE_TRANSPARENT = 3; + */ + const BUTTON_STYLE_TRANSPARENT = 3; + + private static $valueToName = [ + self::BUTTON_STYLE_UNSPECIFIED => 'BUTTON_STYLE_UNSPECIFIED', + self::BUTTON_STYLE_FILLED => 'BUTTON_STYLE_FILLED', + self::BUTTON_STYLE_OUTLINED => 'BUTTON_STYLE_OUTLINED', + self::BUTTON_STYLE_TRANSPARENT => 'BUTTON_STYLE_TRANSPARENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php new file mode 100644 index 000000000000..0cfa1245b753 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php @@ -0,0 +1,383 @@ +google.cloud.chronicle.v1.ColumnMetadata + */ +class ColumnMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the column. + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + /** + * Field path of the queried field, if any. + * + * Generated from protobuf field string field_path = 2; + */ + protected $field_path = ''; + /** + * Name of the function used to query the field, if any. + * + * Generated from protobuf field string function_name = 3; + */ + protected $function_name = ''; + /** + * Module of the function used to query the field, if any. + * + * Generated from protobuf field string function_module = 4; + */ + protected $function_module = ''; + /** + * Data source queried. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; + */ + protected $data_source = 0; + /** + * Timestamp Metadata + * + * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; + */ + protected $timestamp_metadata = null; + /** + * Whether the column is a longitude field. + * + * Generated from protobuf field bool longitude = 7; + */ + protected $longitude = false; + /** + * Whether the column is a latitude field. + * + * Generated from protobuf field bool latitude = 8; + */ + protected $latitude = false; + /** + * Whether the column is selected in the final response. + * + * Generated from protobuf field bool selected = 9; + */ + protected $selected = false; + /** + * Whether the column is unselected in the final response. + * + * Generated from protobuf field bool unselected = 10; + */ + protected $unselected = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Name of the column. + * @type string $field_path + * Field path of the queried field, if any. + * @type string $function_name + * Name of the function used to query the field, if any. + * @type string $function_module + * Module of the function used to query the field, if any. + * @type int $data_source + * Data source queried. + * @type \Google\Cloud\Chronicle\V1\TimestampMetadata $timestamp_metadata + * Timestamp Metadata + * @type bool $longitude + * Whether the column is a longitude field. + * @type bool $latitude + * Whether the column is a latitude field. + * @type bool $selected + * Whether the column is selected in the final response. + * @type bool $unselected + * Whether the column is unselected in the final response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Name of the column. + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Name of the column. + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Field path of the queried field, if any. + * + * Generated from protobuf field string field_path = 2; + * @return string + */ + public function getFieldPath() + { + return $this->field_path; + } + + /** + * Field path of the queried field, if any. + * + * Generated from protobuf field string field_path = 2; + * @param string $var + * @return $this + */ + public function setFieldPath($var) + { + GPBUtil::checkString($var, True); + $this->field_path = $var; + + return $this; + } + + /** + * Name of the function used to query the field, if any. + * + * Generated from protobuf field string function_name = 3; + * @return string + */ + public function getFunctionName() + { + return $this->function_name; + } + + /** + * Name of the function used to query the field, if any. + * + * Generated from protobuf field string function_name = 3; + * @param string $var + * @return $this + */ + public function setFunctionName($var) + { + GPBUtil::checkString($var, True); + $this->function_name = $var; + + return $this; + } + + /** + * Module of the function used to query the field, if any. + * + * Generated from protobuf field string function_module = 4; + * @return string + */ + public function getFunctionModule() + { + return $this->function_module; + } + + /** + * Module of the function used to query the field, if any. + * + * Generated from protobuf field string function_module = 4; + * @param string $var + * @return $this + */ + public function setFunctionModule($var) + { + GPBUtil::checkString($var, True); + $this->function_module = $var; + + return $this; + } + + /** + * Data source queried. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; + * @return int + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * Data source queried. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; + * @param int $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_source = $var; + + return $this; + } + + /** + * Timestamp Metadata + * + * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; + * @return \Google\Cloud\Chronicle\V1\TimestampMetadata|null + */ + public function getTimestampMetadata() + { + return $this->timestamp_metadata; + } + + public function hasTimestampMetadata() + { + return isset($this->timestamp_metadata); + } + + public function clearTimestampMetadata() + { + unset($this->timestamp_metadata); + } + + /** + * Timestamp Metadata + * + * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; + * @param \Google\Cloud\Chronicle\V1\TimestampMetadata $var + * @return $this + */ + public function setTimestampMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\TimestampMetadata::class); + $this->timestamp_metadata = $var; + + return $this; + } + + /** + * Whether the column is a longitude field. + * + * Generated from protobuf field bool longitude = 7; + * @return bool + */ + public function getLongitude() + { + return $this->longitude; + } + + /** + * Whether the column is a longitude field. + * + * Generated from protobuf field bool longitude = 7; + * @param bool $var + * @return $this + */ + public function setLongitude($var) + { + GPBUtil::checkBool($var); + $this->longitude = $var; + + return $this; + } + + /** + * Whether the column is a latitude field. + * + * Generated from protobuf field bool latitude = 8; + * @return bool + */ + public function getLatitude() + { + return $this->latitude; + } + + /** + * Whether the column is a latitude field. + * + * Generated from protobuf field bool latitude = 8; + * @param bool $var + * @return $this + */ + public function setLatitude($var) + { + GPBUtil::checkBool($var); + $this->latitude = $var; + + return $this; + } + + /** + * Whether the column is selected in the final response. + * + * Generated from protobuf field bool selected = 9; + * @return bool + */ + public function getSelected() + { + return $this->selected; + } + + /** + * Whether the column is selected in the final response. + * + * Generated from protobuf field bool selected = 9; + * @param bool $var + * @return $this + */ + public function setSelected($var) + { + GPBUtil::checkBool($var); + $this->selected = $var; + + return $this; + } + + /** + * Whether the column is unselected in the final response. + * + * Generated from protobuf field bool unselected = 10; + * @return bool + */ + public function getUnselected() + { + return $this->unselected; + } + + /** + * Whether the column is unselected in the final response. + * + * Generated from protobuf field bool unselected = 10; + * @param bool $var + * @return $this + */ + public function setUnselected($var) + { + GPBUtil::checkBool($var); + $this->unselected = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php new file mode 100644 index 000000000000..0bb762683f68 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php @@ -0,0 +1,193 @@ +google.cloud.chronicle.v1.CompilationDiagnostic + */ +class CompilationDiagnostic extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The diagnostic message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $position = null; + /** + * Output only. The severity of a rule's compilation diagnostic. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $severity = 0; + /** + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * + * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Output only. The diagnostic message. + * @type \Google\Cloud\Chronicle\V1\CompilationPosition $position + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * @type int $severity + * Output only. The severity of a rule's compilation diagnostic. + * @type string $uri + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The diagnostic message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. The diagnostic message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\CompilationPosition|null + */ + public function getPosition() + { + return $this->position; + } + + public function hasPosition() + { + return isset($this->position); + } + + public function clearPosition() + { + unset($this->position); + } + + /** + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\CompilationPosition $var + * @return $this + */ + public function setPosition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\CompilationPosition::class); + $this->position = $var; + + return $this; + } + + /** + * Output only. The severity of a rule's compilation diagnostic. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Output only. The severity of a rule's compilation diagnostic. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\CompilationDiagnostic\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * + * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * + * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php new file mode 100644 index 000000000000..09e4fc379326 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.CompilationDiagnostic.Severity + */ +class Severity +{ + /** + * An unspecified severity level. + * + * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; + */ + const SEVERITY_UNSPECIFIED = 0; + /** + * A compilation warning. + * + * Generated from protobuf enum WARNING = 1; + */ + const WARNING = 1; + /** + * A compilation error. + * + * Generated from protobuf enum ERROR = 2; + */ + const ERROR = 2; + + private static $valueToName = [ + self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', + self::WARNING => 'WARNING', + self::ERROR => 'ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php new file mode 100644 index 000000000000..2ab7cc676528 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php @@ -0,0 +1,170 @@ +google.cloud.chronicle.v1.CompilationPosition + */ +class CompilationPosition extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Start line number, beginning at 1. + * + * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_line = 0; + /** + * Output only. Start column number, beginning at 1. + * + * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_column = 0; + /** + * Output only. End line number, beginning at 1. + * + * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_line = 0; + /** + * Output only. End column number, beginning at 1. + * + * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_column = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $start_line + * Output only. Start line number, beginning at 1. + * @type int $start_column + * Output only. Start column number, beginning at 1. + * @type int $end_line + * Output only. End line number, beginning at 1. + * @type int $end_column + * Output only. End column number, beginning at 1. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Start line number, beginning at 1. + * + * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStartLine() + { + return $this->start_line; + } + + /** + * Output only. Start line number, beginning at 1. + * + * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStartLine($var) + { + GPBUtil::checkInt32($var); + $this->start_line = $var; + + return $this; + } + + /** + * Output only. Start column number, beginning at 1. + * + * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStartColumn() + { + return $this->start_column; + } + + /** + * Output only. Start column number, beginning at 1. + * + * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStartColumn($var) + { + GPBUtil::checkInt32($var); + $this->start_column = $var; + + return $this; + } + + /** + * Output only. End line number, beginning at 1. + * + * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEndLine() + { + return $this->end_line; + } + + /** + * Output only. End line number, beginning at 1. + * + * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEndLine($var) + { + GPBUtil::checkInt32($var); + $this->end_line = $var; + + return $this; + } + + /** + * Output only. End column number, beginning at 1. + * + * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEndColumn() + { + return $this->end_column; + } + + /** + * Output only. End column number, beginning at 1. + * + * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEndColumn($var) + { + GPBUtil::checkInt32($var); + $this->end_column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php new file mode 100644 index 000000000000..53319e2e95d3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php @@ -0,0 +1,183 @@ +google.cloud.chronicle.v1.CreateDataAccessLabelRequest + */ +class CreateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data access label to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_label = null; + /** + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_label_id = ''; + + /** + * @param string $parent Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. Data access label to create. + * @param string $dataAccessLabelId Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * @return \Google\Cloud\Chronicle\V1\CreateDataAccessLabelRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, string $dataAccessLabelId): self + { + return (new self()) + ->setParent($parent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label + * Required. Data access label to create. + * @type string $data_access_label_id + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data access label to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null + */ + public function getDataAccessLabel() + { + return $this->data_access_label; + } + + public function hasDataAccessLabel() + { + return isset($this->data_access_label); + } + + public function clearDataAccessLabel() + { + unset($this->data_access_label); + } + + /** + * Required. Data access label to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var + * @return $this + */ + public function setDataAccessLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); + $this->data_access_label = $var; + + return $this; + } + + /** + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataAccessLabelId() + { + return $this->data_access_label_id; + } + + /** + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataAccessLabelId($var) + { + GPBUtil::checkString($var, True); + $this->data_access_label_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php new file mode 100644 index 000000000000..d4d59d290e1b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php @@ -0,0 +1,178 @@ +google.cloud.chronicle.v1.CreateDataAccessScopeRequest + */ +class CreateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data access scope to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_scope = null; + /** + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_scope_id = ''; + + /** + * @param string $parent Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. Data access scope to create. + * @param string $dataAccessScopeId Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * @return \Google\Cloud\Chronicle\V1\CreateDataAccessScopeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, string $dataAccessScopeId): self + { + return (new self()) + ->setParent($parent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope + * Required. Data access scope to create. + * @type string $data_access_scope_id + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data access scope to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null + */ + public function getDataAccessScope() + { + return $this->data_access_scope; + } + + public function hasDataAccessScope() + { + return isset($this->data_access_scope); + } + + public function clearDataAccessScope() + { + unset($this->data_access_scope); + } + + /** + * Required. Data access scope to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var + * @return $this + */ + public function setDataAccessScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); + $this->data_access_scope = $var; + + return $this; + } + + /** + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataAccessScopeId() + { + return $this->data_access_scope_id; + } + + /** + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataAccessScopeId($var) + { + GPBUtil::checkString($var, True); + $this->data_access_scope_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php new file mode 100644 index 000000000000..01a4b78c238a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php @@ -0,0 +1,188 @@ +google.cloud.chronicle.v1.CreateDataTableRequest + */ +class CreateDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The data table being created. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table = null; + /** + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table_id = ''; + + /** + * @param string $parent Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. The data table being created. + * @param string $dataTableId Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * @return \Google\Cloud\Chronicle\V1\CreateDataTableRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTable $dataTable, string $dataTableId): self + { + return (new self()) + ->setParent($parent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\DataTable $data_table + * Required. The data table being created. + * @type string $data_table_id + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The data table being created. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTable|null + */ + public function getDataTable() + { + return $this->data_table; + } + + public function hasDataTable() + { + return isset($this->data_table); + } + + public function clearDataTable() + { + unset($this->data_table); + } + + /** + * Required. The data table being created. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTable $var + * @return $this + */ + public function setDataTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); + $this->data_table = $var; + + return $this; + } + + /** + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataTableId() + { + return $this->data_table_id; + } + + /** + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataTableId($var) + { + GPBUtil::checkString($var, True); + $this->data_table_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php new file mode 100644 index 000000000000..61d1e625e79e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.CreateDataTableRowRequest + */ +class CreateDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The data table row to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table_row = null; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. The data table row to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow): self + { + return (new self()) + ->setParent($parent) + ->setDataTableRow($dataTableRow); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row + * Required. The data table row to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The data table row to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTableRow|null + */ + public function getDataTableRow() + { + return $this->data_table_row; + } + + public function hasDataTableRow() + { + return isset($this->data_table_row); + } + + public function clearDataTableRow() + { + unset($this->data_table_row); + } + + /** + * Required. The data table row to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTableRow $var + * @return $this + */ + public function setDataTableRow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_row = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php new file mode 100644 index 000000000000..5e04ec90a015 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.CreateNativeDashboardRequest + */ +class CreateNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The dashboard to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $native_dashboard = null; + + /** + * @param string $parent Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. The dashboard to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateNativeDashboardRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard): self + { + return (new self()) + ->setParent($parent) + ->setNativeDashboard($nativeDashboard); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Required. The dashboard to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The dashboard to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Required. The dashboard to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php new file mode 100644 index 000000000000..dabeb7c2fc4b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php @@ -0,0 +1,193 @@ +google.cloud.chronicle.v1.CreateReferenceListRequest + */ +class CreateReferenceListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The reference list to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list = null; + /** + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list_id = ''; + + /** + * @param string $parent Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to create. + * @param string $referenceListId Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * @return \Google\Cloud\Chronicle\V1\CreateReferenceListRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\ReferenceList $referenceList, string $referenceListId): self + { + return (new self()) + ->setParent($parent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list + * Required. The reference list to create. + * @type string $reference_list_id + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The reference list to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ReferenceList|null + */ + public function getReferenceList() + { + return $this->reference_list; + } + + public function hasReferenceList() + { + return isset($this->reference_list); + } + + public function clearReferenceList() + { + unset($this->reference_list); + } + + /** + * Required. The reference list to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceList $var + * @return $this + */ + public function setReferenceList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); + $this->reference_list = $var; + + return $this; + } + + /** + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getReferenceListId() + { + return $this->reference_list_id; + } + + /** + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setReferenceListId($var) + { + GPBUtil::checkString($var, True); + $this->reference_list_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php new file mode 100644 index 000000000000..94af572d344c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.CreateRetrohuntRequest + */ +class CreateRetrohuntRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The retrohunt to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $retrohunt = null; + + /** + * @param string $parent Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt Required. The retrohunt to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateRetrohuntRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt): self + { + return (new self()) + ->setParent($parent) + ->setRetrohunt($retrohunt); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt + * Required. The retrohunt to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The retrohunt to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Retrohunt|null + */ + public function getRetrohunt() + { + return $this->retrohunt; + } + + public function hasRetrohunt() + { + return isset($this->retrohunt); + } + + public function clearRetrohunt() + { + unset($this->retrohunt); + } + + /** + * Required. The retrohunt to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Retrohunt $var + * @return $this + */ + public function setRetrohunt($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Retrohunt::class); + $this->retrohunt = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php new file mode 100644 index 000000000000..883ebb114ef8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.CreateRuleRequest + */ +class CreateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The rule to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rule = null; + + /** + * @param string $parent Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateRuleRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\Rule $rule): self + { + return (new self()) + ->setParent($parent) + ->setRule($rule); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\Rule $rule + * Required. The rule to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The rule to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Rule|null + */ + public function getRule() + { + return $this->rule; + } + + public function hasRule() + { + return isset($this->rule); + } + + public function clearRule() + { + unset($this->rule); + } + + /** + * Required. The rule to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Rule $var + * @return $this + */ + public function setRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rule = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php new file mode 100644 index 000000000000..8909973322b9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php @@ -0,0 +1,184 @@ +google.cloud.chronicle.v1.CreateWatchlistRequest + */ +class CreateWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $watchlist_id = ''; + /** + * Required. The watchlist to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $watchlist = null; + + /** + * @param string $parent Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to create. + * @param string $watchlistId Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * @return \Google\Cloud\Chronicle\V1\CreateWatchlistRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\Watchlist $watchlist, string $watchlistId): self + { + return (new self()) + ->setParent($parent) + ->setWatchlist($watchlist) + ->setWatchlistId($watchlistId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type string $watchlist_id + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist + * Required. The watchlist to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getWatchlistId() + { + return $this->watchlist_id; + } + + /** + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setWatchlistId($var) + { + GPBUtil::checkString($var, True); + $this->watchlist_id = $var; + + return $this; + } + + /** + * Required. The watchlist to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Watchlist|null + */ + public function getWatchlist() + { + return $this->watchlist; + } + + public function hasWatchlist() + { + return isset($this->watchlist); + } + + public function clearWatchlist() + { + unset($this->watchlist); + } + + /** + * Required. The watchlist to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Watchlist $var + * @return $this + */ + public function setWatchlist($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); + $this->watchlist = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php new file mode 100644 index 000000000000..e51b5683efc7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.DashboardAccess + */ +class DashboardAccess +{ + /** + * Default unspecified. + * + * Generated from protobuf enum DASHBOARD_ACCESS_UNSPECIFIED = 0; + */ + const DASHBOARD_ACCESS_UNSPECIFIED = 0; + /** + * Private dashboards created by users/customers. + * + * Generated from protobuf enum DASHBOARD_PRIVATE = 1; + */ + const DASHBOARD_PRIVATE = 1; + /** + * Public dashboards created by users/customers. + * + * Generated from protobuf enum DASHBOARD_PUBLIC = 2; + */ + const DASHBOARD_PUBLIC = 2; + + private static $valueToName = [ + self::DASHBOARD_ACCESS_UNSPECIFIED => 'DASHBOARD_ACCESS_UNSPECIFIED', + self::DASHBOARD_PRIVATE => 'DASHBOARD_PRIVATE', + self::DASHBOARD_PUBLIC => 'DASHBOARD_PUBLIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php new file mode 100644 index 000000000000..952bcdd0a76a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php @@ -0,0 +1,431 @@ +google.cloud.chronicle.v1.DashboardChart + */ +class DashboardChart extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the dashboardChart. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Display name/Title of the dashboardChart visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of the dashboardChart. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. NativeDashboard this chart belongs to. + * + * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $native_dashboard = ''; + /** + * Optional. Type of tile i.e., visualization, button or text. + * + * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $tile_type = 0; + /** + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $chart_datasource = null; + /** + * Required. Depending on tile_type one of below fields will be required. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $visualization = null; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. Drill down configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $drill_down_config = null; + /** + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * + * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tokens; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the dashboardChart. + * @type string $display_name + * Required. Display name/Title of the dashboardChart visible to users. + * @type string $description + * Optional. Description of the dashboardChart. + * @type string $native_dashboard + * Output only. NativeDashboard this chart belongs to. + * @type int $tile_type + * Optional. Type of tile i.e., visualization, button or text. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource $chart_datasource + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization $visualization + * Required. Depending on tile_type one of below fields will be required. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig $drill_down_config + * Optional. Drill down configuration. + * @type string[] $tokens + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the dashboardChart. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the dashboardChart. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Display name/Title of the dashboardChart visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name/Title of the dashboardChart visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the dashboardChart. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the dashboardChart. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. NativeDashboard this chart belongs to. + * + * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + /** + * Output only. NativeDashboard this chart belongs to. + * + * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkString($var, True); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Optional. Type of tile i.e., visualization, button or text. + * + * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTileType() + { + return $this->tile_type; + } + + /** + * Optional. Type of tile i.e., visualization, button or text. + * + * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTileType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\TileType::class); + $this->tile_type = $var; + + return $this; + } + + /** + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource|null + */ + public function getChartDatasource() + { + return $this->chart_datasource; + } + + public function hasChartDatasource() + { + return isset($this->chart_datasource); + } + + public function clearChartDatasource() + { + unset($this->chart_datasource); + } + + /** + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource $var + * @return $this + */ + public function setChartDatasource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource::class); + $this->chart_datasource = $var; + + return $this; + } + + /** + * Required. Depending on tile_type one of below fields will be required. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization|null + */ + public function getVisualization() + { + return $this->visualization; + } + + public function hasVisualization() + { + return isset($this->visualization); + } + + public function clearVisualization() + { + unset($this->visualization); + } + + /** + * Required. Depending on tile_type one of below fields will be required. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization $var + * @return $this + */ + public function setVisualization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization::class); + $this->visualization = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Drill down configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig|null + */ + public function getDrillDownConfig() + { + return $this->drill_down_config; + } + + public function hasDrillDownConfig() + { + return isset($this->drill_down_config); + } + + public function clearDrillDownConfig() + { + unset($this->drill_down_config); + } + + /** + * Optional. Drill down configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig $var + * @return $this + */ + public function setDrillDownConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig::class); + $this->drill_down_config = $var; + + return $this; + } + + /** + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * + * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTokens() + { + return $this->tokens; + } + + /** + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * + * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTokens($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tokens = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php new file mode 100644 index 000000000000..7e4895cd74ad --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.ChartDatasource + */ +class ChartDatasource extends \Google\Protobuf\Internal\Message +{ + /** + * Reference to dashboard query resource used in the chart. + * + * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { + */ + protected $dashboard_query = ''; + /** + * Name of the datasource used in the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + */ + private $data_sources; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard_query + * Reference to dashboard query resource used in the chart. + * @type int[] $data_sources + * Name of the datasource used in the chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Reference to dashboard query resource used in the chart. + * + * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getDashboardQuery() + { + return $this->dashboard_query; + } + + /** + * Reference to dashboard query resource used in the chart. + * + * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardQuery($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_query = $var; + + return $this; + } + + /** + * Name of the datasource used in the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @return RepeatedField + */ + public function getDataSources() + { + return $this->data_sources; + } + + /** + * Name of the datasource used in the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @param int[] $var + * @return $this + */ + public function setDataSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_sources = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php new file mode 100644 index 000000000000..57aacc8685ca --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig + */ +class DrillDownConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Left click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $left_drill_downs; + /** + * Required. Right click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $right_drill_downs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $left_drill_downs + * Required. Left click drill downs. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $right_drill_downs + * Required. Right click drill downs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Left click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown> + */ + public function getLeftDrillDowns() + { + return $this->left_drill_downs; + } + + /** + * Required. Left click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $var + * @return $this + */ + public function setLeftDrillDowns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown::class); + $this->left_drill_downs = $arr; + + return $this; + } + + /** + * Required. Right click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown> + */ + public function getRightDrillDowns() + { + return $this->right_drill_downs; + } + + /** + * Required. Right click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $var + * @return $this + */ + public function setRightDrillDowns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown::class); + $this->right_drill_downs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php new file mode 100644 index 000000000000..b6c23fd7a06e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php @@ -0,0 +1,176 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown + */ +class DrillDown extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the drill down. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Required. Display name of the drill down. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + protected $settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings $default_settings + * Default drill down settings. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings $custom_settings + * Custom drill down settings. + * @type string $id + * Required. ID of the drill down. + * @type string $display_name + * Required. Display name of the drill down. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Default drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings default_settings = 3; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings|null + */ + public function getDefaultSettings() + { + return $this->readOneof(3); + } + + public function hasDefaultSettings() + { + return $this->hasOneof(3); + } + + /** + * Default drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings default_settings = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings $var + * @return $this + */ + public function setDefaultSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Custom drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings custom_settings = 4; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings|null + */ + public function getCustomSettings() + { + return $this->readOneof(4); + } + + public function hasCustomSettings() + { + return $this->hasOneof(4); + } + + /** + * Custom drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings custom_settings = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings $var + * @return $this + */ + public function setCustomSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Required. ID of the drill down. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. ID of the drill down. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Required. Display name of the drill down. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name of the drill down. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getSettings() + { + return $this->whichOneof("settings"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php new file mode 100644 index 000000000000..51779e14d83d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php @@ -0,0 +1,213 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings + */ +class CustomDrillDownSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Whether to open the drill down action in a new tab. + * + * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_tab = false; + /** + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * + * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $left_click_column = ''; + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery $query + * Drill down query action config. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter $filter + * Drill down filter action config. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink $external_link + * Drill down external link action config. + * @type bool $new_tab + * Required. Whether to open the drill down action in a new tab. + * @type string $left_click_column + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Drill down query action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery query = 3; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery|null + */ + public function getQuery() + { + return $this->readOneof(3); + } + + public function hasQuery() + { + return $this->hasOneof(3); + } + + /** + * Drill down query action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery query = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Drill down filter action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter filter = 4; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter|null + */ + public function getFilter() + { + return $this->readOneof(4); + } + + public function hasFilter() + { + return $this->hasOneof(4); + } + + /** + * Drill down filter action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter filter = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Drill down external link action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink external_link = 5; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink|null + */ + public function getExternalLink() + { + return $this->readOneof(5); + } + + public function hasExternalLink() + { + return $this->hasOneof(5); + } + + /** + * Drill down external link action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink external_link = 5; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink $var + * @return $this + */ + public function setExternalLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Required. Whether to open the drill down action in a new tab. + * + * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getNewTab() + { + return $this->new_tab; + } + + /** + * Required. Whether to open the drill down action in a new tab. + * + * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setNewTab($var) + { + GPBUtil::checkBool($var); + $this->new_tab = $var; + + return $this; + } + + /** + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * + * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLeftClickColumn() + { + return $this->left_click_column; + } + + /** + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * + * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLeftClickColumn($var) + { + GPBUtil::checkString($var, True); + $this->left_click_column = $var; + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php new file mode 100644 index 000000000000..40700f5c4d06 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink + */ +class DrillDownExternalLink extends \Google\Protobuf\Internal\Message +{ + /** + * Required. External link the drill down action should redirect to. + * + * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $link = ''; + /** + * Optional. Description of the external link. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $link + * Required. External link the drill down action should redirect to. + * @type string $description + * Optional. Description of the external link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. External link the drill down action should redirect to. + * + * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLink() + { + return $this->link; + } + + /** + * Required. External link the drill down action should redirect to. + * + * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLink($var) + { + GPBUtil::checkString($var, True); + $this->link = $var; + + return $this; + } + + /** + * Optional. Description of the external link. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the external link. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php new file mode 100644 index 000000000000..ec6d39b1562b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter + */ +class DrillDownFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Dashboard filters to be applied on drill down. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $dashboard_filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter[] $dashboard_filters + * Required. Dashboard filters to be applied on drill down. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Dashboard filters to be applied on drill down. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter> + */ + public function getDashboardFilters() + { + return $this->dashboard_filters; + } + + /** + * Required. Dashboard filters to be applied on drill down. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter[] $var + * @return $this + */ + public function setDashboardFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter::class); + $this->dashboard_filters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php new file mode 100644 index 000000000000..31976604ae30 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter + */ +class DrillDownDashboardFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the dashboard filter. + * + * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dashboard_filter_id = ''; + /** + * Required. Filter operator and field values for the dashboard + * filter. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $filter_operator_and_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard_filter_id + * Required. ID of the dashboard filter. + * @type \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $filter_operator_and_values + * Required. Filter operator and field values for the dashboard + * filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the dashboard filter. + * + * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDashboardFilterId() + { + return $this->dashboard_filter_id; + } + + /** + * Required. ID of the dashboard filter. + * + * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDashboardFilterId($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_filter_id = $var; + + return $this; + } + + /** + * Required. Filter operator and field values for the dashboard + * filter. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\FilterOperatorAndValues> + */ + public function getFilterOperatorAndValues() + { + return $this->filter_operator_and_values; + } + + /** + * Required. Filter operator and field values for the dashboard + * filter. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $var + * @return $this + */ + public function setFilterOperatorAndValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FilterOperatorAndValues::class); + $this->filter_operator_and_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php new file mode 100644 index 000000000000..ed1b8a5b57d2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery + */ +class DrillDownQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Search query to be executed on drill down. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * Required. Search query to be executed on drill down. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Search query to be executed on drill down. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. Search query to be executed on drill down. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php new file mode 100644 index 000000000000..ddb7719040b2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings + */ +class DefaultDrillDownSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Whether the default drill down is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Required. Whether the default drill down is enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Whether the default drill down is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Required. Whether the default drill down is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php new file mode 100644 index 000000000000..af7b13fb1d9b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php @@ -0,0 +1,533 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization + */ +class Visualization extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; + */ + private $x_axes; + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; + */ + private $y_axes; + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; + */ + private $series; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; + */ + protected $tooltip = null; + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; + */ + private $legends; + /** + * Column Definition to represent chart as a table. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; + */ + private $column_defs; + /** + * Optional. Configuration for table appearance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_config = null; + /** + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; + */ + protected $button = null; + /** + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $markdown = null; + /** + * Optional. Selected column for series + * + * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $series_column; + /** + * Optional. Selected grouping type for series + * + * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $grouping_type = ''; + /** + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $google_maps_config = null; + /** + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * + * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $threshold_coloring_enabled = false; + /** + * Optional. Visual maps for the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $visual_maps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $x_axes + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $y_axes + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series[] $series + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip $tooltip + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend[] $legends + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef[] $column_defs + * Column Definition to represent chart as a table. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig $table_config + * Optional. Configuration for table appearance. + * @type \Google\Cloud\Chronicle\V1\Button $button + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * @type \Google\Cloud\Chronicle\V1\Markdown $markdown + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * @type string[] $series_column + * Optional. Selected column for series + * @type string $grouping_type + * Optional. Selected grouping type for series + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig $google_maps_config + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * @type bool $threshold_coloring_enabled + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap[] $visual_maps + * Optional. Visual maps for the chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis> + */ + public function getXAxes() + { + return $this->x_axes; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $var + * @return $this + */ + public function setXAxes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis::class); + $this->x_axes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis> + */ + public function getYAxes() + { + return $this->y_axes; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $var + * @return $this + */ + public function setYAxes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis::class); + $this->y_axes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series> + */ + public function getSeries() + { + return $this->series; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series[] $var + * @return $this + */ + public function setSeries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series::class); + $this->series = $arr; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip|null + */ + public function getTooltip() + { + return $this->tooltip; + } + + public function hasTooltip() + { + return isset($this->tooltip); + } + + public function clearTooltip() + { + unset($this->tooltip); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip $var + * @return $this + */ + public function setTooltip($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip::class); + $this->tooltip = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend> + */ + public function getLegends() + { + return $this->legends; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend[] $var + * @return $this + */ + public function setLegends($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend::class); + $this->legends = $arr; + + return $this; + } + + /** + * Column Definition to represent chart as a table. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef> + */ + public function getColumnDefs() + { + return $this->column_defs; + } + + /** + * Column Definition to represent chart as a table. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef[] $var + * @return $this + */ + public function setColumnDefs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef::class); + $this->column_defs = $arr; + + return $this; + } + + /** + * Optional. Configuration for table appearance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig|null + */ + public function getTableConfig() + { + return $this->table_config; + } + + public function hasTableConfig() + { + return isset($this->table_config); + } + + public function clearTableConfig() + { + unset($this->table_config); + } + + /** + * Optional. Configuration for table appearance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig $var + * @return $this + */ + public function setTableConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig::class); + $this->table_config = $var; + + return $this; + } + + /** + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; + * @return \Google\Cloud\Chronicle\V1\Button|null + */ + public function getButton() + { + return $this->button; + } + + public function hasButton() + { + return isset($this->button); + } + + public function clearButton() + { + unset($this->button); + } + + /** + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; + * @param \Google\Cloud\Chronicle\V1\Button $var + * @return $this + */ + public function setButton($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Button::class); + $this->button = $var; + + return $this; + } + + /** + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Markdown|null + */ + public function getMarkdown() + { + return $this->markdown; + } + + public function hasMarkdown() + { + return isset($this->markdown); + } + + public function clearMarkdown() + { + unset($this->markdown); + } + + /** + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Markdown $var + * @return $this + */ + public function setMarkdown($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Markdown::class); + $this->markdown = $var; + + return $this; + } + + /** + * Optional. Selected column for series + * + * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSeriesColumn() + { + return $this->series_column; + } + + /** + * Optional. Selected column for series + * + * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSeriesColumn($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->series_column = $arr; + + return $this; + } + + /** + * Optional. Selected grouping type for series + * + * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGroupingType() + { + return $this->grouping_type; + } + + /** + * Optional. Selected grouping type for series + * + * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGroupingType($var) + { + GPBUtil::checkString($var, True); + $this->grouping_type = $var; + + return $this; + } + + /** + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig|null + */ + public function getGoogleMapsConfig() + { + return $this->google_maps_config; + } + + public function hasGoogleMapsConfig() + { + return isset($this->google_maps_config); + } + + public function clearGoogleMapsConfig() + { + unset($this->google_maps_config); + } + + /** + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig $var + * @return $this + */ + public function setGoogleMapsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig::class); + $this->google_maps_config = $var; + + return $this; + } + + /** + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * + * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getThresholdColoringEnabled() + { + return $this->threshold_coloring_enabled; + } + + /** + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * + * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setThresholdColoringEnabled($var) + { + GPBUtil::checkBool($var); + $this->threshold_coloring_enabled = $var; + + return $this; + } + + /** + * Optional. Visual maps for the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap> + */ + public function getVisualMaps() + { + return $this->visual_maps; + } + + /** + * Optional. Visual maps for the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap[] $var + * @return $this + */ + public function setVisualMaps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap::class); + $this->visual_maps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php new file mode 100644 index 000000000000..b7d063f2cbc7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php @@ -0,0 +1,181 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Axis + */ +class Axis extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; + */ + protected $axis_type = 0; + /** + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * + * Generated from protobuf field optional int32 min = 6; + */ + protected $min = null; + /** + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * + * Generated from protobuf field optional int32 max = 7; + */ + protected $max = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $axis_type + * @type string $display_name + * @type int $min + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * @type int $max + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; + * @return int + */ + public function getAxisType() + { + return $this->axis_type; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; + * @param int $var + * @return $this + */ + public function setAxisType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\AxisType::class); + $this->axis_type = $var; + + return $this; + } + + /** + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Generated from protobuf field string display_name = 5; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * + * Generated from protobuf field optional int32 min = 6; + * @return int + */ + public function getMin() + { + return isset($this->min) ? $this->min : 0; + } + + public function hasMin() + { + return isset($this->min); + } + + public function clearMin() + { + unset($this->min); + } + + /** + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * + * Generated from protobuf field optional int32 min = 6; + * @param int $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkInt32($var); + $this->min = $var; + + return $this; + } + + /** + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * + * Generated from protobuf field optional int32 max = 7; + * @return int + */ + public function getMax() + { + return isset($this->max) ? $this->max : 0; + } + + public function hasMax() + { + return isset($this->max); + } + + public function clearMax() + { + unset($this->max); + } + + /** + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * + * Generated from protobuf field optional int32 max = 7; + * @param int $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkInt32($var); + $this->max = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php new file mode 100644 index 000000000000..1455eed4278d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef + */ +class ColumnDef extends \Google\Protobuf\Internal\Message +{ + /** + * Field key in data. + * + * Generated from protobuf field string field = 1; + */ + protected $field = ''; + /** + * Header name for column. + * + * Generated from protobuf field string header = 2; + */ + protected $header = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Field key in data. + * @type string $header + * Header name for column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Field key in data. + * + * Generated from protobuf field string field = 1; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Field key in data. + * + * Generated from protobuf field string field = 1; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Header name for column. + * + * Generated from protobuf field string header = 2; + * @return string + */ + public function getHeader() + { + return $this->header; + } + + /** + * Header name for column. + * + * Generated from protobuf field string header = 2; + * @param string $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkString($var, True); + $this->header = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php new file mode 100644 index 000000000000..fdcdde1cf7bd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php @@ -0,0 +1,102 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings + */ +class ColumnRenderTypeSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $field = ''; + /** + * Optional. Column render type. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $column_render_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Optional. Field key in data. + * @type int $column_render_type + * Optional. Column render type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Optional. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Optional. Column render type. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getColumnRenderType() + { + return $this->column_render_type; + } + + /** + * Optional. Column render type. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setColumnRenderType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RenderType::class); + $this->column_render_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php new file mode 100644 index 000000000000..55a4cb54c72b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings + */ +class ColumnTooltipSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = ''; + /** + * Optional. Column header tooltip text. + * + * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $header_tooltip_text = ''; + /** + * Optional. Column cell tooltip text. + * + * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cell_tooltip_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Required. Field key in data. + * @type string $header_tooltip_text + * Optional. Column header tooltip text. + * @type string $cell_tooltip_text + * Optional. Column cell tooltip text. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Required. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Optional. Column header tooltip text. + * + * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getHeaderTooltipText() + { + return $this->header_tooltip_text; + } + + /** + * Optional. Column header tooltip text. + * + * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setHeaderTooltipText($var) + { + GPBUtil::checkString($var, True); + $this->header_tooltip_text = $var; + + return $this; + } + + /** + * Optional. Column cell tooltip text. + * + * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCellTooltipText() + { + return $this->cell_tooltip_text; + } + + /** + * Optional. Column cell tooltip text. + * + * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCellTooltipText($var) + { + GPBUtil::checkString($var, True); + $this->cell_tooltip_text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php new file mode 100644 index 000000000000..338161b61fa6 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php @@ -0,0 +1,203 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig + */ +class GoogleMapsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Data settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_settings = null; + /** + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $plot_mode = 0; + /** + * Optional. Map position settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $map_position = null; + /** + * Optional. Point settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $point_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings $data_settings + * Optional. Data settings for the map. + * @type int $plot_mode + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition $map_position + * Optional. Map position settings for the map. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings $point_settings + * Optional. Point settings for the map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Data settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings|null + */ + public function getDataSettings() + { + return $this->data_settings; + } + + public function hasDataSettings() + { + return isset($this->data_settings); + } + + public function clearDataSettings() + { + unset($this->data_settings); + } + + /** + * Optional. Data settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings $var + * @return $this + */ + public function setDataSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings::class); + $this->data_settings = $var; + + return $this; + } + + /** + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPlotMode() + { + return $this->plot_mode; + } + + /** + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPlotMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\PlotMode::class); + $this->plot_mode = $var; + + return $this; + } + + /** + * Optional. Map position settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition|null + */ + public function getMapPosition() + { + return $this->map_position; + } + + public function hasMapPosition() + { + return isset($this->map_position); + } + + public function clearMapPosition() + { + unset($this->map_position); + } + + /** + * Optional. Map position settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition $var + * @return $this + */ + public function setMapPosition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition::class); + $this->map_position = $var; + + return $this; + } + + /** + * Optional. Point settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings|null + */ + public function getPointSettings() + { + return $this->point_settings; + } + + public function hasPointSettings() + { + return isset($this->point_settings); + } + + public function clearPointSettings() + { + unset($this->point_settings); + } + + /** + * Optional. Point settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings $var + * @return $this + */ + public function setPointSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings::class); + $this->point_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php new file mode 100644 index 000000000000..9266e58d7376 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings + */ +class DataSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Latitude column. + * + * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latitude_column = ''; + /** + * Optional. Longitude column. + * + * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $longitude_column = ''; + /** + * Optional. Field to count. + * + * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $count_column = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $latitude_column + * Optional. Latitude column. + * @type string $longitude_column + * Optional. Longitude column. + * @type string $count_column + * Optional. Field to count. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Latitude column. + * + * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLatitudeColumn() + { + return $this->latitude_column; + } + + /** + * Optional. Latitude column. + * + * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLatitudeColumn($var) + { + GPBUtil::checkString($var, True); + $this->latitude_column = $var; + + return $this; + } + + /** + * Optional. Longitude column. + * + * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLongitudeColumn() + { + return $this->longitude_column; + } + + /** + * Optional. Longitude column. + * + * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLongitudeColumn($var) + { + GPBUtil::checkString($var, True); + $this->longitude_column = $var; + + return $this; + } + + /** + * Optional. Field to count. + * + * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCountColumn() + { + return $this->count_column; + } + + /** + * Optional. Field to count. + * + * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCountColumn($var) + { + GPBUtil::checkString($var, True); + $this->count_column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php new file mode 100644 index 000000000000..4fded9790bcd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php @@ -0,0 +1,177 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition + */ +class MapPosition extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * + * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fit_data = false; + /** + * Optional. Latitude of the map. + * + * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latitude_value = 0.0; + /** + * Optional. Longitude of the map. + * + * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $longitude_value = 0.0; + /** + * Optional. Scale of the map. + * + * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $zoom_scale_value = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $fit_data + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * @type float $latitude_value + * Optional. Latitude of the map. + * @type float $longitude_value + * Optional. Longitude of the map. + * @type float $zoom_scale_value + * Optional. Scale of the map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * + * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getFitData() + { + return $this->fit_data; + } + + /** + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * + * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setFitData($var) + { + GPBUtil::checkBool($var); + $this->fit_data = $var; + + return $this; + } + + /** + * Optional. Latitude of the map. + * + * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getLatitudeValue() + { + return $this->latitude_value; + } + + /** + * Optional. Latitude of the map. + * + * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setLatitudeValue($var) + { + GPBUtil::checkDouble($var); + $this->latitude_value = $var; + + return $this; + } + + /** + * Optional. Longitude of the map. + * + * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getLongitudeValue() + { + return $this->longitude_value; + } + + /** + * Optional. Longitude of the map. + * + * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setLongitudeValue($var) + { + GPBUtil::checkDouble($var); + $this->longitude_value = $var; + + return $this; + } + + /** + * Optional. Scale of the map. + * + * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getZoomScaleValue() + { + return $this->zoom_scale_value; + } + + /** + * Optional. Scale of the map. + * + * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setZoomScaleValue($var) + { + GPBUtil::checkDouble($var); + $this->zoom_scale_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php new file mode 100644 index 000000000000..ae9248b5adac --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings + */ +class PointSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $point_size_type = 0; + /** + * Optional. Color for the point on the map. + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $point_size_type + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * @type string $color + * Optional. Color for the point on the map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPointSizeType() + { + return $this->point_size_type; + } + + /** + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPointSizeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\PointSizeType::class); + $this->point_size_type = $var; + + return $this; + } + + /** + * Optional. Color for the point on the map. + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Color for the point on the map. + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php new file mode 100644 index 000000000000..85508b0d8051 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php @@ -0,0 +1,328 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Legend + */ +class Legend extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Generated from protobuf field bool show = 2; + */ + protected $show = false; + /** + * Generated from protobuf field int32 z_level = 3; + */ + protected $z_level = 0; + /** + * Generated from protobuf field int32 z = 4; + */ + protected $z = 0; + /** + * Generated from protobuf field int32 left = 5; + */ + protected $left = 0; + /** + * Generated from protobuf field int32 top = 6; + */ + protected $top = 0; + /** + * Generated from protobuf field int32 right = 7; + */ + protected $right = 0; + /** + * Generated from protobuf field int32 bottom = 8; + */ + protected $bottom = 0; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; + */ + protected $legend_orient = 0; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; + */ + protected $legend_align = 0; + /** + * Generated from protobuf field repeated int32 padding = 11; + */ + private $padding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * @type bool $show + * @type int $z_level + * @type int $z + * @type int $left + * @type int $top + * @type int $right + * @type int $bottom + * @type int $legend_orient + * @type int $legend_align + * @type int[] $padding + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Generated from protobuf field bool show = 2; + * @return bool + */ + public function getShow() + { + return $this->show; + } + + /** + * Generated from protobuf field bool show = 2; + * @param bool $var + * @return $this + */ + public function setShow($var) + { + GPBUtil::checkBool($var); + $this->show = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 z_level = 3; + * @return int + */ + public function getZLevel() + { + return $this->z_level; + } + + /** + * Generated from protobuf field int32 z_level = 3; + * @param int $var + * @return $this + */ + public function setZLevel($var) + { + GPBUtil::checkInt32($var); + $this->z_level = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 z = 4; + * @return int + */ + public function getZ() + { + return $this->z; + } + + /** + * Generated from protobuf field int32 z = 4; + * @param int $var + * @return $this + */ + public function setZ($var) + { + GPBUtil::checkInt32($var); + $this->z = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 left = 5; + * @return int + */ + public function getLeft() + { + return $this->left; + } + + /** + * Generated from protobuf field int32 left = 5; + * @param int $var + * @return $this + */ + public function setLeft($var) + { + GPBUtil::checkInt32($var); + $this->left = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 top = 6; + * @return int + */ + public function getTop() + { + return $this->top; + } + + /** + * Generated from protobuf field int32 top = 6; + * @param int $var + * @return $this + */ + public function setTop($var) + { + GPBUtil::checkInt32($var); + $this->top = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 right = 7; + * @return int + */ + public function getRight() + { + return $this->right; + } + + /** + * Generated from protobuf field int32 right = 7; + * @param int $var + * @return $this + */ + public function setRight($var) + { + GPBUtil::checkInt32($var); + $this->right = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 bottom = 8; + * @return int + */ + public function getBottom() + { + return $this->bottom; + } + + /** + * Generated from protobuf field int32 bottom = 8; + * @param int $var + * @return $this + */ + public function setBottom($var) + { + GPBUtil::checkInt32($var); + $this->bottom = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; + * @return int + */ + public function getLegendOrient() + { + return $this->legend_orient; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; + * @param int $var + * @return $this + */ + public function setLegendOrient($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\LegendOrient::class); + $this->legend_orient = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; + * @return int + */ + public function getLegendAlign() + { + return $this->legend_align; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; + * @param int $var + * @return $this + */ + public function setLegendAlign($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\LegendAlign::class); + $this->legend_align = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated int32 padding = 11; + * @return RepeatedField + */ + public function getPadding() + { + return $this->padding; + } + + /** + * Generated from protobuf field repeated int32 padding = 11; + * @param int[] $var + * @return $this + */ + public function setPadding($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->padding = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php new file mode 100644 index 000000000000..d9b2e06e31be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php @@ -0,0 +1,627 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series + */ +class Series extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; + */ + protected $series_type = 0; + /** + * user specified series label + * + * Generated from protobuf field string series_name = 2; + */ + protected $series_name = ''; + /** + * Generated from protobuf field bool show_symbol = 4; + */ + protected $show_symbol = false; + /** + * Generated from protobuf field bool show_background = 5; + */ + protected $show_background = false; + /** + * Generated from protobuf field string stack = 6; + */ + protected $stack = ''; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; + */ + protected $series_stack_strategy = 0; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; + */ + protected $encode = null; + /** + * Generated from protobuf field string label = 11; + */ + protected $label = ''; + /** + * Generated from protobuf field string field = 12; + */ + protected $field = ''; + /** + * Optional. Data label config for a series. + * Displays data vaule in the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_label = null; + /** + * Optional. Used to make a pie chart into a douhnut chart + * + * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $radius; + /** + * Optional. Custom styling for chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $item_style = null; + /** + * Optional. Series unique value from the query result + * + * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $series_unique_value = ''; + /** + * Optional. Custom styling for area chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $area_style = null; + /** + * Optional. Field to be saved for retrieving slice colors for the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $item_colors = null; + /** + * Optional. Field to be saved for retrieving gauge config for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $gauge_config = null; + /** + * Optional. Fields to capture trend config for metric charts + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_trend_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $series_type + * @type string $series_name + * user specified series label + * @type bool $show_symbol + * @type bool $show_background + * @type string $stack + * @type int $series_stack_strategy + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode $encode + * @type string $label + * @type string $field + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel $data_label + * Optional. Data label config for a series. + * Displays data vaule in the chart + * @type string[] $radius + * Optional. Used to make a pie chart into a douhnut chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle $item_style + * Optional. Custom styling for chart + * @type string $series_unique_value + * Optional. Series unique value from the query result + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle $area_style + * Optional. Custom styling for area chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors $item_colors + * Optional. Field to be saved for retrieving slice colors for the chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig $gauge_config + * Optional. Field to be saved for retrieving gauge config for gauge chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig $metric_trend_config + * Optional. Fields to capture trend config for metric charts + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; + * @return int + */ + public function getSeriesType() + { + return $this->series_type; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; + * @param int $var + * @return $this + */ + public function setSeriesType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\SeriesType::class); + $this->series_type = $var; + + return $this; + } + + /** + * user specified series label + * + * Generated from protobuf field string series_name = 2; + * @return string + */ + public function getSeriesName() + { + return $this->series_name; + } + + /** + * user specified series label + * + * Generated from protobuf field string series_name = 2; + * @param string $var + * @return $this + */ + public function setSeriesName($var) + { + GPBUtil::checkString($var, True); + $this->series_name = $var; + + return $this; + } + + /** + * Generated from protobuf field bool show_symbol = 4; + * @return bool + */ + public function getShowSymbol() + { + return $this->show_symbol; + } + + /** + * Generated from protobuf field bool show_symbol = 4; + * @param bool $var + * @return $this + */ + public function setShowSymbol($var) + { + GPBUtil::checkBool($var); + $this->show_symbol = $var; + + return $this; + } + + /** + * Generated from protobuf field bool show_background = 5; + * @return bool + */ + public function getShowBackground() + { + return $this->show_background; + } + + /** + * Generated from protobuf field bool show_background = 5; + * @param bool $var + * @return $this + */ + public function setShowBackground($var) + { + GPBUtil::checkBool($var); + $this->show_background = $var; + + return $this; + } + + /** + * Generated from protobuf field string stack = 6; + * @return string + */ + public function getStack() + { + return $this->stack; + } + + /** + * Generated from protobuf field string stack = 6; + * @param string $var + * @return $this + */ + public function setStack($var) + { + GPBUtil::checkString($var, True); + $this->stack = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; + * @return int + */ + public function getSeriesStackStrategy() + { + return $this->series_stack_strategy; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; + * @param int $var + * @return $this + */ + public function setSeriesStackStrategy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\SeriesStackStrategy::class); + $this->series_stack_strategy = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode|null + */ + public function getEncode() + { + return $this->encode; + } + + public function hasEncode() + { + return isset($this->encode); + } + + public function clearEncode() + { + unset($this->encode); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode $var + * @return $this + */ + public function setEncode($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode::class); + $this->encode = $var; + + return $this; + } + + /** + * Generated from protobuf field string label = 11; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Generated from protobuf field string label = 11; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Generated from protobuf field string field = 12; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Generated from protobuf field string field = 12; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Optional. Data label config for a series. + * Displays data vaule in the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel|null + */ + public function getDataLabel() + { + return $this->data_label; + } + + public function hasDataLabel() + { + return isset($this->data_label); + } + + public function clearDataLabel() + { + unset($this->data_label); + } + + /** + * Optional. Data label config for a series. + * Displays data vaule in the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel $var + * @return $this + */ + public function setDataLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel::class); + $this->data_label = $var; + + return $this; + } + + /** + * Optional. Used to make a pie chart into a douhnut chart + * + * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getRadius() + { + return $this->radius; + } + + /** + * Optional. Used to make a pie chart into a douhnut chart + * + * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setRadius($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->radius = $arr; + + return $this; + } + + /** + * Optional. Custom styling for chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle|null + */ + public function getItemStyle() + { + return $this->item_style; + } + + public function hasItemStyle() + { + return isset($this->item_style); + } + + public function clearItemStyle() + { + unset($this->item_style); + } + + /** + * Optional. Custom styling for chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle $var + * @return $this + */ + public function setItemStyle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle::class); + $this->item_style = $var; + + return $this; + } + + /** + * Optional. Series unique value from the query result + * + * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSeriesUniqueValue() + { + return $this->series_unique_value; + } + + /** + * Optional. Series unique value from the query result + * + * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSeriesUniqueValue($var) + { + GPBUtil::checkString($var, True); + $this->series_unique_value = $var; + + return $this; + } + + /** + * Optional. Custom styling for area chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle|null + */ + public function getAreaStyle() + { + return $this->area_style; + } + + public function hasAreaStyle() + { + return isset($this->area_style); + } + + public function clearAreaStyle() + { + unset($this->area_style); + } + + /** + * Optional. Custom styling for area chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle $var + * @return $this + */ + public function setAreaStyle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle::class); + $this->area_style = $var; + + return $this; + } + + /** + * Optional. Field to be saved for retrieving slice colors for the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors|null + */ + public function getItemColors() + { + return $this->item_colors; + } + + public function hasItemColors() + { + return isset($this->item_colors); + } + + public function clearItemColors() + { + unset($this->item_colors); + } + + /** + * Optional. Field to be saved for retrieving slice colors for the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors $var + * @return $this + */ + public function setItemColors($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors::class); + $this->item_colors = $var; + + return $this; + } + + /** + * Optional. Field to be saved for retrieving gauge config for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig|null + */ + public function getGaugeConfig() + { + return $this->gauge_config; + } + + public function hasGaugeConfig() + { + return isset($this->gauge_config); + } + + public function clearGaugeConfig() + { + unset($this->gauge_config); + } + + /** + * Optional. Field to be saved for retrieving gauge config for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig $var + * @return $this + */ + public function setGaugeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig::class); + $this->gauge_config = $var; + + return $this; + } + + /** + * Optional. Fields to capture trend config for metric charts + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig|null + */ + public function getMetricTrendConfig() + { + return $this->metric_trend_config; + } + + public function hasMetricTrendConfig() + { + return isset($this->metric_trend_config); + } + + public function clearMetricTrendConfig() + { + unset($this->metric_trend_config); + } + + /** + * Optional. Fields to capture trend config for metric charts + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig $var + * @return $this + */ + public function setMetricTrendConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig::class); + $this->metric_trend_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php new file mode 100644 index 000000000000..05188a1ac7e7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php @@ -0,0 +1,271 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle + */ +class AreaStyle extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Optional. Used to add origin + * + * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $origin = ''; + /** + * Optional. Used to add shadow blur + * + * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_blur = 0; + /** + * Optional. Used to add shadow color + * + * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_color = ''; + /** + * Optional. Used to add shadow offsetX + * + * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_offset_x = 0; + /** + * Optional. Used to add shadow offsetY + * + * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_offset_y = 0; + /** + * Optional. Used to add opacity + * + * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $opacity = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $color + * Optional. Used to add color + * @type string $origin + * Optional. Used to add origin + * @type int $shadow_blur + * Optional. Used to add shadow blur + * @type string $shadow_color + * Optional. Used to add shadow color + * @type int $shadow_offset_x + * Optional. Used to add shadow offsetX + * @type int $shadow_offset_y + * Optional. Used to add shadow offsetY + * @type int $opacity + * Optional. Used to add opacity + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Optional. Used to add origin + * + * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrigin() + { + return $this->origin; + } + + /** + * Optional. Used to add origin + * + * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrigin($var) + { + GPBUtil::checkString($var, True); + $this->origin = $var; + + return $this; + } + + /** + * Optional. Used to add shadow blur + * + * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getShadowBlur() + { + return $this->shadow_blur; + } + + /** + * Optional. Used to add shadow blur + * + * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setShadowBlur($var) + { + GPBUtil::checkInt32($var); + $this->shadow_blur = $var; + + return $this; + } + + /** + * Optional. Used to add shadow color + * + * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getShadowColor() + { + return $this->shadow_color; + } + + /** + * Optional. Used to add shadow color + * + * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setShadowColor($var) + { + GPBUtil::checkString($var, True); + $this->shadow_color = $var; + + return $this; + } + + /** + * Optional. Used to add shadow offsetX + * + * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getShadowOffsetX() + { + return $this->shadow_offset_x; + } + + /** + * Optional. Used to add shadow offsetX + * + * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setShadowOffsetX($var) + { + GPBUtil::checkInt32($var); + $this->shadow_offset_x = $var; + + return $this; + } + + /** + * Optional. Used to add shadow offsetY + * + * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getShadowOffsetY() + { + return $this->shadow_offset_y; + } + + /** + * Optional. Used to add shadow offsetY + * + * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setShadowOffsetY($var) + { + GPBUtil::checkInt32($var); + $this->shadow_offset_y = $var; + + return $this; + } + + /** + * Optional. Used to add opacity + * + * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOpacity() + { + return $this->opacity; + } + + /** + * Optional. Used to add opacity + * + * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOpacity($var) + { + GPBUtil::checkInt32($var); + $this->opacity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php new file mode 100644 index 000000000000..f9521afdffd3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor + */ +class ChartSliceColor extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Key for the slice + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key = ''; + /** + * Optional. Value for the slice + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Optional. Key for the slice + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues $value + * Optional. Value for the slice + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Key for the slice + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Optional. Key for the slice + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Optional. Value for the slice + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Optional. Value for the slice + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php new file mode 100644 index 000000000000..4cd0d0cc8d35 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel + */ +class DataLabel extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to show data label. + * + * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $show + * Optional. Whether to show data label. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to show data label. + * + * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShow() + { + return $this->show; + } + + /** + * Optional. Whether to show data label. + * + * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShow($var) + { + GPBUtil::checkBool($var); + $this->show = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php new file mode 100644 index 000000000000..e34150f8b5a2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php @@ -0,0 +1,161 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode + */ +class Encode extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string x = 1; + */ + protected $x = ''; + /** + * Generated from protobuf field string y = 2; + */ + protected $y = ''; + /** + * For some type of series that are not in any coordinate system, like + * 'pie' + * + * Generated from protobuf field string value = 3; + */ + protected $value = ''; + /** + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * + * Generated from protobuf field string item_name = 4; + */ + protected $item_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $x + * @type string $y + * @type string $value + * For some type of series that are not in any coordinate system, like + * 'pie' + * @type string $item_name + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string x = 1; + * @return string + */ + public function getX() + { + return $this->x; + } + + /** + * Generated from protobuf field string x = 1; + * @param string $var + * @return $this + */ + public function setX($var) + { + GPBUtil::checkString($var, True); + $this->x = $var; + + return $this; + } + + /** + * Generated from protobuf field string y = 2; + * @return string + */ + public function getY() + { + return $this->y; + } + + /** + * Generated from protobuf field string y = 2; + * @param string $var + * @return $this + */ + public function setY($var) + { + GPBUtil::checkString($var, True); + $this->y = $var; + + return $this; + } + + /** + * For some type of series that are not in any coordinate system, like + * 'pie' + * + * Generated from protobuf field string value = 3; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * For some type of series that are not in any coordinate system, like + * 'pie' + * + * Generated from protobuf field string value = 3; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * + * Generated from protobuf field string item_name = 4; + * @return string + */ + public function getItemName() + { + return $this->item_name; + } + + /** + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * + * Generated from protobuf field string item_name = 4; + * @param string $var + * @return $this + */ + public function setItemName($var) + { + GPBUtil::checkString($var, True); + $this->item_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php new file mode 100644 index 000000000000..e9d01426c93c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php @@ -0,0 +1,155 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig + */ +class GaugeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Base value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $base_value = null; + /** + * Optional. Limit value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $limit_value = null; + /** + * Optional. Threshold values for gauge chart + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $threshold_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $base_value + * Optional. Base value for gauge chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $limit_value + * Optional. Limit value for gauge chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue[] $threshold_values + * Optional. Threshold values for gauge chart + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Base value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue|null + */ + public function getBaseValue() + { + return $this->base_value; + } + + public function hasBaseValue() + { + return isset($this->base_value); + } + + public function clearBaseValue() + { + unset($this->base_value); + } + + /** + * Optional. Base value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $var + * @return $this + */ + public function setBaseValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); + $this->base_value = $var; + + return $this; + } + + /** + * Optional. Limit value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue|null + */ + public function getLimitValue() + { + return $this->limit_value; + } + + public function hasLimitValue() + { + return isset($this->limit_value); + } + + public function clearLimitValue() + { + unset($this->limit_value); + } + + /** + * Optional. Limit value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $var + * @return $this + */ + public function setLimitValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); + $this->limit_value = $var; + + return $this; + } + + /** + * Optional. Threshold values for gauge chart + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue> + */ + public function getThresholdValues() + { + return $this->threshold_values; + } + + /** + * Optional. Threshold values for gauge chart + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue[] $var + * @return $this + */ + public function setThresholdValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); + $this->threshold_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php new file mode 100644 index 000000000000..631073acba0f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue + */ +class GaugeValue extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Value for gauge chart + * + * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = 0; + /** + * Optional. Color for gauge chart + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $value + * Optional. Value for gauge chart + * @type string $color + * Optional. Color for gauge chart + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Value for gauge chart + * + * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getValue() + { + return $this->value; + } + + /** + * Optional. Value for gauge chart + * + * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkInt32($var); + $this->value = $var; + + return $this; + } + + /** + * Optional. Color for gauge chart + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Color for gauge chart + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php new file mode 100644 index 000000000000..941eaeef6b74 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors + */ +class ItemColors extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Slice colors array + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $colors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor[] $colors + * Optional. Slice colors array + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Slice colors array + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor> + */ + public function getColors() + { + return $this->colors; + } + + /** + * Optional. Slice colors array + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor[] $var + * @return $this + */ + public function setColors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor::class); + $this->colors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php new file mode 100644 index 000000000000..e4b5e356b169 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle + */ +class ItemStyle extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Used to add border width + * + * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $border_width = 0; + /** + * Optional. Used to add border color + * + * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $border_color = ''; + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $border_width + * Optional. Used to add border width + * @type string $border_color + * Optional. Used to add border color + * @type string $color + * Optional. Used to add color + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Used to add border width + * + * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getBorderWidth() + { + return $this->border_width; + } + + /** + * Optional. Used to add border width + * + * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setBorderWidth($var) + { + GPBUtil::checkInt32($var); + $this->border_width = $var; + + return $this; + } + + /** + * Optional. Used to add border color + * + * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBorderColor() + { + return $this->border_color; + } + + /** + * Optional. Used to add border color + * + * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBorderColor($var) + { + GPBUtil::checkString($var, True); + $this->border_color = $var; + + return $this; + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php new file mode 100644 index 000000000000..648f41614333 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php @@ -0,0 +1,177 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig + */ +class MetricTrendConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Metric chart configuration to display metric trend + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_format = 0; + /** + * Optional. Metric chart configuration to toggle the trend value + * display + * + * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_metric_trend = false; + /** + * Optional. Metric chart configuration to display the trend value + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_display_trend = 0; + /** + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_trend_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $metric_format + * Optional. Metric chart configuration to display metric trend + * @type bool $show_metric_trend + * Optional. Metric chart configuration to toggle the trend value + * display + * @type int $metric_display_trend + * Optional. Metric chart configuration to display the trend value + * @type int $metric_trend_type + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Metric chart configuration to display metric trend + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricFormat() + { + return $this->metric_format; + } + + /** + * Optional. Metric chart configuration to display metric trend + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricFormat::class); + $this->metric_format = $var; + + return $this; + } + + /** + * Optional. Metric chart configuration to toggle the trend value + * display + * + * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowMetricTrend() + { + return $this->show_metric_trend; + } + + /** + * Optional. Metric chart configuration to toggle the trend value + * display + * + * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowMetricTrend($var) + { + GPBUtil::checkBool($var); + $this->show_metric_trend = $var; + + return $this; + } + + /** + * Optional. Metric chart configuration to display the trend value + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricDisplayTrend() + { + return $this->metric_display_trend; + } + + /** + * Optional. Metric chart configuration to display the trend value + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricDisplayTrend($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricDisplayTrend::class); + $this->metric_display_trend = $var; + + return $this; + } + + /** + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricTrendType() + { + return $this->metric_trend_type; + } + + /** + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricTrendType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricTrendType::class); + $this->metric_trend_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php new file mode 100644 index 000000000000..551b8f138b6e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues + */ +class UserSelectedValues extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. User specified color of a pie slice + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Optional. User specified label for a pie slice + * + * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $color + * Optional. User specified color of a pie slice + * @type string $label + * Optional. User specified label for a pie slice + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. User specified color of a pie slice + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. User specified color of a pie slice + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Optional. User specified label for a pie slice + * + * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Optional. User specified label for a pie slice + * + * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php new file mode 100644 index 000000000000..9b0049bc04e4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig + */ +class TableConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to show the table. + * + * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_text_wrap = false; + /** + * Optional. Column render type settings. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $column_render_type_settings; + /** + * Optional. Settings for tooltip for column header and cell. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $column_tooltip_settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_text_wrap + * Optional. Whether to show the table. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings[] $column_render_type_settings + * Optional. Column render type settings. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings[] $column_tooltip_settings + * Optional. Settings for tooltip for column header and cell. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to show the table. + * + * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableTextWrap() + { + return $this->enable_text_wrap; + } + + /** + * Optional. Whether to show the table. + * + * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableTextWrap($var) + { + GPBUtil::checkBool($var); + $this->enable_text_wrap = $var; + + return $this; + } + + /** + * Optional. Column render type settings. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings> + */ + public function getColumnRenderTypeSettings() + { + return $this->column_render_type_settings; + } + + /** + * Optional. Column render type settings. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings[] $var + * @return $this + */ + public function setColumnRenderTypeSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings::class); + $this->column_render_type_settings = $arr; + + return $this; + } + + /** + * Optional. Settings for tooltip for column header and cell. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings> + */ + public function getColumnTooltipSettings() + { + return $this->column_tooltip_settings; + } + + /** + * Optional. Settings for tooltip for column header and cell. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings[] $var + * @return $this + */ + public function setColumnTooltipSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings::class); + $this->column_tooltip_settings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php new file mode 100644 index 000000000000..cf2d0750d0bc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php @@ -0,0 +1,85 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip + */ +class Tooltip extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bool show = 1; + */ + protected $show = false; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; + */ + protected $tooltip_trigger = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $show + * @type int $tooltip_trigger + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool show = 1; + * @return bool + */ + public function getShow() + { + return $this->show; + } + + /** + * Generated from protobuf field bool show = 1; + * @param bool $var + * @return $this + */ + public function setShow($var) + { + GPBUtil::checkBool($var); + $this->show = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; + * @return int + */ + public function getTooltipTrigger() + { + return $this->tooltip_trigger; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; + * @param int $var + * @return $this + */ + public function setTooltipTrigger($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ToolTipTrigger::class); + $this->tooltip_trigger = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php new file mode 100644 index 000000000000..4fbfc4b3b88c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php @@ -0,0 +1,106 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap + */ +class VisualMap extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * + * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $visual_map_type = 0; + /** + * Optional. Pieces of the visual map. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $pieces; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $visual_map_type + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece[] $pieces + * Optional. Pieces of the visual map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * + * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getVisualMapType() + { + return $this->visual_map_type; + } + + /** + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * + * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setVisualMapType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\VisualMapType::class); + $this->visual_map_type = $var; + + return $this; + } + + /** + * Optional. Pieces of the visual map. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece> + */ + public function getPieces() + { + return $this->pieces; + } + + /** + * Optional. Pieces of the visual map. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece[] $var + * @return $this + */ + public function setPieces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece::class); + $this->pieces = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php new file mode 100644 index 000000000000..827bebc3d790 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php @@ -0,0 +1,194 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece + */ +class VisualMapPiece extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min = null; + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max = null; + /** + * Optional. Color to render the piece in when the value is between min + * and max. + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Optional. Label used in visual map controller. + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $min + * Optional. Minimum value for the piece. + * @type int|string $max + * Optional. Minimum value for the piece. + * @type string $color + * Optional. Color to render the piece in when the value is between min + * and max. + * @type string $label + * Optional. Label used in visual map controller. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMin() + { + return isset($this->min) ? $this->min : 0; + } + + public function hasMin() + { + return isset($this->min); + } + + public function clearMin() + { + unset($this->min); + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkInt64($var); + $this->min = $var; + + return $this; + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMax() + { + return isset($this->max) ? $this->max : 0; + } + + public function hasMax() + { + return isset($this->max); + } + + public function clearMax() + { + unset($this->max); + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkInt64($var); + $this->max = $var; + + return $this; + } + + /** + * Optional. Color to render the piece in when the value is between min + * and max. + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Color to render the piece in when the value is between min + * and max. + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Optional. Label used in visual map controller. + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Optional. Label used in visual map controller. + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php new file mode 100644 index 000000000000..30d2d7f300c0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php @@ -0,0 +1,136 @@ +google.cloud.chronicle.v1.DashboardDefinition + */ +class DashboardDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * Filters for the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; + */ + private $filters; + /** + * Fingerprint of the dashboard definition. + * + * Generated from protobuf field string fingerprint = 2; + */ + protected $fingerprint = ''; + /** + * Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; + */ + private $charts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardFilter[] $filters + * Filters for the dashboard. + * @type string $fingerprint + * Fingerprint of the dashboard definition. + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig[] $charts + * Charts in the dashboard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Filters for the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Filters for the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; + * @param \Google\Cloud\Chronicle\V1\DashboardFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardFilter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Fingerprint of the dashboard definition. + * + * Generated from protobuf field string fingerprint = 2; + * @return string + */ + public function getFingerprint() + { + return $this->fingerprint; + } + + /** + * Fingerprint of the dashboard definition. + * + * Generated from protobuf field string fingerprint = 2; + * @param string $var + * @return $this + */ + public function setFingerprint($var) + { + GPBUtil::checkString($var, True); + $this->fingerprint = $var; + + return $this; + } + + /** + * Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig> + */ + public function getCharts() + { + return $this->charts; + } + + /** + * Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig[] $var + * @return $this + */ + public function setCharts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig::class); + $this->charts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php new file mode 100644 index 000000000000..6355197f9691 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php @@ -0,0 +1,131 @@ +google.cloud.chronicle.v1.DashboardDefinition.ChartConfig + */ +class ChartConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; + */ + protected $chart_layout = null; + /** + * Dashboard filters applied to the chart. + * + * Generated from protobuf field repeated string filters_ids = 4; + */ + private $filters_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard_chart + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $chart_layout + * @type string[] $filters_ids + * Dashboard filters applied to the chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout|null + */ + public function getChartLayout() + { + return $this->chart_layout; + } + + public function hasChartLayout() + { + return isset($this->chart_layout); + } + + public function clearChartLayout() + { + unset($this->chart_layout); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $var + * @return $this + */ + public function setChartLayout($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout::class); + $this->chart_layout = $var; + + return $this; + } + + /** + * Dashboard filters applied to the chart. + * + * Generated from protobuf field repeated string filters_ids = 4; + * @return RepeatedField + */ + public function getFiltersIds() + { + return $this->filters_ids; + } + + /** + * Dashboard filters applied to the chart. + * + * Generated from protobuf field repeated string filters_ids = 4; + * @param string[] $var + * @return $this + */ + public function setFiltersIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->filters_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php new file mode 100644 index 000000000000..09b82904ab91 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php @@ -0,0 +1,161 @@ +google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + */ +class ChartLayout extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field optional int32 start_x = 9; + */ + protected $start_x = null; + /** + * Generated from protobuf field int32 span_x = 10; + */ + protected $span_x = 0; + /** + * Generated from protobuf field optional int32 start_y = 11; + */ + protected $start_y = null; + /** + * Generated from protobuf field int32 span_y = 12; + */ + protected $span_y = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $start_x + * @type int $span_x + * @type int $start_y + * @type int $span_y + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field optional int32 start_x = 9; + * @return int + */ + public function getStartX() + { + return isset($this->start_x) ? $this->start_x : 0; + } + + public function hasStartX() + { + return isset($this->start_x); + } + + public function clearStartX() + { + unset($this->start_x); + } + + /** + * Generated from protobuf field optional int32 start_x = 9; + * @param int $var + * @return $this + */ + public function setStartX($var) + { + GPBUtil::checkInt32($var); + $this->start_x = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 span_x = 10; + * @return int + */ + public function getSpanX() + { + return $this->span_x; + } + + /** + * Generated from protobuf field int32 span_x = 10; + * @param int $var + * @return $this + */ + public function setSpanX($var) + { + GPBUtil::checkInt32($var); + $this->span_x = $var; + + return $this; + } + + /** + * Generated from protobuf field optional int32 start_y = 11; + * @return int + */ + public function getStartY() + { + return isset($this->start_y) ? $this->start_y : 0; + } + + public function hasStartY() + { + return isset($this->start_y); + } + + public function clearStartY() + { + unset($this->start_y); + } + + /** + * Generated from protobuf field optional int32 start_y = 11; + * @param int $var + * @return $this + */ + public function setStartY($var) + { + GPBUtil::checkInt32($var); + $this->start_y = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 span_y = 12; + * @return int + */ + public function getSpanY() + { + return $this->span_y; + } + + /** + * Generated from protobuf field int32 span_y = 12; + * @param int $var + * @return $this + */ + public function setSpanY($var) + { + GPBUtil::checkInt32($var); + $this->span_y = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php new file mode 100644 index 000000000000..79c685090fec --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php @@ -0,0 +1,410 @@ +google.cloud.chronicle.v1.DashboardFilter + */ +class DashboardFilter extends \Google\Protobuf\Internal\Message +{ + /** + * ID of the filter. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Datasource the filter is applicable for. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; + */ + protected $data_source = 0; + /** + * Filter field path. + * + * Generated from protobuf field string field_path = 3; + */ + protected $field_path = ''; + /** + * Operator and values. Can include multiple modifiers. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; + */ + private $filter_operator_and_field_values; + /** + * Display name of the filter. + * + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * Chart IDs the filter is applicable for. + * + * Generated from protobuf field repeated string chart_ids = 6; + */ + private $chart_ids; + /** + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * + * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_standard_time_range_filter = false; + /** + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * + * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_mandatory = false; + /** + * Optional. Whether this standard time range filter is enabled. + * + * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_standard_time_range_filter_enabled = null; + /** + * Optional. Advanced filter configuration for the filter widget. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $advanced_filter_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * ID of the filter. + * @type int $data_source + * Datasource the filter is applicable for. + * @type string $field_path + * Filter field path. + * @type \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $filter_operator_and_field_values + * Operator and values. Can include multiple modifiers. + * @type string $display_name + * Display name of the filter. + * @type string[] $chart_ids + * Chart IDs the filter is applicable for. + * @type bool $is_standard_time_range_filter + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * @type bool $is_mandatory + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * @type bool $is_standard_time_range_filter_enabled + * Optional. Whether this standard time range filter is enabled. + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig $advanced_filter_config + * Optional. Advanced filter configuration for the filter widget. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * ID of the filter. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * ID of the filter. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Datasource the filter is applicable for. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; + * @return int + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * Datasource the filter is applicable for. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; + * @param int $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_source = $var; + + return $this; + } + + /** + * Filter field path. + * + * Generated from protobuf field string field_path = 3; + * @return string + */ + public function getFieldPath() + { + return $this->field_path; + } + + /** + * Filter field path. + * + * Generated from protobuf field string field_path = 3; + * @param string $var + * @return $this + */ + public function setFieldPath($var) + { + GPBUtil::checkString($var, True); + $this->field_path = $var; + + return $this; + } + + /** + * Operator and values. Can include multiple modifiers. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\FilterOperatorAndValues> + */ + public function getFilterOperatorAndFieldValues() + { + return $this->filter_operator_and_field_values; + } + + /** + * Operator and values. Can include multiple modifiers. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; + * @param \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $var + * @return $this + */ + public function setFilterOperatorAndFieldValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FilterOperatorAndValues::class); + $this->filter_operator_and_field_values = $arr; + + return $this; + } + + /** + * Display name of the filter. + * + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the filter. + * + * Generated from protobuf field string display_name = 5; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Chart IDs the filter is applicable for. + * + * Generated from protobuf field repeated string chart_ids = 6; + * @return RepeatedField + */ + public function getChartIds() + { + return $this->chart_ids; + } + + /** + * Chart IDs the filter is applicable for. + * + * Generated from protobuf field repeated string chart_ids = 6; + * @param string[] $var + * @return $this + */ + public function setChartIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->chart_ids = $arr; + + return $this; + } + + /** + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * + * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsStandardTimeRangeFilter() + { + return $this->is_standard_time_range_filter; + } + + /** + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * + * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsStandardTimeRangeFilter($var) + { + GPBUtil::checkBool($var); + $this->is_standard_time_range_filter = $var; + + return $this; + } + + /** + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * + * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsMandatory() + { + return $this->is_mandatory; + } + + /** + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * + * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsMandatory($var) + { + GPBUtil::checkBool($var); + $this->is_mandatory = $var; + + return $this; + } + + /** + * Optional. Whether this standard time range filter is enabled. + * + * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsStandardTimeRangeFilterEnabled() + { + return isset($this->is_standard_time_range_filter_enabled) ? $this->is_standard_time_range_filter_enabled : false; + } + + public function hasIsStandardTimeRangeFilterEnabled() + { + return isset($this->is_standard_time_range_filter_enabled); + } + + public function clearIsStandardTimeRangeFilterEnabled() + { + unset($this->is_standard_time_range_filter_enabled); + } + + /** + * Optional. Whether this standard time range filter is enabled. + * + * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsStandardTimeRangeFilterEnabled($var) + { + GPBUtil::checkBool($var); + $this->is_standard_time_range_filter_enabled = $var; + + return $this; + } + + /** + * Optional. Advanced filter configuration for the filter widget. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig|null + */ + public function getAdvancedFilterConfig() + { + return $this->advanced_filter_config; + } + + public function hasAdvancedFilterConfig() + { + return isset($this->advanced_filter_config); + } + + public function clearAdvancedFilterConfig() + { + unset($this->advanced_filter_config); + } + + /** + * Optional. Advanced filter configuration for the filter widget. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig $var + * @return $this + */ + public function setAdvancedFilterConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig::class); + $this->advanced_filter_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php new file mode 100644 index 000000000000..72d8951c72d9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php @@ -0,0 +1,221 @@ +google.cloud.chronicle.v1.DashboardQuery + */ +class DashboardQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the dashboardQuery. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Search query string. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Required. Inputs to the query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $input = null; + /** + * Output only. DashboardChart this query belongs to. + * + * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the dashboardQuery. + * @type string $query + * Required. Search query string. + * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input $input + * Required. Inputs to the query. + * @type string $dashboard_chart + * Output only. DashboardChart this query belongs to. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the dashboardQuery. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the dashboardQuery. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Search query string. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. Search query string. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Required. Inputs to the query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input|null + */ + public function getInput() + { + return $this->input; + } + + public function hasInput() + { + return isset($this->input); + } + + public function clearInput() + { + unset($this->input); + } + + /** + * Required. Inputs to the query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input $var + * @return $this + */ + public function setInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input::class); + $this->input = $var; + + return $this; + } + + /** + * Output only. DashboardChart this query belongs to. + * + * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Output only. DashboardChart this query belongs to. + * + * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php new file mode 100644 index 000000000000..0d33588d5bed --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php @@ -0,0 +1,108 @@ +google.cloud.chronicle.v1.DashboardQuery.Input + */ +class Input extends \Google\Protobuf\Internal\Message +{ + protected $time_input; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Interval $time_window + * time range to fetch the data for. + * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime $relative_time + * time range for last x units. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * time range to fetch the data for. + * + * Generated from protobuf field .google.type.Interval time_window = 1; + * @return \Google\Type\Interval|null + */ + public function getTimeWindow() + { + return $this->readOneof(1); + } + + public function hasTimeWindow() + { + return $this->hasOneof(1); + } + + /** + * time range to fetch the data for. + * + * Generated from protobuf field .google.type.Interval time_window = 1; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setTimeWindow($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * time range for last x units. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime relative_time = 3; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime|null + */ + public function getRelativeTime() + { + return $this->readOneof(3); + } + + public function hasRelativeTime() + { + return $this->hasOneof(3); + } + + /** + * time range for last x units. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime relative_time = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime $var + * @return $this + */ + public function setRelativeTime($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getTimeInput() + { + return $this->whichOneof("time_input"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php new file mode 100644 index 000000000000..594b70b0840f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php @@ -0,0 +1,87 @@ +google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime + */ +class RelativeTime extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_unit = 0; + /** + * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $start_time_val = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $time_unit + * @type int|string $start_time_val + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getTimeUnit() + { + return $this->time_unit; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setTimeUnit($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\TimeUnit::class); + $this->time_unit = $var; + + return $this; + } + + /** + * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getStartTimeVal() + { + return $this->start_time_val; + } + + /** + * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setStartTimeVal($var) + { + GPBUtil::checkInt64($var); + $this->start_time_val = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php new file mode 100644 index 000000000000..e20f164a073c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php @@ -0,0 +1,86 @@ +google.cloud.chronicle.v1.DashboardType + */ +class DashboardType +{ + /** + * Default unspecified. + * + * Generated from protobuf enum DASHBOARD_TYPE_UNSPECIFIED = 0; + */ + const DASHBOARD_TYPE_UNSPECIFIED = 0; + /** + * Out of the box curated dashboards provided by Chronicle. + * + * Generated from protobuf enum CURATED = 1; + */ + const CURATED = 1; + /** + * Private dashboards created by users/customers. + * + * Generated from protobuf enum PRIVATE = 2; + */ + const PBPRIVATE = 2; + /** + * Public dashboards created by users/customers. + * + * Generated from protobuf enum PUBLIC = 3; + */ + const PBPUBLIC = 3; + /** + * Custom dashboards + * + * Generated from protobuf enum CUSTOM = 4; + */ + const CUSTOM = 4; + /** + * Marketplace dashboards + * + * Generated from protobuf enum MARKETPLACE = 5; + */ + const MARKETPLACE = 5; + + private static $valueToName = [ + self::DASHBOARD_TYPE_UNSPECIFIED => 'DASHBOARD_TYPE_UNSPECIFIED', + self::CURATED => 'CURATED', + self::PBPRIVATE => 'PRIVATE', + self::PBPUBLIC => 'PUBLIC', + self::CUSTOM => 'CUSTOM', + self::MARKETPLACE => 'MARKETPLACE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php new file mode 100644 index 000000000000..5ce9afb7d058 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.DashboardUserData + */ +class DashboardUserData extends \Google\Protobuf\Internal\Message +{ + /** + * time when this dashboard is last viewed + * + * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; + */ + protected $last_viewed_time = null; + /** + * is dashboard pinned by user + * + * Generated from protobuf field bool is_pinned = 2; + */ + protected $is_pinned = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $last_viewed_time + * time when this dashboard is last viewed + * @type bool $is_pinned + * is dashboard pinned by user + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * time when this dashboard is last viewed + * + * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastViewedTime() + { + return $this->last_viewed_time; + } + + public function hasLastViewedTime() + { + return isset($this->last_viewed_time); + } + + public function clearLastViewedTime() + { + unset($this->last_viewed_time); + } + + /** + * time when this dashboard is last viewed + * + * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastViewedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_viewed_time = $var; + + return $this; + } + + /** + * is dashboard pinned by user + * + * Generated from protobuf field bool is_pinned = 2; + * @return bool + */ + public function getIsPinned() + { + return $this->is_pinned; + } + + /** + * is dashboard pinned by user + * + * Generated from protobuf field bool is_pinned = 2; + * @param bool $var + * @return $this + */ + public function setIsPinned($var) + { + GPBUtil::checkBool($var); + $this->is_pinned = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php new file mode 100644 index 000000000000..9eb65ff6b99b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php @@ -0,0 +1,337 @@ +google.cloud.chronicle.v1.DataAccessLabel + */ +class DataAccessLabel extends \Google\Protobuf\Internal\Message +{ + /** + * The unique resource name of the data access label. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. The short name displayed for the label as it appears on event + * data. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The time at which the data access label was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the data access label was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The user who created the data access label. + * + * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. The user who last updated the data access label. + * + * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_editor = ''; + /** + * Optional. A description of the data access label for a human reader. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + protected $definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $udm_query + * A UDM query over event data. + * @type string $name + * The unique resource name of the data access label. + * @type string $display_name + * Output only. The short name displayed for the label as it appears on event + * data. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the data access label was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the data access label was last updated. + * @type string $author + * Output only. The user who created the data access label. + * @type string $last_editor + * Output only. The user who last updated the data access label. + * @type string $description + * Optional. A description of the data access label for a human reader. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * A UDM query over event data. + * + * Generated from protobuf field string udm_query = 3; + * @return string + */ + public function getUdmQuery() + { + return $this->readOneof(3); + } + + public function hasUdmQuery() + { + return $this->hasOneof(3); + } + + /** + * A UDM query over event data. + * + * Generated from protobuf field string udm_query = 3; + * @param string $var + * @return $this + */ + public function setUdmQuery($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The unique resource name of the data access label. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique resource name of the data access label. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The short name displayed for the label as it appears on event + * data. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The short name displayed for the label as it appears on event + * data. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The time at which the data access label was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time at which the data access label was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time at which the data access label was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time at which the data access label was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The user who created the data access label. + * + * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. The user who created the data access label. + * + * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. The user who last updated the data access label. + * + * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLastEditor() + { + return $this->last_editor; + } + + /** + * Output only. The user who last updated the data access label. + * + * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLastEditor($var) + { + GPBUtil::checkString($var, True); + $this->last_editor = $var; + + return $this; + } + + /** + * Optional. A description of the data access label for a human reader. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A description of the data access label for a human reader. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * @return string + */ + public function getDefinition() + { + return $this->whichOneof("definition"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php new file mode 100644 index 000000000000..9f32f7c3f294 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php @@ -0,0 +1,227 @@ +google.cloud.chronicle.v1.DataAccessLabelReference + */ +class DataAccessLabelReference extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + protected $label; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $data_access_label + * The name of the data access label. + * @type string $log_type + * The name of the log type. + * @type string $asset_namespace + * The asset namespace configured in the forwarder + * of the customer's events. + * @type \Google\Cloud\Chronicle\V1\IngestionLabel $ingestion_label + * The ingestion label configured in the forwarder of the customer's events. + * @type string $display_name + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * The name of the data access label. + * + * Generated from protobuf field string data_access_label = 1; + * @return string + */ + public function getDataAccessLabel() + { + return $this->readOneof(1); + } + + public function hasDataAccessLabel() + { + return $this->hasOneof(1); + } + + /** + * The name of the data access label. + * + * Generated from protobuf field string data_access_label = 1; + * @param string $var + * @return $this + */ + public function setDataAccessLabel($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The name of the log type. + * + * Generated from protobuf field string log_type = 2; + * @return string + */ + public function getLogType() + { + return $this->readOneof(2); + } + + public function hasLogType() + { + return $this->hasOneof(2); + } + + /** + * The name of the log type. + * + * Generated from protobuf field string log_type = 2; + * @param string $var + * @return $this + */ + public function setLogType($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The asset namespace configured in the forwarder + * of the customer's events. + * + * Generated from protobuf field string asset_namespace = 3; + * @return string + */ + public function getAssetNamespace() + { + return $this->readOneof(3); + } + + public function hasAssetNamespace() + { + return $this->hasOneof(3); + } + + /** + * The asset namespace configured in the forwarder + * of the customer's events. + * + * Generated from protobuf field string asset_namespace = 3; + * @param string $var + * @return $this + */ + public function setAssetNamespace($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The ingestion label configured in the forwarder of the customer's events. + * + * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; + * @return \Google\Cloud\Chronicle\V1\IngestionLabel|null + */ + public function getIngestionLabel() + { + return $this->readOneof(4); + } + + public function hasIngestionLabel() + { + return $this->hasOneof(4); + } + + /** + * The ingestion label configured in the forwarder of the customer's events. + * + * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; + * @param \Google\Cloud\Chronicle\V1\IngestionLabel $var + * @return $this + */ + public function setIngestionLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\IngestionLabel::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getLabel() + { + return $this->whichOneof("label"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php new file mode 100644 index 000000000000..687d809ead24 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php @@ -0,0 +1,470 @@ +google.cloud.chronicle.v1.DataAccessScope + */ +class DataAccessScope extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $allowed_data_access_labels; + /** + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $denied_data_access_labels; + /** + * Output only. The name to be used for display to customers of the data + * access scope. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The time at which the data access scope was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the data access scope was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The user who created the data access scope. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. The user who last updated the data access scope. + * + * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_editor = ''; + /** + * Optional. A description of the data access scope for a human reader. + * + * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * + * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_all = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $allowed_data_access_labels + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $denied_data_access_labels + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * @type string $display_name + * Output only. The name to be used for display to customers of the data + * access scope. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the data access scope was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the data access scope was last updated. + * @type string $author + * Output only. The user who created the data access scope. + * @type string $last_editor + * Output only. The user who last updated the data access scope. + * @type string $description + * Optional. A description of the data access scope for a human reader. + * @type bool $allow_all + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> + */ + public function getAllowedDataAccessLabels() + { + return $this->allowed_data_access_labels; + } + + /** + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var + * @return $this + */ + public function setAllowedDataAccessLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); + $this->allowed_data_access_labels = $arr; + + return $this; + } + + /** + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> + */ + public function getDeniedDataAccessLabels() + { + return $this->denied_data_access_labels; + } + + /** + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var + * @return $this + */ + public function setDeniedDataAccessLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); + $this->denied_data_access_labels = $arr; + + return $this; + } + + /** + * Output only. The name to be used for display to customers of the data + * access scope. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The name to be used for display to customers of the data + * access scope. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The time at which the data access scope was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time at which the data access scope was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time at which the data access scope was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time at which the data access scope was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The user who created the data access scope. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. The user who created the data access scope. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. The user who last updated the data access scope. + * + * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLastEditor() + { + return $this->last_editor; + } + + /** + * Output only. The user who last updated the data access scope. + * + * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLastEditor($var) + { + GPBUtil::checkString($var, True); + $this->last_editor = $var; + + return $this; + } + + /** + * Optional. A description of the data access scope for a human reader. + * + * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A description of the data access scope for a human reader. + * + * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * + * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowAll() + { + return $this->allow_all; + } + + /** + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * + * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowAll($var) + { + GPBUtil::checkBool($var); + $this->allow_all = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php new file mode 100644 index 000000000000..afe99eb7727d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php @@ -0,0 +1,143 @@ +google.cloud.chronicle.v1.DataSource + */ +class DataSource +{ + /** + * Generated from protobuf enum DATA_SOURCE_UNSPECIFIED = 0; + */ + const DATA_SOURCE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum UDM = 1; + */ + const UDM = 1; + /** + * Generated from protobuf enum ENTITY = 2; + */ + const ENTITY = 2; + /** + * Generated from protobuf enum INGESTION_METRICS = 3; + */ + const INGESTION_METRICS = 3; + /** + * RULE_DETECTIONS is used for detections datasource. + * + * Generated from protobuf enum RULE_DETECTIONS = 4; + */ + const RULE_DETECTIONS = 4; + /** + * RULESETS is used for ruleset with detections datasource. + * + * Generated from protobuf enum RULESETS = 5; + */ + const RULESETS = 5; + /** + * GLOBAL is used for standard time range filter. + * + * Generated from protobuf enum GLOBAL = 6; + */ + const PBGLOBAL = 6; + /** + * IOC_MATCHES is used for ioc_matches datasource. + * + * Generated from protobuf enum IOC_MATCHES = 7; + */ + const IOC_MATCHES = 7; + /** + * RULES is used for rules datasource. + * + * Generated from protobuf enum RULES = 8; + */ + const RULES = 8; + /** + * SOAR Cases - identified as `case`. + * + * Generated from protobuf enum SOAR_CASES = 9; + */ + const SOAR_CASES = 9; + /** + * SOAR Playbooks - identified as `playbook`. + * + * Generated from protobuf enum SOAR_PLAYBOOKS = 10; + */ + const SOAR_PLAYBOOKS = 10; + /** + * SOAR Case History - identified as `case_history`. + * + * Generated from protobuf enum SOAR_CASE_HISTORY = 11; + */ + const SOAR_CASE_HISTORY = 11; + /** + * DATA_TABLE is used for data tables source. + * + * Generated from protobuf enum DATA_TABLE = 12; + */ + const DATA_TABLE = 12; + /** + * INVESTIGATION is used as the data source for triage agent investigations. + * Identified as `gemini_investigation`. + * + * Generated from protobuf enum INVESTIGATION = 13; + */ + const INVESTIGATION = 13; + /** + * INVESTIGATION_FEEDBACK is used as the data source for user feedback on + * triage agent investigations. Identified as `gemini_investigation_feedback`. + * + * Generated from protobuf enum INVESTIGATION_FEEDBACK = 14; + */ + const INVESTIGATION_FEEDBACK = 14; + + private static $valueToName = [ + self::DATA_SOURCE_UNSPECIFIED => 'DATA_SOURCE_UNSPECIFIED', + self::UDM => 'UDM', + self::ENTITY => 'ENTITY', + self::INGESTION_METRICS => 'INGESTION_METRICS', + self::RULE_DETECTIONS => 'RULE_DETECTIONS', + self::RULESETS => 'RULESETS', + self::PBGLOBAL => 'GLOBAL', + self::IOC_MATCHES => 'IOC_MATCHES', + self::RULES => 'RULES', + self::SOAR_CASES => 'SOAR_CASES', + self::SOAR_PLAYBOOKS => 'SOAR_PLAYBOOKS', + self::SOAR_CASE_HISTORY => 'SOAR_CASE_HISTORY', + self::DATA_TABLE => 'DATA_TABLE', + self::INVESTIGATION => 'INVESTIGATION', + self::INVESTIGATION_FEEDBACK => 'INVESTIGATION_FEEDBACK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php new file mode 100644 index 000000000000..f2024c29a822 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php @@ -0,0 +1,585 @@ +google.cloud.chronicle.v1.DataTable + */ +class DataTable extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The unique display name of the data table. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Required. A user-provided description of the data table. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = ''; + /** + * Output only. Table create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Table update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Immutable. Details of all the columns in the table + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $column_info; + /** + * Output only. Data table unique id + * + * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_table_uuid = ''; + /** + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * + * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $rules; + /** + * Output only. The count of rules using the data table. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_associations_count = 0; + /** + * Optional. User-provided TTL of the data table. + * + * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $row_time_to_live = ''; + /** + * Output only. The count of rows in the data table. + * + * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approximate_row_count = 0; + /** + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $scope_info = null; + /** + * Output only. Source of the data table update. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_source = 0; + /** + * Output only. Last update time of the TTL of the data table. + * + * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $row_time_to_live_update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * @type string $display_name + * Output only. The unique display name of the data table. + * @type string $description + * Required. A user-provided description of the data table. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Table create time + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Table update time + * @type \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $column_info + * Immutable. Details of all the columns in the table + * @type string $data_table_uuid + * Output only. Data table unique id + * @type string[] $rules + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * @type int $rule_associations_count + * Output only. The count of rules using the data table. + * @type string $row_time_to_live + * Optional. User-provided TTL of the data table. + * @type int|string $approximate_row_count + * Output only. The count of rows in the data table. + * @type \Google\Cloud\Chronicle\V1\DataTableScopeInfo $scope_info + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * @type int $update_source + * Output only. Source of the data table update. + * @type \Google\Protobuf\Timestamp $row_time_to_live_update_time + * Output only. Last update time of the TTL of the data table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The unique display name of the data table. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The unique display name of the data table. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. A user-provided description of the data table. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Required. A user-provided description of the data table. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Table create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Table create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Table update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Table update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Immutable. Details of all the columns in the table + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableColumnInfo> + */ + public function getColumnInfo() + { + return $this->column_info; + } + + /** + * Immutable. Details of all the columns in the table + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $var + * @return $this + */ + public function setColumnInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableColumnInfo::class); + $this->column_info = $arr; + + return $this; + } + + /** + * Output only. Data table unique id + * + * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDataTableUuid() + { + return $this->data_table_uuid; + } + + /** + * Output only. Data table unique id + * + * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDataTableUuid($var) + { + GPBUtil::checkString($var, True); + $this->data_table_uuid = $var; + + return $this; + } + + /** + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * + * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getRules() + { + return $this->rules; + } + + /** + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * + * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->rules = $arr; + + return $this; + } + + /** + * Output only. The count of rules using the data table. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRuleAssociationsCount() + { + return $this->rule_associations_count; + } + + /** + * Output only. The count of rules using the data table. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRuleAssociationsCount($var) + { + GPBUtil::checkInt32($var); + $this->rule_associations_count = $var; + + return $this; + } + + /** + * Optional. User-provided TTL of the data table. + * + * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRowTimeToLive() + { + return $this->row_time_to_live; + } + + /** + * Optional. User-provided TTL of the data table. + * + * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRowTimeToLive($var) + { + GPBUtil::checkString($var, True); + $this->row_time_to_live = $var; + + return $this; + } + + /** + * Output only. The count of rows in the data table. + * + * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getApproximateRowCount() + { + return $this->approximate_row_count; + } + + /** + * Output only. The count of rows in the data table. + * + * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setApproximateRowCount($var) + { + GPBUtil::checkInt64($var); + $this->approximate_row_count = $var; + + return $this; + } + + /** + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DataTableScopeInfo|null + */ + public function getScopeInfo() + { + return $this->scope_info; + } + + public function hasScopeInfo() + { + return isset($this->scope_info); + } + + public function clearScopeInfo() + { + unset($this->scope_info); + } + + /** + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataTableScopeInfo $var + * @return $this + */ + public function setScopeInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableScopeInfo::class); + $this->scope_info = $var; + + return $this; + } + + /** + * Output only. Source of the data table update. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getUpdateSource() + { + return $this->update_source; + } + + /** + * Output only. Source of the data table update. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setUpdateSource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableUpdateSource::class); + $this->update_source = $var; + + return $this; + } + + /** + * Output only. Last update time of the TTL of the data table. + * + * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRowTimeToLiveUpdateTime() + { + return $this->row_time_to_live_update_time; + } + + public function hasRowTimeToLiveUpdateTime() + { + return isset($this->row_time_to_live_update_time); + } + + public function clearRowTimeToLiveUpdateTime() + { + unset($this->row_time_to_live_update_time); + } + + /** + * Output only. Last update time of the TTL of the data table. + * + * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRowTimeToLiveUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->row_time_to_live_update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php new file mode 100644 index 000000000000..e8d196b47d9e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php @@ -0,0 +1,274 @@ +google.cloud.chronicle.v1.DataTableColumnInfo + */ +class DataTableColumnInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Column Index. 0,1,2... + * + * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $column_index = 0; + /** + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $original_column = ''; + /** + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * + * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key_column = false; + /** + * Optional. Whether the column is a repeated values column. + * + * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $repeated_values = false; + protected $path_or_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $mapped_column_path + * Entity proto field path that the column is mapped to + * @type int $column_type + * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX + * @type int $column_index + * Required. Column Index. 0,1,2... + * @type string $original_column + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * @type bool $key_column + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * @type bool $repeated_values + * Optional. Whether the column is a repeated values column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Entity proto field path that the column is mapped to + * + * Generated from protobuf field string mapped_column_path = 3; + * @return string + */ + public function getMappedColumnPath() + { + return $this->readOneof(3); + } + + public function hasMappedColumnPath() + { + return $this->hasOneof(3); + } + + /** + * Entity proto field path that the column is mapped to + * + * Generated from protobuf field string mapped_column_path = 3; + * @param string $var + * @return $this + */ + public function setMappedColumnPath($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * @return int + */ + public function getColumnType() + { + return $this->readOneof(4); + } + + public function hasColumnType() + { + return $this->hasOneof(4); + } + + /** + * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * @param int $var + * @return $this + */ + public function setColumnType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableColumnInfo\DataTableColumnType::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Required. Column Index. 0,1,2... + * + * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getColumnIndex() + { + return $this->column_index; + } + + /** + * Required. Column Index. 0,1,2... + * + * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setColumnIndex($var) + { + GPBUtil::checkInt32($var); + $this->column_index = $var; + + return $this; + } + + /** + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOriginalColumn() + { + return $this->original_column; + } + + /** + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOriginalColumn($var) + { + GPBUtil::checkString($var, True); + $this->original_column = $var; + + return $this; + } + + /** + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * + * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getKeyColumn() + { + return $this->key_column; + } + + /** + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * + * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setKeyColumn($var) + { + GPBUtil::checkBool($var); + $this->key_column = $var; + + return $this; + } + + /** + * Optional. Whether the column is a repeated values column. + * + * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getRepeatedValues() + { + return $this->repeated_values; + } + + /** + * Optional. Whether the column is a repeated values column. + * + * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setRepeatedValues($var) + { + GPBUtil::checkBool($var); + $this->repeated_values = $var; + + return $this; + } + + /** + * @return string + */ + public function getPathOrType() + { + return $this->whichOneof("path_or_type"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php new file mode 100644 index 000000000000..66ce99ee22da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php @@ -0,0 +1,76 @@ +google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType + */ +class DataTableColumnType +{ + /** + * The default Data Table Column Type. + * + * Generated from protobuf enum DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; + */ + const DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; + /** + * Denotes the type of the column as STRING. + * + * Generated from protobuf enum STRING = 1; + */ + const STRING = 1; + /** + * Denotes the type of the column as REGEX. + * + * Generated from protobuf enum REGEX = 2; + */ + const REGEX = 2; + /** + * Denotes the type of the column as CIDR. + * + * Generated from protobuf enum CIDR = 3; + */ + const CIDR = 3; + /** + * Denotes the type of the column as NUMBER (includes int and float). + * + * Generated from protobuf enum NUMBER = 4; + */ + const NUMBER = 4; + + private static $valueToName = [ + self::DATA_TABLE_COLUMN_TYPE_UNSPECIFIED => 'DATA_TABLE_COLUMN_TYPE_UNSPECIFIED', + self::STRING => 'STRING', + self::REGEX => 'REGEX', + self::CIDR => 'CIDR', + self::NUMBER => 'NUMBER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php new file mode 100644 index 000000000000..23120c0eb49b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php @@ -0,0 +1,113 @@ +google.cloud.chronicle.v1.DataTableOperationErrors + */ +class DataTableOperationErrors extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The list of errors. + * Replaces the deprecated `errors` field. + * + * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; + */ + private $rpc_errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * @type \Google\Rpc\Status[] $rpc_errors + * The list of errors. + * Replaces the deprecated `errors` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The list of errors. + * Replaces the deprecated `errors` field. + * + * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; + * @return RepeatedField<\Google\Rpc\Status> + */ + public function getRpcErrors() + { + return $this->rpc_errors; + } + + /** + * The list of errors. + * Replaces the deprecated `errors` field. + * + * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; + * @param \Google\Rpc\Status[] $var + * @return $this + */ + public function setRpcErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->rpc_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php new file mode 100644 index 000000000000..09f30b14ac0c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php @@ -0,0 +1,235 @@ +google.cloud.chronicle.v1.DataTableRow + */ +class DataTableRow extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + /** + * Output only. DataTableRow create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. DataTableRow update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-provided TTL of the data table row. + * + * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $row_time_to_live = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @type string[] $values + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. DataTableRow create time + * @type \Google\Protobuf\Timestamp $update_time + * Output only. DataTableRow update time + * @type string $row_time_to_live + * Optional. User-provided TTL of the data table row. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * Output only. DataTableRow create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. DataTableRow create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. DataTableRow update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. DataTableRow update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. User-provided TTL of the data table row. + * + * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRowTimeToLive() + { + return $this->row_time_to_live; + } + + /** + * Optional. User-provided TTL of the data table row. + * + * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRowTimeToLive($var) + { + GPBUtil::checkString($var, True); + $this->row_time_to_live = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php new file mode 100644 index 000000000000..71088a6ffab9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php @@ -0,0 +1,79 @@ +google.cloud.chronicle.v1.DataTableScopeInfo + */ +class DataTableScopeInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * + * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $data_access_scopes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $data_access_scopes + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * + * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getDataAccessScopes() + { + return $this->data_access_scopes; + } + + /** + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * + * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setDataAccessScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_access_scopes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php new file mode 100644 index 000000000000..a2d2cbf75cc5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.DataTableUpdateSource + */ +class DataTableUpdateSource +{ + /** + * The data table is updated by the user. + * + * Generated from protobuf enum DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; + */ + const DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; + /** + * The data table is updated by the user. + * + * Generated from protobuf enum USER = 1; + */ + const USER = 1; + /** + * The data table is updated by the rule. + * + * Generated from protobuf enum RULE = 2; + */ + const RULE = 2; + /** + * The data table is updated by the search. + * + * Generated from protobuf enum SEARCH = 3; + */ + const SEARCH = 3; + + private static $valueToName = [ + self::DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED => 'DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED', + self::USER => 'USER', + self::RULE => 'RULE', + self::SEARCH => 'SEARCH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php new file mode 100644 index 000000000000..31005e449a5e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteDataAccessLabelRequest + */ +class DeleteDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessLabelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php new file mode 100644 index 000000000000..5d5ef83446ba --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteDataAccessScopeRequest + */ +class DeleteDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessScopeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php new file mode 100644 index 000000000000..5b6d521de2f3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.DeleteDataTableRequest + */ +class DeleteDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param bool $force Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * @type bool $force + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php new file mode 100644 index 000000000000..90e6718b303a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteDataTableRowRequest + */ +class DeleteDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRowRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php new file mode 100644 index 000000000000..5875f97849e0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteNativeDashboardRequest + */ +class DeleteNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php new file mode 100644 index 000000000000..65679e334596 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php @@ -0,0 +1,151 @@ +google.cloud.chronicle.v1.DeleteRuleRequest + */ +class DeleteRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteRuleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type bool $force + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php new file mode 100644 index 000000000000..d713acb98186 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.DeleteWatchlistRequest + */ +class DeleteWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. + * @param bool $force Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * @return \Google\Cloud\Chronicle\V1\DeleteWatchlistRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @type bool $force + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php new file mode 100644 index 000000000000..9475a9dc17ed --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php @@ -0,0 +1,125 @@ +google.cloud.chronicle.v1.DuplicateChartRequest + */ +class DuplicateChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The dashboard chart name to duplicate. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + + /** + * @param string $name Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DuplicateChartRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type string $dashboard_chart + * Required. The dashboard chart name to duplicate. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The dashboard chart name to duplicate. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Required. The dashboard chart name to duplicate. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php new file mode 100644 index 000000000000..f8f041f4917e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php @@ -0,0 +1,121 @@ +google.cloud.chronicle.v1.DuplicateChartResponse + */ +class DuplicateChartResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + protected $native_dashboard = null; + /** + * Duplicated chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + protected $dashboard_chart = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Dashboard with chart added in definition. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Duplicated chart resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Duplicated chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Duplicated chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php new file mode 100644 index 000000000000..3792bba9ae5c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php @@ -0,0 +1,142 @@ +google.cloud.chronicle.v1.DuplicateNativeDashboardRequest + */ +class DuplicateNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $native_dashboard = null; + + /** + * @param string $name Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * @return \Google\Cloud\Chronicle\V1\DuplicateNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard): self + { + return (new self()) + ->setName($name) + ->setNativeDashboard($nativeDashboard); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php new file mode 100644 index 000000000000..cad00c146146 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php @@ -0,0 +1,318 @@ +google.cloud.chronicle.v1.EditChartRequest + */ +class EditChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Query for the edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_query = null; + /** + * Optional. Edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_chart = null; + /** + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $edit_mask = null; + /** + * Optional. Language Features present in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $language_features; + + /** + * @param string $name Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery Optional. Query for the edited chart. + * @param \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart Optional. Edited chart. + * @param \Google\Protobuf\FieldMask $editMask Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * @return \Google\Cloud\Chronicle\V1\EditChartRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery, \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart, \Google\Protobuf\FieldMask $editMask): self + { + return (new self()) + ->setName($name) + ->setDashboardQuery($dashboardQuery) + ->setDashboardChart($dashboardChart) + ->setEditMask($editMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Cloud\Chronicle\V1\DashboardQuery $dashboard_query + * Optional. Query for the edited chart. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Optional. Edited chart. + * @type \Google\Protobuf\FieldMask $edit_mask + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * @type int[] $language_features + * Optional. Language Features present in the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Query for the edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null + */ + public function getDashboardQuery() + { + return $this->dashboard_query; + } + + public function hasDashboardQuery() + { + return isset($this->dashboard_query); + } + + public function clearDashboardQuery() + { + unset($this->dashboard_query); + } + + /** + * Optional. Query for the edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var + * @return $this + */ + public function setDashboardQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->dashboard_query = $var; + + return $this; + } + + /** + * Optional. Edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Optional. Edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getEditMask() + { + return $this->edit_mask; + } + + public function hasEditMask() + { + return isset($this->edit_mask); + } + + public function clearEditMask() + { + unset($this->edit_mask); + } + + /** + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setEditMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->edit_mask = $var; + + return $this; + } + + /** + * Optional. Language Features present in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getLanguageFeatures() + { + return $this->language_features; + } + + /** + * Optional. Language Features present in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setLanguageFeatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\LanguageFeature::class); + $this->language_features = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php new file mode 100644 index 000000000000..dc3b323f23d3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php @@ -0,0 +1,121 @@ +google.cloud.chronicle.v1.EditChartResponse + */ +class EditChartResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Edited dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + protected $native_dashboard = null; + /** + * Edited chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + protected $dashboard_chart = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Edited dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Edited chart resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Edited dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Edited dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Edited chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Edited chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php new file mode 100644 index 000000000000..73f303fb1bc3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php @@ -0,0 +1,257 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryRequest + */ +class ExecuteDashboardQueryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = null; + /** + * Optional. Dashboard level filters other than query string. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $filters; + /** + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * + * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $clear_cache = false; + /** + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * + * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_previous_time_range = false; + + /** + * @param string $parent Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see DashboardQueryServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $query Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DashboardQuery $query): self + { + return (new self()) + ->setParent($parent) + ->setQuery($query); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\DashboardQuery $query + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * @type \Google\Cloud\Chronicle\V1\DashboardFilter[] $filters + * Optional. Dashboard level filters other than query string. + * @type bool $clear_cache + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * @type bool $use_previous_time_range + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null + */ + public function getQuery() + { + return $this->query; + } + + public function hasQuery() + { + return isset($this->query); + } + + public function clearQuery() + { + unset($this->query); + } + + /** + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->query = $var; + + return $this; + } + + /** + * Optional. Dashboard level filters other than query string. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Optional. Dashboard level filters other than query string. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardFilter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * + * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getClearCache() + { + return $this->clear_cache; + } + + /** + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * + * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setClearCache($var) + { + GPBUtil::checkBool($var); + $this->clear_cache = $var; + + return $this; + } + + /** + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * + * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsePreviousTimeRange() + { + return $this->use_previous_time_range; + } + + /** + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * + * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsePreviousTimeRange($var) + { + GPBUtil::checkBool($var); + $this->use_previous_time_range = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php new file mode 100644 index 000000000000..3df4d3c979fa --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php @@ -0,0 +1,261 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse + */ +class ExecuteDashboardQueryResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Result rows that are queried. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; + */ + private $results; + /** + * Datasource of the query and results. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + */ + private $data_sources; + /** + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * + * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $last_backend_cache_refreshed_time = null; + /** + * Time window against which query was executed. + * + * Generated from protobuf field .google.type.Interval time_window = 5; + */ + protected $time_window = null; + /** + * Runtime errors + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; + */ + private $query_runtime_errors; + /** + * Optional. Language features found in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $language_features; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData[] $results + * Result rows that are queried. + * @type int[] $data_sources + * Datasource of the query and results. + * @type \Google\Protobuf\Timestamp $last_backend_cache_refreshed_time + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * @type \Google\Type\Interval $time_window + * Time window against which query was executed. + * @type \Google\Cloud\Chronicle\V1\QueryRuntimeError[] $query_runtime_errors + * Runtime errors + * @type int[] $language_features + * Optional. Language features found in the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Result rows that are queried. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData> + */ + public function getResults() + { + return $this->results; + } + + /** + * Result rows that are queried. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData::class); + $this->results = $arr; + + return $this; + } + + /** + * Datasource of the query and results. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @return RepeatedField + */ + public function getDataSources() + { + return $this->data_sources; + } + + /** + * Datasource of the query and results. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @param int[] $var + * @return $this + */ + public function setDataSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_sources = $arr; + + return $this; + } + + /** + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * + * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastBackendCacheRefreshedTime() + { + return $this->last_backend_cache_refreshed_time; + } + + public function hasLastBackendCacheRefreshedTime() + { + return isset($this->last_backend_cache_refreshed_time); + } + + public function clearLastBackendCacheRefreshedTime() + { + unset($this->last_backend_cache_refreshed_time); + } + + /** + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * + * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastBackendCacheRefreshedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_backend_cache_refreshed_time = $var; + + return $this; + } + + /** + * Time window against which query was executed. + * + * Generated from protobuf field .google.type.Interval time_window = 5; + * @return \Google\Type\Interval|null + */ + public function getTimeWindow() + { + return $this->time_window; + } + + public function hasTimeWindow() + { + return isset($this->time_window); + } + + public function clearTimeWindow() + { + unset($this->time_window); + } + + /** + * Time window against which query was executed. + * + * Generated from protobuf field .google.type.Interval time_window = 5; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setTimeWindow($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->time_window = $var; + + return $this; + } + + /** + * Runtime errors + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\QueryRuntimeError> + */ + public function getQueryRuntimeErrors() + { + return $this->query_runtime_errors; + } + + /** + * Runtime errors + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; + * @param \Google\Cloud\Chronicle\V1\QueryRuntimeError[] $var + * @return $this + */ + public function setQueryRuntimeErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\QueryRuntimeError::class); + $this->query_runtime_errors = $arr; + + return $this; + } + + /** + * Optional. Language features found in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getLanguageFeatures() + { + return $this->language_features; + } + + /** + * Optional. Language features found in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setLanguageFeatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\LanguageFeature::class); + $this->language_features = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php new file mode 100644 index 000000000000..b8e4df0aca8b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php @@ -0,0 +1,143 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData + */ +class ColumnData extends \Google\Protobuf\Internal\Message +{ + /** + * Used to store column names. + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + /** + * To store column data. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; + */ + private $values; + /** + * To store column metadata. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; + */ + protected $metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Used to store column names. + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType[] $values + * To store column data. + * @type \Google\Cloud\Chronicle\V1\ColumnMetadata $metadata + * To store column metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Used to store column names. + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Used to store column names. + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * To store column data. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType> + */ + public function getValues() + { + return $this->values; + } + + /** + * To store column data. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType::class); + $this->values = $arr; + + return $this; + } + + /** + * To store column metadata. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; + * @return \Google\Cloud\Chronicle\V1\ColumnMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * To store column metadata. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; + * @param \Google\Cloud\Chronicle\V1\ColumnMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ColumnMetadata::class); + $this->metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php new file mode 100644 index 000000000000..7f504659a31c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php @@ -0,0 +1,108 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType + */ +class ColumnType extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue $value + * Single value in a column. + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList $list + * List of values in a column e.g. IPs + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Single value in a column. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue value = 1; + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue|null + */ + public function getValue() + { + return $this->readOneof(1); + } + + public function hasValue() + { + return $this->hasOneof(1); + } + + /** + * Single value in a column. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue value = 1; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * List of values in a column e.g. IPs + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List list = 2; + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList|null + */ + public function getList() + { + return $this->readOneof(2); + } + + public function hasList() + { + return $this->hasOneof(2); + } + + /** + * List of values in a column e.g. IPs + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List list = 2; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList $var + * @return $this + */ + public function setList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php new file mode 100644 index 000000000000..6ea5b09b5482 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php @@ -0,0 +1,60 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List + */ +class PBList extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue[] $values + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue> + */ + public function getValues() + { + return $this->values; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php new file mode 100644 index 000000000000..aba08e522e0d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php @@ -0,0 +1,410 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue + */ +class ColumnValue extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; + */ + protected $metadata = null; + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $null_val + * True if the value is NULL. + * @type bool $bool_val + * Boolean value. + * @type string $bytes_val + * Bytes value. + * @type float $double_val + * Double value. + * @type int|string $int64_val + * Integer value (signed). + * @type int|string $uint64_val + * Un-signed integer value. + * @type string $string_val + * String value. Enum values are returned as strings. + * @type \Google\Protobuf\Timestamp $timestamp_val + * Timestamp values. Does not handle `interval`. + * @type \Google\Type\Date $date_val + * Date values. + * @type \Google\Protobuf\Any $proto_val + * For any proto values that are not any of the above. + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata $metadata + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * True if the value is NULL. + * + * Generated from protobuf field bool null_val = 1; + * @return bool + */ + public function getNullVal() + { + return $this->readOneof(1); + } + + public function hasNullVal() + { + return $this->hasOneof(1); + } + + /** + * True if the value is NULL. + * + * Generated from protobuf field bool null_val = 1; + * @param bool $var + * @return $this + */ + public function setNullVal($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Boolean value. + * + * Generated from protobuf field bool bool_val = 2; + * @return bool + */ + public function getBoolVal() + { + return $this->readOneof(2); + } + + public function hasBoolVal() + { + return $this->hasOneof(2); + } + + /** + * Boolean value. + * + * Generated from protobuf field bool bool_val = 2; + * @param bool $var + * @return $this + */ + public function setBoolVal($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Bytes value. + * + * Generated from protobuf field bytes bytes_val = 3; + * @return string + */ + public function getBytesVal() + { + return $this->readOneof(3); + } + + public function hasBytesVal() + { + return $this->hasOneof(3); + } + + /** + * Bytes value. + * + * Generated from protobuf field bytes bytes_val = 3; + * @param string $var + * @return $this + */ + public function setBytesVal($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Double value. + * + * Generated from protobuf field double double_val = 4; + * @return float + */ + public function getDoubleVal() + { + return $this->readOneof(4); + } + + public function hasDoubleVal() + { + return $this->hasOneof(4); + } + + /** + * Double value. + * + * Generated from protobuf field double double_val = 4; + * @param float $var + * @return $this + */ + public function setDoubleVal($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Integer value (signed). + * + * Generated from protobuf field int64 int64_val = 5; + * @return int|string + */ + public function getInt64Val() + { + return $this->readOneof(5); + } + + public function hasInt64Val() + { + return $this->hasOneof(5); + } + + /** + * Integer value (signed). + * + * Generated from protobuf field int64 int64_val = 5; + * @param int|string $var + * @return $this + */ + public function setInt64Val($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Un-signed integer value. + * + * Generated from protobuf field uint64 uint64_val = 6; + * @return int|string + */ + public function getUint64Val() + { + return $this->readOneof(6); + } + + public function hasUint64Val() + { + return $this->hasOneof(6); + } + + /** + * Un-signed integer value. + * + * Generated from protobuf field uint64 uint64_val = 6; + * @param int|string $var + * @return $this + */ + public function setUint64Val($var) + { + GPBUtil::checkUint64($var); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * String value. Enum values are returned as strings. + * + * Generated from protobuf field string string_val = 7; + * @return string + */ + public function getStringVal() + { + return $this->readOneof(7); + } + + public function hasStringVal() + { + return $this->hasOneof(7); + } + + /** + * String value. Enum values are returned as strings. + * + * Generated from protobuf field string string_val = 7; + * @param string $var + * @return $this + */ + public function setStringVal($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Timestamp values. Does not handle `interval`. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampVal() + { + return $this->readOneof(8); + } + + public function hasTimestampVal() + { + return $this->hasOneof(8); + } + + /** + * Timestamp values. Does not handle `interval`. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampVal($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Date values. + * + * Generated from protobuf field .google.type.Date date_val = 9; + * @return \Google\Type\Date|null + */ + public function getDateVal() + { + return $this->readOneof(9); + } + + public function hasDateVal() + { + return $this->hasOneof(9); + } + + /** + * Date values. + * + * Generated from protobuf field .google.type.Date date_val = 9; + * @param \Google\Type\Date $var + * @return $this + */ + public function setDateVal($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * For any proto values that are not any of the above. + * + * Generated from protobuf field .google.protobuf.Any proto_val = 10; + * @return \Google\Protobuf\Any|null + */ + public function getProtoVal() + { + return $this->readOneof(10); + } + + public function hasProtoVal() + { + return $this->hasOneof(10); + } + + /** + * For any proto values that are not any of the above. + * + * Generated from protobuf field .google.protobuf.Any proto_val = 10; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setProtoVal($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php new file mode 100644 index 000000000000..d3d25849132d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php @@ -0,0 +1,140 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata + */ +class ValueMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * "Auto" generated In-app links. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; + */ + private $links; + /** + * Generated from protobuf field repeated string field_paths = 2; + */ + private $field_paths; + /** + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; + */ + protected $timestamp_val = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\InAppLink[] $links + * "Auto" generated In-app links. + * @type string[] $field_paths + * @type \Google\Protobuf\Timestamp $timestamp_val + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * "Auto" generated In-app links. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\InAppLink> + */ + public function getLinks() + { + return $this->links; + } + + /** + * "Auto" generated In-app links. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; + * @param \Google\Cloud\Chronicle\V1\InAppLink[] $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\InAppLink::class); + $this->links = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string field_paths = 2; + * @return RepeatedField + */ + public function getFieldPaths() + { + return $this->field_paths; + } + + /** + * Generated from protobuf field repeated string field_paths = 2; + * @param string[] $var + * @return $this + */ + public function setFieldPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->field_paths = $arr; + + return $this; + } + + /** + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampVal() + { + return $this->timestamp_val; + } + + public function hasTimestampVal() + { + return isset($this->timestamp_val); + } + + public function clearTimestampVal() + { + unset($this->timestamp_val); + } + + /** + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampVal($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp_val = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php new file mode 100644 index 000000000000..042cb057790a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php @@ -0,0 +1,122 @@ +google.cloud.chronicle.v1.ExportNativeDashboardsRequest + */ +class ExportNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the dashboards to export. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $names; + + /** + * @param string $parent Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * @param string[] $names Required. The resource names of the dashboards to export. + * + * @return \Google\Cloud\Chronicle\V1\ExportNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type string[] $names + * Required. The resource names of the dashboards to export. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the dashboards to export. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the dashboards to export. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php new file mode 100644 index 000000000000..3f3ed5adb422 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.ExportNativeDashboardsResponse + */ +class ExportNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + protected $destination; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\InlineDestination $inline_destination + * The data for the exported dashboards included directly in the response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The data for the exported dashboards included directly in the response. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InlineDestination inline_destination = 1; + * @return \Google\Cloud\Chronicle\V1\InlineDestination|null + */ + public function getInlineDestination() + { + return $this->readOneof(1); + } + + public function hasInlineDestination() + { + return $this->hasOneof(1); + } + + /** + * The data for the exported dashboards included directly in the response. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InlineDestination inline_destination = 1; + * @param \Google\Cloud\Chronicle\V1\InlineDestination $var + * @return $this + */ + public function setInlineDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\InlineDestination::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("destination"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php new file mode 100644 index 000000000000..8f54c9eaa611 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php @@ -0,0 +1,445 @@ +google.cloud.chronicle.v1.FeaturedContentMetadata + */ +class FeaturedContentMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unique identifier of the featured content. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Output only. The display name of the featured content. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. Timestamp indicating when the item was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp indicating when the item was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Content item author full name. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * + * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $certified = false; + /** + * Output only. The description of the content item. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. Categories the content is associated with. + * + * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $categories; + /** + * Output only. Featured content version (Major.Minor.Patch). + * + * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $version = ''; + /** + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * + * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verified = null; + /** + * Output only. The source type of the content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. Unique identifier of the featured content. + * @type string $display_name + * Output only. The display name of the featured content. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp indicating when the item was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp indicating when the item was updated. + * @type string $author + * Output only. Content item author full name. + * @type bool $certified + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * @type string $description + * Output only. The description of the content item. + * @type string[] $categories + * Output only. Categories the content is associated with. + * @type string $version + * Output only. Featured content version (Major.Minor.Patch). + * @type bool $verified + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * @type int $source_type + * Output only. The source type of the content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unique identifier of the featured content. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. Unique identifier of the featured content. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Output only. The display name of the featured content. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The display name of the featured content. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Timestamp indicating when the item was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp indicating when the item was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp indicating when the item was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp indicating when the item was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Content item author full name. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. Content item author full name. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * + * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCertified() + { + return $this->certified; + } + + /** + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * + * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCertified($var) + { + GPBUtil::checkBool($var); + $this->certified = $var; + + return $this; + } + + /** + * Output only. The description of the content item. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. The description of the content item. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Categories the content is associated with. + * + * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getCategories() + { + return $this->categories; + } + + /** + * Output only. Categories the content is associated with. + * + * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->categories = $arr; + + return $this; + } + + /** + * Output only. Featured content version (Major.Minor.Patch). + * + * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Output only. Featured content version (Major.Minor.Patch). + * + * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * + * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getVerified() + { + return isset($this->verified) ? $this->verified : false; + } + + public function hasVerified() + { + return isset($this->verified); + } + + public function clearVerified() + { + unset($this->verified); + } + + /** + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * + * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setVerified($var) + { + GPBUtil::checkBool($var); + $this->verified = $var; + + return $this; + } + + /** + * Output only. The source type of the content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSourceType() + { + return $this->source_type; + } + + /** + * Output only. The source type of the content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\FeaturedContentMetadata\ContentSourceType::class); + $this->source_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php new file mode 100644 index 000000000000..534cef11ee20 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType + */ +class ContentSourceType +{ + /** + * Unspecified content source type + * + * Generated from protobuf enum CONTENT_SOURCE_TYPE_UNSPECIFIED = 0; + */ + const CONTENT_SOURCE_TYPE_UNSPECIFIED = 0; + /** + * Certified Google content source type + * + * Generated from protobuf enum GOOGLE = 1; + */ + const GOOGLE = 1; + /** + * Community content source type + * + * Generated from protobuf enum COMMUNITY = 2; + */ + const COMMUNITY = 2; + /** + * Partner content source type + * + * Generated from protobuf enum PARTNER = 3; + */ + const PARTNER = 3; + + private static $valueToName = [ + self::CONTENT_SOURCE_TYPE_UNSPECIFIED => 'CONTENT_SOURCE_TYPE_UNSPECIFIED', + self::GOOGLE => 'GOOGLE', + self::COMMUNITY => 'COMMUNITY', + self::PARTNER => 'PARTNER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php new file mode 100644 index 000000000000..6ad1cded0da0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php @@ -0,0 +1,163 @@ +google.cloud.chronicle.v1.FeaturedContentNativeDashboard + */ +class FeaturedContentNativeDashboard extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Metadata about the FeaturedContentNativeDashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $content_metadata = null; + /** + * Optional. The dashboard content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_content = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @type \Google\Cloud\Chronicle\V1\FeaturedContentMetadata $content_metadata + * Output only. Metadata about the FeaturedContentNativeDashboard. + * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries $dashboard_content + * Optional. The dashboard content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Metadata about the FeaturedContentNativeDashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\FeaturedContentMetadata|null + */ + public function getContentMetadata() + { + return $this->content_metadata; + } + + public function hasContentMetadata() + { + return isset($this->content_metadata); + } + + public function clearContentMetadata() + { + unset($this->content_metadata); + } + + /** + * Output only. Metadata about the FeaturedContentNativeDashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\FeaturedContentMetadata $var + * @return $this + */ + public function setContentMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\FeaturedContentMetadata::class); + $this->content_metadata = $var; + + return $this; + } + + /** + * Optional. The dashboard content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries|null + */ + public function getDashboardContent() + { + return $this->dashboard_content; + } + + public function hasDashboardContent() + { + return isset($this->dashboard_content); + } + + public function clearDashboardContent() + { + unset($this->dashboard_content); + } + + /** + * Optional. The dashboard content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries $var + * @return $this + */ + public function setDashboardContent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); + $this->dashboard_content = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php new file mode 100644 index 000000000000..d67629162255 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php @@ -0,0 +1,139 @@ +google.cloud.chronicle.v1.FilterOperator + */ +class FilterOperator +{ + /** + * Default unspecified. + * + * Generated from protobuf enum FILTER_OPERATOR_UNSPECIFIED = 0; + */ + const FILTER_OPERATOR_UNSPECIFIED = 0; + /** + * Generated from protobuf enum EQUAL = 1; + */ + const EQUAL = 1; + /** + * Generated from protobuf enum NOT_EQUAL = 2; + */ + const NOT_EQUAL = 2; + /** + * Generated from protobuf enum IN = 3; + */ + const IN = 3; + /** + * Generated from protobuf enum GREATER_THAN = 4; + */ + const GREATER_THAN = 4; + /** + * Generated from protobuf enum GREATER_THAN_OR_EQUAL_TO = 5; + */ + const GREATER_THAN_OR_EQUAL_TO = 5; + /** + * Generated from protobuf enum LESS_THAN = 6; + */ + const LESS_THAN = 6; + /** + * Generated from protobuf enum LESS_THAN_OR_EQUAL_TO = 7; + */ + const LESS_THAN_OR_EQUAL_TO = 7; + /** + * Generated from protobuf enum BETWEEN = 8; + */ + const BETWEEN = 8; + /** + * Generated from protobuf enum PAST = 9; + */ + const PAST = 9; + /** + * Generated from protobuf enum IS_NULL = 10; + */ + const IS_NULL = 10; + /** + * Generated from protobuf enum IS_NOT_NULL = 11; + */ + const IS_NOT_NULL = 11; + /** + * Generated from protobuf enum STARTS_WITH = 12; + */ + const STARTS_WITH = 12; + /** + * Generated from protobuf enum ENDS_WITH = 13; + */ + const ENDS_WITH = 13; + /** + * Generated from protobuf enum DOES_NOT_STARTS_WITH = 14; + */ + const DOES_NOT_STARTS_WITH = 14; + /** + * Generated from protobuf enum DOES_NOT_ENDS_WITH = 15; + */ + const DOES_NOT_ENDS_WITH = 15; + /** + * Generated from protobuf enum NOT_IN = 16; + */ + const NOT_IN = 16; + /** + * CONTAINS is used for substring match. + * + * Generated from protobuf enum CONTAINS = 17; + */ + const CONTAINS = 17; + /** + * Used if we want to check if the field does not contain the substring. + * + * Generated from protobuf enum DOES_NOT_CONTAIN = 18; + */ + const DOES_NOT_CONTAIN = 18; + + private static $valueToName = [ + self::FILTER_OPERATOR_UNSPECIFIED => 'FILTER_OPERATOR_UNSPECIFIED', + self::EQUAL => 'EQUAL', + self::NOT_EQUAL => 'NOT_EQUAL', + self::IN => 'IN', + self::GREATER_THAN => 'GREATER_THAN', + self::GREATER_THAN_OR_EQUAL_TO => 'GREATER_THAN_OR_EQUAL_TO', + self::LESS_THAN => 'LESS_THAN', + self::LESS_THAN_OR_EQUAL_TO => 'LESS_THAN_OR_EQUAL_TO', + self::BETWEEN => 'BETWEEN', + self::PAST => 'PAST', + self::IS_NULL => 'IS_NULL', + self::IS_NOT_NULL => 'IS_NOT_NULL', + self::STARTS_WITH => 'STARTS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::DOES_NOT_STARTS_WITH => 'DOES_NOT_STARTS_WITH', + self::DOES_NOT_ENDS_WITH => 'DOES_NOT_ENDS_WITH', + self::NOT_IN => 'NOT_IN', + self::CONTAINS => 'CONTAINS', + self::DOES_NOT_CONTAIN => 'DOES_NOT_CONTAIN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php new file mode 100644 index 000000000000..142ad9a745d4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php @@ -0,0 +1,107 @@ +google.cloud.chronicle.v1.FilterOperatorAndValues + */ +class FilterOperatorAndValues extends \Google\Protobuf\Internal\Message +{ + /** + * Operator for a single filter modifier. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; + */ + protected $filter_operator = 0; + /** + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * + * Generated from protobuf field repeated string field_values = 2; + */ + private $field_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $filter_operator + * Operator for a single filter modifier. + * @type string[] $field_values + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Operator for a single filter modifier. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; + * @return int + */ + public function getFilterOperator() + { + return $this->filter_operator; + } + + /** + * Operator for a single filter modifier. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; + * @param int $var + * @return $this + */ + public function setFilterOperator($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\FilterOperator::class); + $this->filter_operator = $var; + + return $this; + } + + /** + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * + * Generated from protobuf field repeated string field_values = 2; + * @return RepeatedField + */ + public function getFieldValues() + { + return $this->field_values; + } + + /** + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * + * Generated from protobuf field repeated string field_values = 2; + * @param string[] $var + * @return $this + */ + public function setFieldValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->field_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php new file mode 100644 index 000000000000..11a3b7ba09f3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDashboardChartRequest + */ +class GetDashboardChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * Please see {@see DashboardChartServiceClient::dashboardChartName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDashboardChartRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php new file mode 100644 index 000000000000..0c607fe266f4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDashboardQueryRequest + */ +class GetDashboardQueryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * Please see {@see DashboardQueryServiceClient::dashboardQueryName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDashboardQueryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php new file mode 100644 index 000000000000..74aead7733a7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataAccessLabelRequest + */ +class GetDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataAccessLabelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php new file mode 100644 index 000000000000..0ee76b341d49 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataAccessScopeRequest + */ +class GetDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataAccessScopeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php new file mode 100644 index 000000000000..b00e5d52ec7d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest + */ +class GetDataTableOperationErrorsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * Please see {@see DataTableServiceClient::dataTableOperationErrorsName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataTableOperationErrorsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php new file mode 100644 index 000000000000..ab2aac02a02c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataTableRequest + */ +class GetDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataTableRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php new file mode 100644 index 000000000000..3c1918a3f2be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataTableRowRequest + */ +class GetDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataTableRowRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php new file mode 100644 index 000000000000..7a4ee8ab0153 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest + */ +class GetFeaturedContentNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * Please see {@see FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetFeaturedContentNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php new file mode 100644 index 000000000000..f7f10e18fe26 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetInstanceRequest + */ +class GetInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * Please see {@see InstanceServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetInstanceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php new file mode 100644 index 000000000000..e637b5b6f217 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php @@ -0,0 +1,129 @@ +google.cloud.chronicle.v1.GetNativeDashboardRequest + */ +class GetNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $name Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type int $view + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\NativeDashboardView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php new file mode 100644 index 000000000000..baf589cbd38c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php @@ -0,0 +1,129 @@ +google.cloud.chronicle.v1.GetReferenceListRequest + */ +class GetReferenceListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; + */ + protected $view = 0; + + /** + * @param string $name Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * Please see {@see ReferenceListServiceClient::referenceListName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetReferenceListRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * @type int $view + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php new file mode 100644 index 000000000000..2d46a2a1ae1f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetRetrohuntRequest + */ +class GetRetrohuntRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * Please see {@see RuleServiceClient::retrohuntName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetRetrohuntRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php new file mode 100644 index 000000000000..c5defab4535b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetRuleDeploymentRequest + */ +class GetRuleDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * Please see {@see RuleServiceClient::ruleDeploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetRuleDeploymentRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php new file mode 100644 index 000000000000..d43e6dff3705 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php @@ -0,0 +1,129 @@ +google.cloud.chronicle.v1.GetRuleRequest + */ +class GetRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; + */ + protected $view = 0; + + /** + * @param string $name Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetRuleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type int $view + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php new file mode 100644 index 000000000000..056e4ed0fcf8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php @@ -0,0 +1,96 @@ +google.cloud.chronicle.v1.GetWatchlistRequest + */ +class GetWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetWatchlistRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php new file mode 100644 index 000000000000..f671e484e6da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.ImportExportStatus + */ +class ImportExportStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the dashboard if it was supplied in the request. + * + * Generated from protobuf field string dashboard = 1; + */ + protected $dashboard = ''; + /** + * Output only. Status of the import/export operation. + * + * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard + * The resource name of the dashboard if it was supplied in the request. + * @type \Google\Rpc\Status $status + * Output only. Status of the import/export operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the dashboard if it was supplied in the request. + * + * Generated from protobuf field string dashboard = 1; + * @return string + */ + public function getDashboard() + { + return $this->dashboard; + } + + /** + * The resource name of the dashboard if it was supplied in the request. + * + * Generated from protobuf field string dashboard = 1; + * @param string $var + * @return $this + */ + public function setDashboard($var) + { + GPBUtil::checkString($var, True); + $this->dashboard = $var; + + return $this; + } + + /** + * Output only. Status of the import/export operation. + * + * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getStatus() + { + return $this->status; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. Status of the import/export operation. + * + * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php new file mode 100644 index 000000000000..731274371bb9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource + */ +class ImportNativeDashboardsInlineSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $dashboards; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $dashboards + * Required. Dashboards with charts and queries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries> + */ + public function getDashboards() + { + return $this->dashboards; + } + + /** + * Required. Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $var + * @return $this + */ + public function setDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); + $this->dashboards = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php new file mode 100644 index 000000000000..19dad270814c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.ImportNativeDashboardsRequest + */ +class ImportNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The data will imported from this proto. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $source = null; + + /** + * @param string $parent Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source Required. The data will imported from this proto. + * + * @return \Google\Cloud\Chronicle\V1\ImportNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source): self + { + return (new self()) + ->setParent($parent) + ->setSource($source); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source + * Required. The data will imported from this proto. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The data will imported from this proto. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * Required. The data will imported from this proto. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource::class); + $this->source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php new file mode 100644 index 000000000000..a89d2e54dbd5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.ImportNativeDashboardsResponse + */ +class ImportNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $results; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ImportExportStatus[] $results + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ImportExportStatus> + */ + public function getResults() + { + return $this->results; + } + + /** + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\ImportExportStatus[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ImportExportStatus::class); + $this->results = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php new file mode 100644 index 000000000000..c3a7107895a1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.InAppLink + */ +class InAppLink extends \Google\Protobuf\Internal\Message +{ + /** + * URL to redirect to. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + /** + * Label for the link. + * + * Generated from protobuf field string label = 2; + */ + protected $label = ''; + /** + * Icon url for the link. + * + * Generated from protobuf field string icon_url = 3; + */ + protected $icon_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * URL to redirect to. + * @type string $label + * Label for the link. + * @type string $icon_url + * Icon url for the link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * URL to redirect to. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * URL to redirect to. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Label for the link. + * + * Generated from protobuf field string label = 2; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Label for the link. + * + * Generated from protobuf field string label = 2; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Icon url for the link. + * + * Generated from protobuf field string icon_url = 3; + * @return string + */ + public function getIconUrl() + { + return $this->icon_url; + } + + /** + * Icon url for the link. + * + * Generated from protobuf field string icon_url = 3; + * @param string $var + * @return $this + */ + public function setIconUrl($var) + { + GPBUtil::checkString($var, True); + $this->icon_url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php new file mode 100644 index 000000000000..de4fea8fbc81 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php @@ -0,0 +1,109 @@ +google.cloud.chronicle.v1.IngestionLabel + */ +class IngestionLabel extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The key of the ingestion label. Always required. + * + * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ingestion_label_key = ''; + /** + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * + * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ingestion_label_value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ingestion_label_key + * Required. The key of the ingestion label. Always required. + * @type string $ingestion_label_value + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The key of the ingestion label. Always required. + * + * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getIngestionLabelKey() + { + return $this->ingestion_label_key; + } + + /** + * Required. The key of the ingestion label. Always required. + * + * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setIngestionLabelKey($var) + { + GPBUtil::checkString($var, True); + $this->ingestion_label_key = $var; + + return $this; + } + + /** + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * + * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getIngestionLabelValue() + { + return $this->ingestion_label_value; + } + + /** + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * + * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setIngestionLabelValue($var) + { + GPBUtil::checkString($var, True); + $this->ingestion_label_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php new file mode 100644 index 000000000000..866b74665fdf --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.InlineDestination + */ +class InlineDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; + */ + private $dashboards; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $dashboards + * Dashboards with charts and queries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries> + */ + public function getDashboards() + { + return $this->dashboards; + } + + /** + * Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $var + * @return $this + */ + public function setDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); + $this->dashboards = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php new file mode 100644 index 000000000000..a8afa8fd340e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.InputsUsed + */ +class InputsUsed extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether the rule queries UDM events. + * + * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $uses_udm = false; + /** + * Optional. Whether the rule queries entity events. + * + * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $uses_entity = false; + /** + * Optional. Whether the rule queries detections. + * + * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $uses_detection = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $uses_udm + * Optional. Whether the rule queries UDM events. + * @type bool $uses_entity + * Optional. Whether the rule queries entity events. + * @type bool $uses_detection + * Optional. Whether the rule queries detections. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether the rule queries UDM events. + * + * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsesUdm() + { + return $this->uses_udm; + } + + /** + * Optional. Whether the rule queries UDM events. + * + * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsesUdm($var) + { + GPBUtil::checkBool($var); + $this->uses_udm = $var; + + return $this; + } + + /** + * Optional. Whether the rule queries entity events. + * + * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsesEntity() + { + return $this->uses_entity; + } + + /** + * Optional. Whether the rule queries entity events. + * + * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsesEntity($var) + { + GPBUtil::checkBool($var); + $this->uses_entity = $var; + + return $this; + } + + /** + * Optional. Whether the rule queries detections. + * + * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsesDetection() + { + return $this->uses_detection; + } + + /** + * Optional. Whether the rule queries detections. + * + * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsesDetection($var) + { + GPBUtil::checkBool($var); + $this->uses_detection = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php new file mode 100644 index 000000000000..2b0c1a42587a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest + */ +class InstallFeaturedContentNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The FeaturedContentNativeDashboard to install. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $featured_content_native_dashboard = null; + + /** + * @param string $name Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * Please see {@see FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\InstallFeaturedContentNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @type \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard $featured_content_native_dashboard + * Optional. The FeaturedContentNativeDashboard to install. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The FeaturedContentNativeDashboard to install. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard|null + */ + public function getFeaturedContentNativeDashboard() + { + return $this->featured_content_native_dashboard; + } + + public function hasFeaturedContentNativeDashboard() + { + return isset($this->featured_content_native_dashboard); + } + + public function clearFeaturedContentNativeDashboard() + { + unset($this->featured_content_native_dashboard); + } + + /** + * Optional. The FeaturedContentNativeDashboard to install. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard $var + * @return $this + */ + public function setFeaturedContentNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::class); + $this->featured_content_native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php new file mode 100644 index 000000000000..5571fee0f8fb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse + */ +class InstallFeaturedContentNativeDashboardResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * + * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $native_dashboard = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $native_dashboard + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * + * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + /** + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * + * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkString($var, True); + $this->native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php new file mode 100644 index 000000000000..4f364828a412 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php @@ -0,0 +1,71 @@ +google.cloud.chronicle.v1.Instance + */ +class Instance extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php new file mode 100644 index 000000000000..60f00ada61ce --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php @@ -0,0 +1,70 @@ +google.cloud.chronicle.v1.LanguageFeature + */ +class LanguageFeature +{ + /** + * Language feature is unknown. + * + * Generated from protobuf enum LANGUAGE_FEATURE_UNSPECIFIED = 0; + */ + const LANGUAGE_FEATURE_UNSPECIFIED = 0; + /** + * Language feature is joins. + * + * Generated from protobuf enum JOINS = 1; + */ + const JOINS = 1; + /** + * Language feature is stages. + * + * Generated from protobuf enum STAGES = 2; + */ + const STAGES = 2; + /** + * Language feature is data table. + * + * Generated from protobuf enum DATA_TABLES = 3; + */ + const DATA_TABLES = 3; + + private static $valueToName = [ + self::LANGUAGE_FEATURE_UNSPECIFIED => 'LANGUAGE_FEATURE_UNSPECIFIED', + self::JOINS => 'JOINS', + self::STAGES => 'STAGES', + self::DATA_TABLES => 'DATA_TABLES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php new file mode 100644 index 000000000000..a850d2d49de5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php @@ -0,0 +1,58 @@ +google.cloud.chronicle.v1.LegendAlign + */ +class LegendAlign +{ + /** + * Generated from protobuf enum LEGEND_ALIGN_UNSPECIFIED = 0; + */ + const LEGEND_ALIGN_UNSPECIFIED = 0; + /** + * Generated from protobuf enum AUTO = 1; + */ + const AUTO = 1; + /** + * Generated from protobuf enum LEFT = 2; + */ + const LEFT = 2; + /** + * Generated from protobuf enum RIGHT = 3; + */ + const RIGHT = 3; + + private static $valueToName = [ + self::LEGEND_ALIGN_UNSPECIFIED => 'LEGEND_ALIGN_UNSPECIFIED', + self::AUTO => 'AUTO', + self::LEFT => 'LEFT', + self::RIGHT => 'RIGHT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php new file mode 100644 index 000000000000..4a62d42e57bd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php @@ -0,0 +1,53 @@ +google.cloud.chronicle.v1.LegendOrient + */ +class LegendOrient +{ + /** + * Generated from protobuf enum LEGEND_ORIENT_UNSPECIFIED = 0; + */ + const LEGEND_ORIENT_UNSPECIFIED = 0; + /** + * Generated from protobuf enum VERTICAL = 1; + */ + const VERTICAL = 1; + /** + * Generated from protobuf enum HORIZONTAL = 2; + */ + const HORIZONTAL = 2; + + private static $valueToName = [ + self::LEGEND_ORIENT_UNSPECIFIED => 'LEGEND_ORIENT_UNSPECIFIED', + self::VERTICAL => 'VERTICAL', + self::HORIZONTAL => 'HORIZONTAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php new file mode 100644 index 000000000000..40f14437c42a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php @@ -0,0 +1,220 @@ +google.cloud.chronicle.v1.ListDataAccessLabelsRequest + */ +class ListDataAccessLabelsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataAccessLabelsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php new file mode 100644 index 000000000000..0fb2a491bf5d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListDataAccessLabelsResponse + */ +class ListDataAccessLabelsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data access labels. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; + */ + private $data_access_labels; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessLabel[] $data_access_labels + * List of data access labels. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * List of data access labels. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabel> + */ + public function getDataAccessLabels() + { + return $this->data_access_labels; + } + + /** + * List of data access labels. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel[] $var + * @return $this + */ + public function setDataAccessLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); + $this->data_access_labels = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php new file mode 100644 index 000000000000..54813ad9638e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php @@ -0,0 +1,220 @@ +google.cloud.chronicle.v1.ListDataAccessScopesRequest + */ +class ListDataAccessScopesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataAccessScopesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php new file mode 100644 index 000000000000..fd1d5cd91bc8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php @@ -0,0 +1,149 @@ +google.cloud.chronicle.v1.ListDataAccessScopesResponse + */ +class ListDataAccessScopesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data access scopes. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; + */ + private $data_access_scopes; + /** + * Whether or not global scope is granted to the user. + * + * Generated from protobuf field optional bool global_data_access_scope_granted = 3; + */ + protected $global_data_access_scope_granted = null; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessScope[] $data_access_scopes + * List of data access scopes. + * @type bool $global_data_access_scope_granted + * Whether or not global scope is granted to the user. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * List of data access scopes. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessScope> + */ + public function getDataAccessScopes() + { + return $this->data_access_scopes; + } + + /** + * List of data access scopes. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; + * @param \Google\Cloud\Chronicle\V1\DataAccessScope[] $var + * @return $this + */ + public function setDataAccessScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessScope::class); + $this->data_access_scopes = $arr; + + return $this; + } + + /** + * Whether or not global scope is granted to the user. + * + * Generated from protobuf field optional bool global_data_access_scope_granted = 3; + * @return bool + */ + public function getGlobalDataAccessScopeGranted() + { + return isset($this->global_data_access_scope_granted) ? $this->global_data_access_scope_granted : false; + } + + public function hasGlobalDataAccessScopeGranted() + { + return isset($this->global_data_access_scope_granted); + } + + public function clearGlobalDataAccessScopeGranted() + { + unset($this->global_data_access_scope_granted); + } + + /** + * Whether or not global scope is granted to the user. + * + * Generated from protobuf field optional bool global_data_access_scope_granted = 3; + * @param bool $var + * @return $this + */ + public function setGlobalDataAccessScopeGranted($var) + { + GPBUtil::checkBool($var); + $this->global_data_access_scope_granted = $var; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php new file mode 100644 index 000000000000..3289a1b5e1cc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php @@ -0,0 +1,247 @@ +google.cloud.chronicle.v1.ListDataTableRowsRequest + */ +class ListDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDataTableRows` call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @type int $page_size + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataTableRows` call. + * @type string $order_by + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * @type string $filter + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDataTableRows` call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDataTableRows` call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php new file mode 100644 index 000000000000..7cde914b2a14 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListDataTableRowsResponse + */ +class ListDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of the data table rows returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * The list of the data table rows returned. + * @type string $next_page_token + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * The list of the data table rows returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * The list of the data table rows returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php new file mode 100644 index 000000000000..bb06c76adbf4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php @@ -0,0 +1,220 @@ +google.cloud.chronicle.v1.ListDataTablesRequest + */ +class ListDataTablesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataTablesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type int $page_size + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * @type string $order_by + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php new file mode 100644 index 000000000000..51e7bfc065c6 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListDataTablesResponse + */ +class ListDataTablesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of the data tables returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + private $data_tables; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTable[] $data_tables + * The list of the data tables returned. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * The list of the data tables returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTable> + */ + public function getDataTables() + { + return $this->data_tables; + } + + /** + * The list of the data tables returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + * @param \Google\Cloud\Chronicle\V1\DataTable[] $var + * @return $this + */ + public function setDataTables($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTable::class); + $this->data_tables = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php new file mode 100644 index 000000000000..85bffca5276c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php @@ -0,0 +1,277 @@ +google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest + */ +class ListFeaturedContentNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * Please see {@see FeaturedContentNativeDashboardServiceClient::contentHubName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListFeaturedContentNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * @type int $page_size + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * @type string $filter + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php new file mode 100644 index 000000000000..8258ec2f5485 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php @@ -0,0 +1,109 @@ +google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse + */ +class ListFeaturedContentNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; + */ + private $featured_content_native_dashboards; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard[] $featured_content_native_dashboards + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard> + */ + public function getFeaturedContentNativeDashboards() + { + return $this->featured_content_native_dashboards; + } + + /** + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; + * @param \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard[] $var + * @return $this + */ + public function setFeaturedContentNativeDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::class); + $this->featured_content_native_dashboards = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php new file mode 100644 index 000000000000..19e90d6b59df --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php @@ -0,0 +1,208 @@ +google.cloud.chronicle.v1.ListNativeDashboardsRequest + */ +class ListNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $parent Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type int $page_size + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * @type string $page_token + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * @type int $view + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\NativeDashboardView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php new file mode 100644 index 000000000000..1284ba4e0a82 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListNativeDashboardsResponse + */ +class ListNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The dashboards from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; + */ + private $native_dashboards; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard[] $native_dashboards + * The dashboards from the specified chronicle instance. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The dashboards from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboard> + */ + public function getNativeDashboards() + { + return $this->native_dashboards; + } + + /** + * The dashboards from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard[] $var + * @return $this + */ + public function setNativeDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboards = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php new file mode 100644 index 000000000000..f06a8a98b070 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php @@ -0,0 +1,221 @@ +google.cloud.chronicle.v1.ListReferenceListsRequest + */ +class ListReferenceListsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; + */ + protected $view = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListReferenceListsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * @type int $view + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php new file mode 100644 index 000000000000..9c7b02ac252a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php @@ -0,0 +1,109 @@ +google.cloud.chronicle.v1.ListReferenceListsResponse + */ +class ListReferenceListsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The reference lists. + * Ordered in ascending alphabetical order by name. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; + */ + private $reference_lists; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ReferenceList[] $reference_lists + * The reference lists. + * Ordered in ascending alphabetical order by name. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * The reference lists. + * Ordered in ascending alphabetical order by name. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceList> + */ + public function getReferenceLists() + { + return $this->reference_lists; + } + + /** + * The reference lists. + * Ordered in ascending alphabetical order by name. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; + * @param \Google\Cloud\Chronicle\V1\ReferenceList[] $var + * @return $this + */ + public function setReferenceLists($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceList::class); + $this->reference_lists = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php new file mode 100644 index 000000000000..0fb98bf934cf --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php @@ -0,0 +1,225 @@ +google.cloud.chronicle.v1.ListRetrohuntsRequest + */ +class ListRetrohuntsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRetrohuntsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type int $page_size + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * @type string $filter + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php new file mode 100644 index 000000000000..c4dc57d829af --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRetrohuntsResponse + */ +class ListRetrohuntsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The retrohunts from the specified rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; + */ + private $retrohunts; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Retrohunt[] $retrohunts + * The retrohunts from the specified rule. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The retrohunts from the specified rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Retrohunt> + */ + public function getRetrohunts() + { + return $this->retrohunts; + } + + /** + * The retrohunts from the specified rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; + * @param \Google\Cloud\Chronicle\V1\Retrohunt[] $var + * @return $this + */ + public function setRetrohunts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Retrohunt::class); + $this->retrohunts = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php new file mode 100644 index 000000000000..a9135574e7c7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php @@ -0,0 +1,230 @@ +google.cloud.chronicle.v1.ListRuleDeploymentsRequest + */ +class ListRuleDeploymentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRuleDeploymentsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * @type int $page_size + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * @type string $filter + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php new file mode 100644 index 000000000000..b3057a270969 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRuleDeploymentsResponse + */ +class ListRuleDeploymentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The rule deployments from all rules. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; + */ + private $rule_deployments; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\RuleDeployment[] $rule_deployments + * The rule deployments from all rules. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The rule deployments from all rules. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\RuleDeployment> + */ + public function getRuleDeployments() + { + return $this->rule_deployments; + } + + /** + * The rule deployments from all rules. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; + * @param \Google\Cloud\Chronicle\V1\RuleDeployment[] $var + * @return $this + */ + public function setRuleDeployments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\RuleDeployment::class); + $this->rule_deployments = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php new file mode 100644 index 000000000000..a22efe8c8aff --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php @@ -0,0 +1,221 @@ +google.cloud.chronicle.v1.ListRuleRevisionsRequest + */ +class ListRuleRevisionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + */ + protected $view = 0; + + /** + * @param string $name Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRuleRevisionsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type int $page_size + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * @type int $view + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php new file mode 100644 index 000000000000..9b6fb1ea283d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRuleRevisionsResponse + */ +class ListRuleRevisionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The revisions of the rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + */ + private $rules; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Rule[] $rules + * The revisions of the rule. + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The revisions of the rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * The revisions of the rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @param \Google\Cloud\Chronicle\V1\Rule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rules = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php new file mode 100644 index 000000000000..9a5c5ce2394c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php @@ -0,0 +1,263 @@ +google.cloud.chronicle.v1.ListRulesRequest + */ +class ListRulesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + */ + protected $view = 0; + /** + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * + * Generated from protobuf field string filter = 5; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRulesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * @type int $view + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * @type string $filter + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); + $this->view = $var; + + return $this; + } + + /** + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * + * Generated from protobuf field string filter = 5; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * + * Generated from protobuf field string filter = 5; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php new file mode 100644 index 000000000000..acf552de7aac --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRulesResponse + */ +class ListRulesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The rules from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + */ + private $rules; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Rule[] $rules + * The rules from the specified instance. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The rules from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * The rules from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @param \Google\Cloud\Chronicle\V1\Rule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rules = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php new file mode 100644 index 000000000000..0fef99adc24d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php @@ -0,0 +1,232 @@ +google.cloud.chronicle.v1.ListWatchlistsRequest + */ +class ListWatchlistsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListWatchlistsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * @type string $page_token + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * @type string $filter + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php new file mode 100644 index 000000000000..7c89c05776a3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListWatchlistsResponse + */ +class ListWatchlistsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The watchlists from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $watchlists; + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Watchlist[] $watchlists + * Optional. The watchlists from the specified instance. + * @type string $next_page_token + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The watchlists from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Watchlist> + */ + public function getWatchlists() + { + return $this->watchlists; + } + + /** + * Optional. The watchlists from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Watchlist[] $var + * @return $this + */ + public function setWatchlists($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Watchlist::class); + $this->watchlists = $arr; + + return $this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php new file mode 100644 index 000000000000..9749a826c422 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.Markdown + */ +class Markdown extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Markdown content. + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $content = ''; + /** + * Optional. Properties for the markdown. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $content + * Required. Markdown content. + * @type \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties $properties + * Optional. Properties for the markdown. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Markdown content. + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * Required. Markdown content. + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, True); + $this->content = $var; + + return $this; + } + + /** + * Optional. Properties for the markdown. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. Properties for the markdown. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties::class); + $this->properties = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php new file mode 100644 index 000000000000..d9de9725ab3e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.Markdown.MarkdownProperties + */ +class MarkdownProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Background color of the markdown. + * + * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $background_color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $background_color + * Optional. Background color of the markdown. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Background color of the markdown. + * + * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBackgroundColor() + { + return $this->background_color; + } + + /** + * Optional. Background color of the markdown. + * + * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBackgroundColor($var) + { + GPBUtil::checkString($var, True); + $this->background_color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php new file mode 100644 index 000000000000..cf9521d4e2ea --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.MetricDisplayTrend + */ +class MetricDisplayTrend +{ + /** + * Trend is not specified. + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_UNSPECIFIED = 0; + */ + const METRIC_DISPLAY_TREND_UNSPECIFIED = 0; + /** + * Trend data in absolute value + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_ABSOLUTE_VALUE = 2; + */ + const METRIC_DISPLAY_TREND_ABSOLUTE_VALUE = 2; + /** + * Trend data in percentage + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_PERCENTAGE = 3; + */ + const METRIC_DISPLAY_TREND_PERCENTAGE = 3; + /** + * Trend data in both absolute value and percentage + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE = 4; + */ + const METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE = 4; + + private static $valueToName = [ + self::METRIC_DISPLAY_TREND_UNSPECIFIED => 'METRIC_DISPLAY_TREND_UNSPECIFIED', + self::METRIC_DISPLAY_TREND_ABSOLUTE_VALUE => 'METRIC_DISPLAY_TREND_ABSOLUTE_VALUE', + self::METRIC_DISPLAY_TREND_PERCENTAGE => 'METRIC_DISPLAY_TREND_PERCENTAGE', + self::METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE => 'METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php new file mode 100644 index 000000000000..b7e1c16c9289 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.MetricFormat + */ +class MetricFormat +{ + /** + * Metric format is not specified. + * + * Generated from protobuf enum METRIC_FORMAT_UNSPECIFIED = 0; + */ + const METRIC_FORMAT_UNSPECIFIED = 0; + /** + * Metric format in number + * + * Generated from protobuf enum METRIC_FORMAT_NUMBER = 1; + */ + const METRIC_FORMAT_NUMBER = 1; + /** + * Metric format in plain text + * + * Generated from protobuf enum METRIC_FORMAT_PLAIN_TEXT = 2; + */ + const METRIC_FORMAT_PLAIN_TEXT = 2; + + private static $valueToName = [ + self::METRIC_FORMAT_UNSPECIFIED => 'METRIC_FORMAT_UNSPECIFIED', + self::METRIC_FORMAT_NUMBER => 'METRIC_FORMAT_NUMBER', + self::METRIC_FORMAT_PLAIN_TEXT => 'METRIC_FORMAT_PLAIN_TEXT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php new file mode 100644 index 000000000000..20a0f130035f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.MetricTrendType + */ +class MetricTrendType +{ + /** + * Trend type is not specified. + * + * Generated from protobuf enum METRIC_TREND_TYPE_UNSPECIFIED = 0; + */ + const METRIC_TREND_TYPE_UNSPECIFIED = 0; + /** + * The trend type is regular(green for positive delta) + * + * Generated from protobuf enum METRIC_TREND_TYPE_REGULAR = 1; + */ + const METRIC_TREND_TYPE_REGULAR = 1; + /** + * The trend type is inverse(red for positive delta) + * + * Generated from protobuf enum METRIC_TREND_TYPE_INVERSE = 2; + */ + const METRIC_TREND_TYPE_INVERSE = 2; + + private static $valueToName = [ + self::METRIC_TREND_TYPE_UNSPECIFIED => 'METRIC_TREND_TYPE_UNSPECIFIED', + self::METRIC_TREND_TYPE_REGULAR => 'METRIC_TREND_TYPE_REGULAR', + self::METRIC_TREND_TYPE_INVERSE => 'METRIC_TREND_TYPE_INVERSE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php new file mode 100644 index 000000000000..3968678c6358 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php @@ -0,0 +1,493 @@ +google.cloud.chronicle.v1.NativeDashboard + */ +class NativeDashboard extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the dashboard. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Dashboard display name/title visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of the dashboard. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $definition = null; + /** + * Output only. Whether it's an out of the box or custom created dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Output only. Creation time of dashboard. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time the dashboard was last edited. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. User who created the dashboard. + * + * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_user_id = ''; + /** + * Output only. User who last edited the dashboard. + * + * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_user_id = ''; + /** + * Output only. User Preferences for a dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dashboard_user_data = null; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Output only. Access of the dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the dashboard. + * @type string $display_name + * Required. Dashboard display name/title visible to users. + * @type string $description + * Optional. Description of the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition $definition + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * @type int $type + * Output only. Whether it's an out of the box or custom created dashboard. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Creation time of dashboard. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time the dashboard was last edited. + * @type string $create_user_id + * Output only. User who created the dashboard. + * @type string $update_user_id + * Output only. User who last edited the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardUserData $dashboard_user_data + * Output only. User Preferences for a dashboard + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type int $access + * Output only. Access of the dashboard + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the dashboard. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the dashboard. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Dashboard display name/title visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Dashboard display name/title visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the dashboard. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the dashboard. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardDefinition|null + */ + public function getDefinition() + { + return $this->definition; + } + + public function hasDefinition() + { + return isset($this->definition); + } + + public function clearDefinition() + { + unset($this->definition); + } + + /** + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition $var + * @return $this + */ + public function setDefinition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition::class); + $this->definition = $var; + + return $this; + } + + /** + * Output only. Whether it's an out of the box or custom created dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. Whether it's an out of the box or custom created dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DashboardType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Creation time of dashboard. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Creation time of dashboard. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time the dashboard was last edited. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time the dashboard was last edited. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. User who created the dashboard. + * + * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreateUserId() + { + return $this->create_user_id; + } + + /** + * Output only. User who created the dashboard. + * + * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreateUserId($var) + { + GPBUtil::checkString($var, True); + $this->create_user_id = $var; + + return $this; + } + + /** + * Output only. User who last edited the dashboard. + * + * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUpdateUserId() + { + return $this->update_user_id; + } + + /** + * Output only. User who last edited the dashboard. + * + * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUpdateUserId($var) + { + GPBUtil::checkString($var, True); + $this->update_user_id = $var; + + return $this; + } + + /** + * Output only. User Preferences for a dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\DashboardUserData|null + */ + public function getDashboardUserData() + { + return $this->dashboard_user_data; + } + + public function hasDashboardUserData() + { + return isset($this->dashboard_user_data); + } + + public function clearDashboardUserData() + { + unset($this->dashboard_user_data); + } + + /** + * Output only. User Preferences for a dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\DashboardUserData $var + * @return $this + */ + public function setDashboardUserData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardUserData::class); + $this->dashboard_user_data = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. Access of the dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAccess() + { + return $this->access; + } + + /** + * Output only. Access of the dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAccess($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DashboardAccess::class); + $this->access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php new file mode 100644 index 000000000000..6ca1db683166 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php @@ -0,0 +1,62 @@ +google.cloud.chronicle.v1.NativeDashboardView + */ +class NativeDashboardView +{ + /** + * Defaults to basic. + * + * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_UNSPECIFIED = 0; + */ + const NATIVE_DASHBOARD_VIEW_UNSPECIFIED = 0; + /** + * Include basic metadata about the dashboard without full definition. + * + * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_BASIC = 1; + */ + const NATIVE_DASHBOARD_VIEW_BASIC = 1; + /** + * Include everything. + * + * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_FULL = 2; + */ + const NATIVE_DASHBOARD_VIEW_FULL = 2; + + private static $valueToName = [ + self::NATIVE_DASHBOARD_VIEW_UNSPECIFIED => 'NATIVE_DASHBOARD_VIEW_UNSPECIFIED', + self::NATIVE_DASHBOARD_VIEW_BASIC => 'NATIVE_DASHBOARD_VIEW_BASIC', + self::NATIVE_DASHBOARD_VIEW_FULL => 'NATIVE_DASHBOARD_VIEW_FULL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php new file mode 100644 index 000000000000..aaf937550d17 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php @@ -0,0 +1,145 @@ +google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries + */ +class NativeDashboardWithChartsAndQueries extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Native dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard = null; + /** + * Optional. Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $dashboard_charts; + /** + * Optional. Queries in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $dashboard_queries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $dashboard + * Optional. Native dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardChart[] $dashboard_charts + * Optional. Charts in the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardQuery[] $dashboard_queries + * Optional. Queries in the dashboard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Native dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getDashboard() + { + return $this->dashboard; + } + + public function hasDashboard() + { + return isset($this->dashboard); + } + + public function clearDashboard() + { + unset($this->dashboard); + } + + /** + * Optional. Native dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->dashboard = $var; + + return $this; + } + + /** + * Optional. Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart> + */ + public function getDashboardCharts() + { + return $this->dashboard_charts; + } + + /** + * Optional. Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart[] $var + * @return $this + */ + public function setDashboardCharts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_charts = $arr; + + return $this; + } + + /** + * Optional. Queries in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardQuery> + */ + public function getDashboardQueries() + { + return $this->dashboard_queries; + } + + /** + * Optional. Queries in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery[] $var + * @return $this + */ + public function setDashboardQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->dashboard_queries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php new file mode 100644 index 000000000000..51984fd662c3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.PlotMode + */ +class PlotMode +{ + /** + * Plot mode is not specified. + * + * Generated from protobuf enum PLOT_MODE_UNSPECIFIED = 0; + */ + const PLOT_MODE_UNSPECIFIED = 0; + /** + * Plot mode is points. + * + * Generated from protobuf enum PLOT_MODE_POINTS = 1; + */ + const PLOT_MODE_POINTS = 1; + /** + * Plot mode is heatmap. + * + * Generated from protobuf enum PLOT_MODE_HEATMAP = 2; + */ + const PLOT_MODE_HEATMAP = 2; + /** + * Plot mode is both points and heatmap. + * + * Generated from protobuf enum PLOT_MODE_BOTH = 3; + */ + const PLOT_MODE_BOTH = 3; + + private static $valueToName = [ + self::PLOT_MODE_UNSPECIFIED => 'PLOT_MODE_UNSPECIFIED', + self::PLOT_MODE_POINTS => 'PLOT_MODE_POINTS', + self::PLOT_MODE_HEATMAP => 'PLOT_MODE_HEATMAP', + self::PLOT_MODE_BOTH => 'PLOT_MODE_BOTH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php new file mode 100644 index 000000000000..fae88d764577 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.PointSizeType + */ +class PointSizeType +{ + /** + * Point size is not specified. + * + * Generated from protobuf enum POINT_SIZE_TYPE_UNSPECIFIED = 0; + */ + const POINT_SIZE_TYPE_UNSPECIFIED = 0; + /** + * Point size is fixed. + * + * Generated from protobuf enum POINT_SIZE_TYPE_FIXED = 1; + */ + const POINT_SIZE_TYPE_FIXED = 1; + /** + * Point size is proportional to the size of the data point. + * + * Generated from protobuf enum POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE = 2; + */ + const POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE = 2; + + private static $valueToName = [ + self::POINT_SIZE_TYPE_UNSPECIFIED => 'POINT_SIZE_TYPE_UNSPECIFIED', + self::POINT_SIZE_TYPE_FIXED => 'POINT_SIZE_TYPE_FIXED', + self::POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE => 'POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php new file mode 100644 index 000000000000..032140db1d4e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php @@ -0,0 +1,203 @@ +google.cloud.chronicle.v1.QueryRuntimeError + */ +class QueryRuntimeError extends \Google\Protobuf\Internal\Message +{ + /** + * Short Description of the error. + * + * Generated from protobuf field string error_title = 1; + */ + protected $error_title = ''; + /** + * Error message + * + * Generated from protobuf field string error_description = 2; + */ + protected $error_description = ''; + /** + * Severity of the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; + */ + protected $error_severity = 0; + /** + * Metadata for the error. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; + */ + private $metadata; + /** + * Reason for the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; + */ + protected $warning_reason = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $error_title + * Short Description of the error. + * @type string $error_description + * Error message + * @type int $error_severity + * Severity of the error. + * @type \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata[] $metadata + * Metadata for the error. + * @type int $warning_reason + * Reason for the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Short Description of the error. + * + * Generated from protobuf field string error_title = 1; + * @return string + */ + public function getErrorTitle() + { + return $this->error_title; + } + + /** + * Short Description of the error. + * + * Generated from protobuf field string error_title = 1; + * @param string $var + * @return $this + */ + public function setErrorTitle($var) + { + GPBUtil::checkString($var, True); + $this->error_title = $var; + + return $this; + } + + /** + * Error message + * + * Generated from protobuf field string error_description = 2; + * @return string + */ + public function getErrorDescription() + { + return $this->error_description; + } + + /** + * Error message + * + * Generated from protobuf field string error_description = 2; + * @param string $var + * @return $this + */ + public function setErrorDescription($var) + { + GPBUtil::checkString($var, True); + $this->error_description = $var; + + return $this; + } + + /** + * Severity of the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; + * @return int + */ + public function getErrorSeverity() + { + return $this->error_severity; + } + + /** + * Severity of the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; + * @param int $var + * @return $this + */ + public function setErrorSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\ErrorSeverity::class); + $this->error_severity = $var; + + return $this; + } + + /** + * Metadata for the error. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata> + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Metadata for the error. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; + * @param \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata[] $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata::class); + $this->metadata = $arr; + + return $this; + } + + /** + * Reason for the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; + * @return int + */ + public function getWarningReason() + { + return $this->warning_reason; + } + + /** + * Reason for the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; + * @param int $var + * @return $this + */ + public function setWarningReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\WarningReason::class); + $this->warning_reason = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php new file mode 100644 index 000000000000..3b79186ecf3b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity + */ +class ErrorSeverity +{ + /** + * Severity is unknown. + * + * Generated from protobuf enum ERROR_SEVERITY_UNSPECIFIED = 0; + */ + const ERROR_SEVERITY_UNSPECIFIED = 0; + /** + * Severity is warning. + * + * Generated from protobuf enum WARNING = 1; + */ + const WARNING = 1; + /** + * Error is severe. + * + * Generated from protobuf enum SEVERE = 2; + */ + const SEVERE = 2; + + private static $valueToName = [ + self::ERROR_SEVERITY_UNSPECIFIED => 'ERROR_SEVERITY_UNSPECIFIED', + self::WARNING => 'WARNING', + self::SEVERE => 'SEVERE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php new file mode 100644 index 000000000000..aba7c3c6faf9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php @@ -0,0 +1,54 @@ +google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey + */ +class MetadataKey +{ + /** + * Key is unknown. + * + * Generated from protobuf enum METADATA_KEY_UNSPECIFIED = 0; + */ + const METADATA_KEY_UNSPECIFIED = 0; + /** + * Key is row limit. + * + * Generated from protobuf enum ROW_LIMIT = 1; + */ + const ROW_LIMIT = 1; + + private static $valueToName = [ + self::METADATA_KEY_UNSPECIFIED => 'METADATA_KEY_UNSPECIFIED', + self::ROW_LIMIT => 'ROW_LIMIT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php new file mode 100644 index 000000000000..fcf2088ace2a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata + */ +class QueryRuntimeErrorMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Metadata key. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; + */ + protected $key = 0; + /** + * Metadata value. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $key + * Metadata key. + * @type string $value + * Metadata value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Metadata key. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; + * @return int + */ + public function getKey() + { + return $this->key; + } + + /** + * Metadata key. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; + * @param int $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\MetadataKey::class); + $this->key = $var; + + return $this; + } + + /** + * Metadata value. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Metadata value. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php new file mode 100644 index 000000000000..3caba628f773 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.QueryRuntimeError.WarningReason + */ +class WarningReason +{ + /** + * Reason is unknown. + * + * Generated from protobuf enum WARNING_REASON_UNSPECIFIED = 0; + */ + const WARNING_REASON_UNSPECIFIED = 0; + /** + * Reason is row limit exceeded. + * + * Generated from protobuf enum ROW_LIMIT_EXCEEDED = 1; + */ + const ROW_LIMIT_EXCEEDED = 1; + /** + * Reason is default row limit exceeded. + * + * Generated from protobuf enum DEFAULT_ROW_LIMIT_EXCEEDED = 2; + */ + const DEFAULT_ROW_LIMIT_EXCEEDED = 2; + /** + * Reason is curated query default row limit exceeded. + * + * Generated from protobuf enum CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED = 3; + */ + const CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED = 3; + + private static $valueToName = [ + self::WARNING_REASON_UNSPECIFIED => 'WARNING_REASON_UNSPECIFIED', + self::ROW_LIMIT_EXCEEDED => 'ROW_LIMIT_EXCEEDED', + self::DEFAULT_ROW_LIMIT_EXCEEDED => 'DEFAULT_ROW_LIMIT_EXCEEDED', + self::CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED => 'CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php new file mode 100644 index 000000000000..fa290dd6040a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php @@ -0,0 +1,409 @@ +google.cloud.chronicle.v1.ReferenceList + */ +class ReferenceList extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The unique display name of the reference list. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The timestamp when the reference list was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_create_time = null; + /** + * Required. A user-provided description of the reference list. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = ''; + /** + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + private $entries; + /** + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $rules; + /** + * Required. The syntax type indicating how list entries should be validated. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $syntax_type = 0; + /** + * Output only. The count of self-authored rules using the reference list. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_associations_count = 0; + /** + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; + */ + protected $scope_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * @type string $display_name + * Output only. The unique display name of the reference list. + * @type \Google\Protobuf\Timestamp $revision_create_time + * Output only. The timestamp when the reference list was last updated. + * @type string $description + * Required. A user-provided description of the reference list. + * @type \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $entries + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * @type string[] $rules + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * @type int $syntax_type + * Required. The syntax type indicating how list entries should be validated. + * @type int $rule_associations_count + * Output only. The count of self-authored rules using the reference list. + * @type \Google\Cloud\Chronicle\V1\ScopeInfo $scope_info + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The unique display name of the reference list. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The unique display name of the reference list. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The timestamp when the reference list was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRevisionCreateTime() + { + return $this->revision_create_time; + } + + public function hasRevisionCreateTime() + { + return isset($this->revision_create_time); + } + + public function clearRevisionCreateTime() + { + unset($this->revision_create_time); + } + + /** + * Output only. The timestamp when the reference list was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRevisionCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->revision_create_time = $var; + + return $this; + } + + /** + * Required. A user-provided description of the reference list. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Required. A user-provided description of the reference list. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceListEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceListEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getRules() + { + return $this->rules; + } + + /** + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->rules = $arr; + + return $this; + } + + /** + * Required. The syntax type indicating how list entries should be validated. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getSyntaxType() + { + return $this->syntax_type; + } + + /** + * Required. The syntax type indicating how list entries should be validated. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setSyntaxType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListSyntaxType::class); + $this->syntax_type = $var; + + return $this; + } + + /** + * Output only. The count of self-authored rules using the reference list. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRuleAssociationsCount() + { + return $this->rule_associations_count; + } + + /** + * Output only. The count of self-authored rules using the reference list. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRuleAssociationsCount($var) + { + GPBUtil::checkInt32($var); + $this->rule_associations_count = $var; + + return $this; + } + + /** + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; + * @return \Google\Cloud\Chronicle\V1\ScopeInfo|null + */ + public function getScopeInfo() + { + return $this->scope_info; + } + + public function hasScopeInfo() + { + return isset($this->scope_info); + } + + public function clearScopeInfo() + { + unset($this->scope_info); + } + + /** + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; + * @param \Google\Cloud\Chronicle\V1\ScopeInfo $var + * @return $this + */ + public function setScopeInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ScopeInfo::class); + $this->scope_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php new file mode 100644 index 000000000000..09d9360018ce --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.ReferenceListEntry + */ +class ReferenceListEntry extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The value of the entry. Maximum length is 512 characters. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * Required. The value of the entry. Maximum length is 512 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The value of the entry. Maximum length is 512 characters. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The value of the entry. Maximum length is 512 characters. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php new file mode 100644 index 000000000000..56675595cb8a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.ReferenceListScope + */ +class ReferenceListScope extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * + * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $scope_names; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $scope_names + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * + * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getScopeNames() + { + return $this->scope_names; + } + + /** + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * + * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setScopeNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->scope_names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php new file mode 100644 index 000000000000..1cc19918caec --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.ReferenceListSyntaxType + */ +class ReferenceListSyntaxType +{ + /** + * Defaults to REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; + */ + const REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; + /** + * List contains plain text patterns. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; + */ + const REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; + /** + * List contains only Regular Expression patterns. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; + */ + const REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; + /** + * List contains only CIDR patterns. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; + */ + const REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; + + private static $valueToName = [ + self::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED => 'REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED', + self::REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING => 'REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING', + self::REFERENCE_LIST_SYNTAX_TYPE_REGEX => 'REFERENCE_LIST_SYNTAX_TYPE_REGEX', + self::REFERENCE_LIST_SYNTAX_TYPE_CIDR => 'REFERENCE_LIST_SYNTAX_TYPE_CIDR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php new file mode 100644 index 000000000000..78d29ab7d594 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.ReferenceListView + */ +class ReferenceListView +{ + /** + * The default / unset value. + * The API will default to the BASIC view for ListReferenceLists. + * The API will default to the FULL view for methods that return a single + * ReferenceList resource. + * + * Generated from protobuf enum REFERENCE_LIST_VIEW_UNSPECIFIED = 0; + */ + const REFERENCE_LIST_VIEW_UNSPECIFIED = 0; + /** + * Include metadata about the ReferenceList. + * This is the default view for ListReferenceLists. + * + * Generated from protobuf enum REFERENCE_LIST_VIEW_BASIC = 1; + */ + const REFERENCE_LIST_VIEW_BASIC = 1; + /** + * Include all details about the ReferenceList: metadata, content lines, + * associated rule counts. This is the default view for GetReferenceList. + * + * Generated from protobuf enum REFERENCE_LIST_VIEW_FULL = 2; + */ + const REFERENCE_LIST_VIEW_FULL = 2; + + private static $valueToName = [ + self::REFERENCE_LIST_VIEW_UNSPECIFIED => 'REFERENCE_LIST_VIEW_UNSPECIFIED', + self::REFERENCE_LIST_VIEW_BASIC => 'REFERENCE_LIST_VIEW_BASIC', + self::REFERENCE_LIST_VIEW_FULL => 'REFERENCE_LIST_VIEW_FULL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php new file mode 100644 index 000000000000..ddf1a53ca080 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php @@ -0,0 +1,125 @@ +google.cloud.chronicle.v1.RemoveChartRequest + */ +class RemoveChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The dashboard chart name to remove. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + + /** + * @param string $name Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\RemoveChartRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type string $dashboard_chart + * Required. The dashboard chart name to remove. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The dashboard chart name to remove. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Required. The dashboard chart name to remove. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php new file mode 100644 index 000000000000..359a3507de25 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.RenderType + */ +class RenderType +{ + /** + * Defaults to Unspecified. + * + * Generated from protobuf enum RENDER_TYPE_UNSPECIFIED = 0; + */ + const RENDER_TYPE_UNSPECIFIED = 0; + /** + * Text render type. + * + * Generated from protobuf enum RENDER_TYPE_TEXT = 1; + */ + const RENDER_TYPE_TEXT = 1; + /** + * Icon render type. + * + * Generated from protobuf enum RENDER_TYPE_ICON = 2; + */ + const RENDER_TYPE_ICON = 2; + /** + * Icon and text render type. + * + * Generated from protobuf enum RENDER_TYPE_ICON_AND_TEXT = 3; + */ + const RENDER_TYPE_ICON_AND_TEXT = 3; + + private static $valueToName = [ + self::RENDER_TYPE_UNSPECIFIED => 'RENDER_TYPE_UNSPECIFIED', + self::RENDER_TYPE_TEXT => 'RENDER_TYPE_TEXT', + self::RENDER_TYPE_ICON => 'RENDER_TYPE_ICON', + self::RENDER_TYPE_ICON_AND_TEXT => 'RENDER_TYPE_ICON_AND_TEXT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php new file mode 100644 index 000000000000..39703c9069fd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php @@ -0,0 +1,255 @@ +google.cloud.chronicle.v1.Retrohunt + */ +class Retrohunt extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The start and end time of the event time range this retrohunt + * processes. + * + * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $process_interval = null; + /** + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * + * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_interval = null; + /** + * Output only. The state of the retrohunt. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $progress_percentage = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * @type \Google\Type\Interval $process_interval + * Required. The start and end time of the event time range this retrohunt + * processes. + * @type \Google\Type\Interval $execution_interval + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * @type int $state + * Output only. The state of the retrohunt. + * @type float $progress_percentage + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The start and end time of the event time range this retrohunt + * processes. + * + * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Interval|null + */ + public function getProcessInterval() + { + return $this->process_interval; + } + + public function hasProcessInterval() + { + return isset($this->process_interval); + } + + public function clearProcessInterval() + { + unset($this->process_interval); + } + + /** + * Required. The start and end time of the event time range this retrohunt + * processes. + * + * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setProcessInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->process_interval = $var; + + return $this; + } + + /** + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * + * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getExecutionInterval() + { + return $this->execution_interval; + } + + public function hasExecutionInterval() + { + return isset($this->execution_interval); + } + + public function clearExecutionInterval() + { + unset($this->execution_interval); + } + + /** + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * + * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setExecutionInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->execution_interval = $var; + + return $this; + } + + /** + * Output only. The state of the retrohunt. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The state of the retrohunt. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Retrohunt\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getProgressPercentage() + { + return $this->progress_percentage; + } + + /** + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setProgressPercentage($var) + { + GPBUtil::checkFloat($var); + $this->progress_percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php new file mode 100644 index 000000000000..0c54a8ff495c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.Retrohunt.State + */ +class State +{ + /** + * Unspecified or unknown retrohunt state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Running state. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * Done state. + * + * Generated from protobuf enum DONE = 2; + */ + const DONE = 2; + /** + * Cancelled state. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + /** + * Failed state. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + self::CANCELLED => 'CANCELLED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php new file mode 100644 index 000000000000..87deefb9bb2e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php @@ -0,0 +1,157 @@ +google.cloud.chronicle.v1.RetrohuntMetadata + */ +class RetrohuntMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { + */ + protected $retrohunt = ''; + /** + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * + * Generated from protobuf field .google.type.Interval execution_interval = 2; + */ + protected $execution_interval = null; + /** + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 3; + */ + protected $progress_percentage = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $retrohunt + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * @type \Google\Type\Interval $execution_interval + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * @type float $progress_percentage + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getRetrohunt() + { + return $this->retrohunt; + } + + /** + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRetrohunt($var) + { + GPBUtil::checkString($var, True); + $this->retrohunt = $var; + + return $this; + } + + /** + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * + * Generated from protobuf field .google.type.Interval execution_interval = 2; + * @return \Google\Type\Interval|null + */ + public function getExecutionInterval() + { + return $this->execution_interval; + } + + public function hasExecutionInterval() + { + return isset($this->execution_interval); + } + + public function clearExecutionInterval() + { + unset($this->execution_interval); + } + + /** + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * + * Generated from protobuf field .google.type.Interval execution_interval = 2; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setExecutionInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->execution_interval = $var; + + return $this; + } + + /** + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 3; + * @return float + */ + public function getProgressPercentage() + { + return $this->progress_percentage; + } + + /** + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 3; + * @param float $var + * @return $this + */ + public function setProgressPercentage($var) + { + GPBUtil::checkFloat($var); + $this->progress_percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php new file mode 100644 index 000000000000..d1fced9182be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php @@ -0,0 +1,810 @@ +google.cloud.chronicle.v1.Rule + */ +class Rule extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * + * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_id = ''; + /** + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * The YARA-L content of the rule. + * Populated in FULL view. + * + * Generated from protobuf field string text = 4; + */ + protected $text = ''; + /** + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $severity = null; + /** + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * + * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $metadata; + /** + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_create_time = null; + /** + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compilation_state = 0; + /** + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * + * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $reference_lists; + /** + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $allowed_run_frequencies; + /** + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string etag = 15; + */ + protected $etag = ''; + /** + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * + * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { + */ + protected $scope = ''; + /** + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $compilation_diagnostics; + /** + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * + * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $near_real_time_live_rule_eligible = false; + /** + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $inputs_used = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type string $revision_id + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * @type string $display_name + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * @type string $text + * The YARA-L content of the rule. + * Populated in FULL view. + * @type string $author + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * @type \Google\Cloud\Chronicle\V1\Severity $severity + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * @type \Google\Protobuf\Timestamp $revision_create_time + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * @type int $compilation_state + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * @type int $type + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * @type string[] $reference_lists + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * @type int[] $allowed_run_frequencies + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * @type string $etag + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * @type string $scope + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * @type \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $compilation_diagnostics + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * @type bool $near_real_time_live_rule_eligible + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * @type \Google\Cloud\Chronicle\V1\InputsUsed $inputs_used + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * + * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRevisionId() + { + return $this->revision_id; + } + + /** + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * + * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRevisionId($var) + { + GPBUtil::checkString($var, True); + $this->revision_id = $var; + + return $this; + } + + /** + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The YARA-L content of the rule. + * Populated in FULL view. + * + * Generated from protobuf field string text = 4; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The YARA-L content of the rule. + * Populated in FULL view. + * + * Generated from protobuf field string text = 4; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\Severity|null + */ + public function getSeverity() + { + return $this->severity; + } + + public function hasSeverity() + { + return isset($this->severity); + } + + public function clearSeverity() + { + unset($this->severity); + } + + /** + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\Severity $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * + * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * + * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata = $arr; + + return $this; + } + + /** + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRevisionCreateTime() + { + return $this->revision_create_time; + } + + public function hasRevisionCreateTime() + { + return isset($this->revision_create_time); + } + + public function clearRevisionCreateTime() + { + unset($this->revision_create_time); + } + + /** + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRevisionCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->revision_create_time = $var; + + return $this; + } + + /** + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompilationState() + { + return $this->compilation_state; + } + + /** + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompilationState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Rule\CompilationState::class); + $this->compilation_state = $var; + + return $this; + } + + /** + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * + * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getReferenceLists() + { + return $this->reference_lists; + } + + /** + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * + * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setReferenceLists($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->reference_lists = $arr; + + return $this; + } + + /** + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getAllowedRunFrequencies() + { + return $this->allowed_run_frequencies; + } + + /** + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setAllowedRunFrequencies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\RunFrequency::class); + $this->allowed_run_frequencies = $arr; + + return $this; + } + + /** + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string etag = 15; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string etag = 15; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * + * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { + * @return string + */ + public function getScope() + { + return $this->scope; + } + + /** + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * + * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkString($var, True); + $this->scope = $var; + + return $this; + } + + /** + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\CompilationDiagnostic> + */ + public function getCompilationDiagnostics() + { + return $this->compilation_diagnostics; + } + + /** + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $var + * @return $this + */ + public function setCompilationDiagnostics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CompilationDiagnostic::class); + $this->compilation_diagnostics = $arr; + + return $this; + } + + /** + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * + * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getNearRealTimeLiveRuleEligible() + { + return $this->near_real_time_live_rule_eligible; + } + + /** + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * + * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setNearRealTimeLiveRuleEligible($var) + { + GPBUtil::checkBool($var); + $this->near_real_time_live_rule_eligible = $var; + + return $this; + } + + /** + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\InputsUsed|null + */ + public function getInputsUsed() + { + return $this->inputs_used; + } + + public function hasInputsUsed() + { + return isset($this->inputs_used); + } + + public function clearInputsUsed() + { + unset($this->inputs_used); + } + + /** + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\InputsUsed $var + * @return $this + */ + public function setInputsUsed($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\InputsUsed::class); + $this->inputs_used = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php new file mode 100644 index 000000000000..fde2594a8645 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php @@ -0,0 +1,63 @@ +google.cloud.chronicle.v1.Rule.CompilationState + */ +class CompilationState +{ + /** + * The compilation state is unspecified/unknown. + * + * Generated from protobuf enum COMPILATION_STATE_UNSPECIFIED = 0; + */ + const COMPILATION_STATE_UNSPECIFIED = 0; + /** + * The Rule can successfully compile. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The Rule cannot successfully compile. + * This is possible if a backwards-incompatible change was made to the + * compiler. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + + private static $valueToName = [ + self::COMPILATION_STATE_UNSPECIFIED => 'COMPILATION_STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php new file mode 100644 index 000000000000..59c5d3f3033c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php @@ -0,0 +1,477 @@ +google.cloud.chronicle.v1.RuleDeployment + */ +class RuleDeployment extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Whether the rule is currently deployed continuously against incoming data. + * + * Generated from protobuf field bool enabled = 2; + */ + protected $enabled = false; + /** + * Whether detections resulting from this deployment should be considered + * alerts. + * + * Generated from protobuf field bool alerting = 3; + */ + protected $alerting = false; + /** + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * + * Generated from protobuf field bool archived = 4; + */ + protected $archived = false; + /** + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $archive_time = null; + /** + * The run frequency of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; + */ + protected $run_frequency = 0; + /** + * Output only. The execution state of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_state = 0; + /** + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $producer_rules; + /** + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $consumer_rules; + /** + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * + * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_alert_status_change_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * @type bool $enabled + * Whether the rule is currently deployed continuously against incoming data. + * @type bool $alerting + * Whether detections resulting from this deployment should be considered + * alerts. + * @type bool $archived + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * @type \Google\Protobuf\Timestamp $archive_time + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * @type int $run_frequency + * The run frequency of the rule deployment. + * @type int $execution_state + * Output only. The execution state of the rule deployment. + * @type string[] $producer_rules + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type string[] $consumer_rules + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type \Google\Protobuf\Timestamp $last_alert_status_change_time + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Whether the rule is currently deployed continuously against incoming data. + * + * Generated from protobuf field bool enabled = 2; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the rule is currently deployed continuously against incoming data. + * + * Generated from protobuf field bool enabled = 2; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Whether detections resulting from this deployment should be considered + * alerts. + * + * Generated from protobuf field bool alerting = 3; + * @return bool + */ + public function getAlerting() + { + return $this->alerting; + } + + /** + * Whether detections resulting from this deployment should be considered + * alerts. + * + * Generated from protobuf field bool alerting = 3; + * @param bool $var + * @return $this + */ + public function setAlerting($var) + { + GPBUtil::checkBool($var); + $this->alerting = $var; + + return $this; + } + + /** + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * + * Generated from protobuf field bool archived = 4; + * @return bool + */ + public function getArchived() + { + return $this->archived; + } + + /** + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * + * Generated from protobuf field bool archived = 4; + * @param bool $var + * @return $this + */ + public function setArchived($var) + { + GPBUtil::checkBool($var); + $this->archived = $var; + + return $this; + } + + /** + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getArchiveTime() + { + return $this->archive_time; + } + + public function hasArchiveTime() + { + return isset($this->archive_time); + } + + public function clearArchiveTime() + { + unset($this->archive_time); + } + + /** + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setArchiveTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->archive_time = $var; + + return $this; + } + + /** + * The run frequency of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; + * @return int + */ + public function getRunFrequency() + { + return $this->run_frequency; + } + + /** + * The run frequency of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; + * @param int $var + * @return $this + */ + public function setRunFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RunFrequency::class); + $this->run_frequency = $var; + + return $this; + } + + /** + * Output only. The execution state of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getExecutionState() + { + return $this->execution_state; + } + + /** + * Output only. The execution state of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setExecutionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleDeployment\ExecutionState::class); + $this->execution_state = $var; + + return $this; + } + + /** + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getProducerRules() + { + return $this->producer_rules; + } + + /** + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setProducerRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->producer_rules = $arr; + + return $this; + } + + /** + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getConsumerRules() + { + return $this->consumer_rules; + } + + /** + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setConsumerRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->consumer_rules = $arr; + + return $this; + } + + /** + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * + * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastAlertStatusChangeTime() + { + return $this->last_alert_status_change_time; + } + + public function hasLastAlertStatusChangeTime() + { + return isset($this->last_alert_status_change_time); + } + + public function clearLastAlertStatusChangeTime() + { + unset($this->last_alert_status_change_time); + } + + /** + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * + * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastAlertStatusChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_alert_status_change_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php new file mode 100644 index 000000000000..c942861abbcc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php @@ -0,0 +1,72 @@ +google.cloud.chronicle.v1.RuleDeployment.ExecutionState + */ +class ExecutionState +{ + /** + * Unspecified or unknown execution state. + * + * Generated from protobuf enum EXECUTION_STATE_UNSPECIFIED = 0; + */ + const EXECUTION_STATE_UNSPECIFIED = 0; + /** + * Default execution state. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * Rules in limited state may not have their executions guaranteed. + * + * Generated from protobuf enum LIMITED = 2; + */ + const LIMITED = 2; + /** + * Paused rules are not executed at all. + * + * Generated from protobuf enum PAUSED = 3; + */ + const PAUSED = 3; + + private static $valueToName = [ + self::EXECUTION_STATE_UNSPECIFIED => 'EXECUTION_STATE_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + self::LIMITED => 'LIMITED', + self::PAUSED => 'PAUSED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php new file mode 100644 index 000000000000..fd4d0dbae098 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php @@ -0,0 +1,62 @@ +google.cloud.chronicle.v1.RuleType + */ +class RuleType +{ + /** + * The rule type is unspecified/unknown. + * + * Generated from protobuf enum RULE_TYPE_UNSPECIFIED = 0; + */ + const RULE_TYPE_UNSPECIFIED = 0; + /** + * Rule checks for the existence of a single event. + * + * Generated from protobuf enum SINGLE_EVENT = 1; + */ + const SINGLE_EVENT = 1; + /** + * Rule checks for correlation between multiple events + * + * Generated from protobuf enum MULTI_EVENT = 2; + */ + const MULTI_EVENT = 2; + + private static $valueToName = [ + self::RULE_TYPE_UNSPECIFIED => 'RULE_TYPE_UNSPECIFIED', + self::SINGLE_EVENT => 'SINGLE_EVENT', + self::MULTI_EVENT => 'MULTI_EVENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php new file mode 100644 index 000000000000..a79782aed652 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php @@ -0,0 +1,77 @@ +google.cloud.chronicle.v1.RuleView + */ +class RuleView +{ + /** + * The default/unset value. + * The API will default to the BASIC view for ListRules/ListRuleRevisions. + * The API will default to the FULL view for GetRule. + * + * Generated from protobuf enum RULE_VIEW_UNSPECIFIED = 0; + */ + const RULE_VIEW_UNSPECIFIED = 0; + /** + * Include basic metadata about the rule, but not the full contents. + * Returned fields include: revision_id, revision_create_time, display_name, + * author, severity, type, allowed_run_frequency, + * near_real_time_live_rule_eligible, etag, and scope. + * This is the default value for ListRules and ListRuleRevisions. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Include all fields. + * This is the default value for GetRule. + * + * Generated from protobuf enum FULL = 2; + */ + const FULL = 2; + /** + * Include basic metadata about the rule's revision only. + * Returned fields include: revision_id and revision_create_time. + * + * Generated from protobuf enum REVISION_METADATA_ONLY = 3; + */ + const REVISION_METADATA_ONLY = 3; + + private static $valueToName = [ + self::RULE_VIEW_UNSPECIFIED => 'RULE_VIEW_UNSPECIFIED', + self::BASIC => 'BASIC', + self::FULL => 'FULL', + self::REVISION_METADATA_ONLY => 'REVISION_METADATA_ONLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php new file mode 100644 index 000000000000..0540b9c3cfd8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php @@ -0,0 +1,69 @@ +google.cloud.chronicle.v1.RunFrequency + */ +class RunFrequency +{ + /** + * The run frequency is unspecified/unknown. + * + * Generated from protobuf enum RUN_FREQUENCY_UNSPECIFIED = 0; + */ + const RUN_FREQUENCY_UNSPECIFIED = 0; + /** + * Executes in real time. + * + * Generated from protobuf enum LIVE = 1; + */ + const LIVE = 1; + /** + * Executes once per hour. + * + * Generated from protobuf enum HOURLY = 2; + */ + const HOURLY = 2; + /** + * Executes once per day. + * + * Generated from protobuf enum DAILY = 3; + */ + const DAILY = 3; + + private static $valueToName = [ + self::RUN_FREQUENCY_UNSPECIFIED => 'RUN_FREQUENCY_UNSPECIFIED', + self::LIVE => 'LIVE', + self::HOURLY => 'HOURLY', + self::DAILY => 'DAILY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php new file mode 100644 index 000000000000..69d47b86337b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php @@ -0,0 +1,81 @@ +google.cloud.chronicle.v1.ScopeInfo + */ +class ScopeInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list_scope = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ReferenceListScope $reference_list_scope + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ReferenceListScope|null + */ + public function getReferenceListScope() + { + return $this->reference_list_scope; + } + + public function hasReferenceListScope() + { + return isset($this->reference_list_scope); + } + + public function clearReferenceListScope() + { + unset($this->reference_list_scope); + } + + /** + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceListScope $var + * @return $this + */ + public function setReferenceListScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceListScope::class); + $this->reference_list_scope = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php new file mode 100644 index 000000000000..74f6af984bfe --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php @@ -0,0 +1,63 @@ +google.cloud.chronicle.v1.SeriesStackStrategy + */ +class SeriesStackStrategy +{ + /** + * Generated from protobuf enum SERIES_STACK_STRATEGY_UNSPECIFIED = 0; + */ + const SERIES_STACK_STRATEGY_UNSPECIFIED = 0; + /** + * Generated from protobuf enum SAMESIGN = 1; + */ + const SAMESIGN = 1; + /** + * Generated from protobuf enum ALL = 2; + */ + const ALL = 2; + /** + * Generated from protobuf enum POSITIVE = 3; + */ + const POSITIVE = 3; + /** + * Generated from protobuf enum NEGATIVE = 4; + */ + const NEGATIVE = 4; + + private static $valueToName = [ + self::SERIES_STACK_STRATEGY_UNSPECIFIED => 'SERIES_STACK_STRATEGY_UNSPECIFIED', + self::SAMESIGN => 'SAMESIGN', + self::ALL => 'ALL', + self::POSITIVE => 'POSITIVE', + self::NEGATIVE => 'NEGATIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php new file mode 100644 index 000000000000..7bb8e3e0dc63 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php @@ -0,0 +1,84 @@ +google.cloud.chronicle.v1.SeriesType + */ +class SeriesType +{ + /** + * Generated from protobuf enum SERIES_TYPE_UNSPECIFIED = 0; + */ + const SERIES_TYPE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum LINE = 1; + */ + const LINE = 1; + /** + * Generated from protobuf enum BAR = 2; + */ + const BAR = 2; + /** + * Generated from protobuf enum PIE = 3; + */ + const PIE = 3; + /** + * Generated from protobuf enum TEXT = 4; + */ + const TEXT = 4; + /** + * Represents map chart type. + * + * Generated from protobuf enum MAP = 5; + */ + const MAP = 5; + /** + * Represents gauge chart type. + * + * Generated from protobuf enum GAUGE = 6; + */ + const GAUGE = 6; + /** + * Represents scatterplot chart type. + * + * Generated from protobuf enum SCATTERPLOT = 7; + */ + const SCATTERPLOT = 7; + + private static $valueToName = [ + self::SERIES_TYPE_UNSPECIFIED => 'SERIES_TYPE_UNSPECIFIED', + self::LINE => 'LINE', + self::BAR => 'BAR', + self::PIE => 'PIE', + self::TEXT => 'TEXT', + self::MAP => 'MAP', + self::GAUGE => 'GAUGE', + self::SCATTERPLOT => 'SCATTERPLOT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php new file mode 100644 index 000000000000..8d2c048917ac --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php @@ -0,0 +1,71 @@ +google.cloud.chronicle.v1.Severity + */ +class Severity extends \Google\Protobuf\Internal\Message +{ + /** + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php new file mode 100644 index 000000000000..63e868885a31 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php @@ -0,0 +1,69 @@ +google.cloud.chronicle.v1.TileType + */ +class TileType +{ + /** + * Defaults to VISUALIZATION. + * + * Generated from protobuf enum TILE_TYPE_UNSPECIFIED = 0; + */ + const TILE_TYPE_UNSPECIFIED = 0; + /** + * Visualization i.e., bar charts, pie charts etc. + * + * Generated from protobuf enum TILE_TYPE_VISUALIZATION = 1; + */ + const TILE_TYPE_VISUALIZATION = 1; + /** + * Button with hyperlink. + * + * Generated from protobuf enum TILE_TYPE_BUTTON = 2; + */ + const TILE_TYPE_BUTTON = 2; + /** + * Markdown tile. + * + * Generated from protobuf enum TILE_TYPE_MARKDOWN = 3; + */ + const TILE_TYPE_MARKDOWN = 3; + + private static $valueToName = [ + self::TILE_TYPE_UNSPECIFIED => 'TILE_TYPE_UNSPECIFIED', + self::TILE_TYPE_VISUALIZATION => 'TILE_TYPE_VISUALIZATION', + self::TILE_TYPE_BUTTON => 'TILE_TYPE_BUTTON', + self::TILE_TYPE_MARKDOWN => 'TILE_TYPE_MARKDOWN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php new file mode 100644 index 000000000000..e7f6968ce5e3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php @@ -0,0 +1,82 @@ +google.cloud.chronicle.v1.TimeUnit + */ +class TimeUnit +{ + /** + * Default unspecified. + * + * Generated from protobuf enum TIME_UNIT_UNSPECIFIED = 0; + */ + const TIME_UNIT_UNSPECIFIED = 0; + /** + * Generated from protobuf enum SECOND = 1; + */ + const SECOND = 1; + /** + * Generated from protobuf enum MINUTE = 2; + */ + const MINUTE = 2; + /** + * Generated from protobuf enum HOUR = 3; + */ + const HOUR = 3; + /** + * Generated from protobuf enum DAY = 4; + */ + const DAY = 4; + /** + * Generated from protobuf enum WEEK = 5; + */ + const WEEK = 5; + /** + * Generated from protobuf enum MONTH = 6; + */ + const MONTH = 6; + /** + * Generated from protobuf enum YEAR = 7; + */ + const YEAR = 7; + + private static $valueToName = [ + self::TIME_UNIT_UNSPECIFIED => 'TIME_UNIT_UNSPECIFIED', + self::SECOND => 'SECOND', + self::MINUTE => 'MINUTE', + self::HOUR => 'HOUR', + self::DAY => 'DAY', + self::WEEK => 'WEEK', + self::MONTH => 'MONTH', + self::YEAR => 'YEAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php new file mode 100644 index 000000000000..47894d135e50 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php @@ -0,0 +1,203 @@ +google.cloud.chronicle.v1.TimestampMetadata + */ +class TimestampMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Time format of the timestamp column. + * + * Generated from protobuf field string time_format = 1; + */ + protected $time_format = ''; + /** + * Time zone of the timestamp column. + * + * Generated from protobuf field string time_zone = 2; + */ + protected $time_zone = ''; + /** + * Time granularity of the timestamp column. + * + * Generated from protobuf field string time_granularity = 3; + */ + protected $time_granularity = ''; + /** + * Whether the timestamp column is sortable in UI. + * + * Generated from protobuf field bool is_sortable = 4; + */ + protected $is_sortable = false; + /** + * Whether the timestamp column is interpolable in UI. + * + * Generated from protobuf field bool is_interpolable = 5; + */ + protected $is_interpolable = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $time_format + * Time format of the timestamp column. + * @type string $time_zone + * Time zone of the timestamp column. + * @type string $time_granularity + * Time granularity of the timestamp column. + * @type bool $is_sortable + * Whether the timestamp column is sortable in UI. + * @type bool $is_interpolable + * Whether the timestamp column is interpolable in UI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Time format of the timestamp column. + * + * Generated from protobuf field string time_format = 1; + * @return string + */ + public function getTimeFormat() + { + return $this->time_format; + } + + /** + * Time format of the timestamp column. + * + * Generated from protobuf field string time_format = 1; + * @param string $var + * @return $this + */ + public function setTimeFormat($var) + { + GPBUtil::checkString($var, True); + $this->time_format = $var; + + return $this; + } + + /** + * Time zone of the timestamp column. + * + * Generated from protobuf field string time_zone = 2; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Time zone of the timestamp column. + * + * Generated from protobuf field string time_zone = 2; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Time granularity of the timestamp column. + * + * Generated from protobuf field string time_granularity = 3; + * @return string + */ + public function getTimeGranularity() + { + return $this->time_granularity; + } + + /** + * Time granularity of the timestamp column. + * + * Generated from protobuf field string time_granularity = 3; + * @param string $var + * @return $this + */ + public function setTimeGranularity($var) + { + GPBUtil::checkString($var, True); + $this->time_granularity = $var; + + return $this; + } + + /** + * Whether the timestamp column is sortable in UI. + * + * Generated from protobuf field bool is_sortable = 4; + * @return bool + */ + public function getIsSortable() + { + return $this->is_sortable; + } + + /** + * Whether the timestamp column is sortable in UI. + * + * Generated from protobuf field bool is_sortable = 4; + * @param bool $var + * @return $this + */ + public function setIsSortable($var) + { + GPBUtil::checkBool($var); + $this->is_sortable = $var; + + return $this; + } + + /** + * Whether the timestamp column is interpolable in UI. + * + * Generated from protobuf field bool is_interpolable = 5; + * @return bool + */ + public function getIsInterpolable() + { + return $this->is_interpolable; + } + + /** + * Whether the timestamp column is interpolable in UI. + * + * Generated from protobuf field bool is_interpolable = 5; + * @param bool $var + * @return $this + */ + public function setIsInterpolable($var) + { + GPBUtil::checkBool($var); + $this->is_interpolable = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php new file mode 100644 index 000000000000..abbed5759b26 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php @@ -0,0 +1,58 @@ +google.cloud.chronicle.v1.ToolTipTrigger + */ +class ToolTipTrigger +{ + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_UNSPECIFIED = 0; + */ + const TOOLTIP_TRIGGER_UNSPECIFIED = 0; + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_NONE = 1; + */ + const TOOLTIP_TRIGGER_NONE = 1; + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_ITEM = 2; + */ + const TOOLTIP_TRIGGER_ITEM = 2; + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_AXIS = 3; + */ + const TOOLTIP_TRIGGER_AXIS = 3; + + private static $valueToName = [ + self::TOOLTIP_TRIGGER_UNSPECIFIED => 'TOOLTIP_TRIGGER_UNSPECIFIED', + self::TOOLTIP_TRIGGER_NONE => 'TOOLTIP_TRIGGER_NONE', + self::TOOLTIP_TRIGGER_ITEM => 'TOOLTIP_TRIGGER_ITEM', + self::TOOLTIP_TRIGGER_AXIS => 'TOOLTIP_TRIGGER_AXIS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php new file mode 100644 index 000000000000..6830fde1824e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php @@ -0,0 +1,167 @@ +google.cloud.chronicle.v1.UpdateDataAccessLabelRequest + */ +class UpdateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_label = null; + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. The data access label to update. + * + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessLabelRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAccessLabel($dataAccessLabel) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null + */ + public function getDataAccessLabel() + { + return $this->data_access_label; + } + + public function hasDataAccessLabel() + { + return isset($this->data_access_label); + } + + public function clearDataAccessLabel() + { + unset($this->data_access_label); + } + + /** + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var + * @return $this + */ + public function setDataAccessLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); + $this->data_access_label = $var; + + return $this; + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php new file mode 100644 index 000000000000..b332994c240e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php @@ -0,0 +1,172 @@ +google.cloud.chronicle.v1.UpdateDataAccessScopeRequest + */ +class UpdateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_scope = null; + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. The data access scope to update. + * + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessScopeRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAccessScope($dataAccessScope) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null + */ + public function getDataAccessScope() + { + return $this->data_access_scope; + } + + public function hasDataAccessScope() + { + return isset($this->data_access_scope); + } + + public function clearDataAccessScope() + { + unset($this->data_access_scope); + } + + /** + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var + * @return $this + */ + public function setDataAccessScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); + $this->data_access_scope = $var; + + return $this; + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php new file mode 100644 index 000000000000..db7d985e7a3d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php @@ -0,0 +1,161 @@ +google.cloud.chronicle.v1.UpdateDataTableRequest + */ +class UpdateDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table = null; + /** + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataTable $dataTable, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataTable($dataTable) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTable $data_table + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTable|null + */ + public function getDataTable() + { + return $this->data_table; + } + + public function hasDataTable() + { + return isset($this->data_table); + } + + public function clearDataTable() + { + unset($this->data_table); + } + + /** + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTable $var + * @return $this + */ + public function setDataTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); + $this->data_table = $var; + + return $this; + } + + /** + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php new file mode 100644 index 000000000000..9f1bc32f4b5b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php @@ -0,0 +1,156 @@ +google.cloud.chronicle.v1.UpdateDataTableRowRequest + */ +class UpdateDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table_row = null; + /** + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataTableRow($dataTableRow) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTableRow|null + */ + public function getDataTableRow() + { + return $this->data_table_row; + } + + public function hasDataTableRow() + { + return isset($this->data_table_row); + } + + public function clearDataTableRow() + { + unset($this->data_table_row); + } + + /** + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTableRow $var + * @return $this + */ + public function setDataTableRow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_row = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php new file mode 100644 index 000000000000..7af3a6cab0e8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php @@ -0,0 +1,197 @@ +google.cloud.chronicle.v1.UpdateNativeDashboardRequest + */ +class UpdateNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $native_dashboard = null; + /** + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. The dashboard to update. + * + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param \Google\Protobuf\FieldMask $updateMask Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * @return \Google\Cloud\Chronicle\V1\UpdateNativeDashboardRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Protobuf\FieldMask $update_mask + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php new file mode 100644 index 000000000000..f38d1db1fad1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php @@ -0,0 +1,167 @@ +google.cloud.chronicle.v1.UpdateReferenceListRequest + */ +class UpdateReferenceListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list = null; + /** + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to update. + * + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * @return \Google\Cloud\Chronicle\V1\UpdateReferenceListRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\ReferenceList $referenceList, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setReferenceList($referenceList) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ReferenceList|null + */ + public function getReferenceList() + { + return $this->reference_list; + } + + public function hasReferenceList() + { + return isset($this->reference_list); + } + + public function clearReferenceList() + { + unset($this->reference_list); + } + + /** + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceList $var + * @return $this + */ + public function setReferenceList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); + $this->reference_list = $var; + + return $this; + } + + /** + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php new file mode 100644 index 000000000000..b6628f53c50e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php @@ -0,0 +1,152 @@ +google.cloud.chronicle.v1.UpdateRuleDeploymentRequest + */ +class UpdateRuleDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rule_deployment = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment Required. The rule deployment to update. + * + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Cloud\Chronicle\V1\UpdateRuleDeploymentRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\RuleDeployment $rule_deployment + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\RuleDeployment|null + */ + public function getRuleDeployment() + { + return $this->rule_deployment; + } + + public function hasRuleDeployment() + { + return isset($this->rule_deployment); + } + + public function clearRuleDeployment() + { + unset($this->rule_deployment); + } + + /** + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\RuleDeployment $var + * @return $this + */ + public function setRuleDeployment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\RuleDeployment::class); + $this->rule_deployment = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php new file mode 100644 index 000000000000..4d51451d9e75 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php @@ -0,0 +1,157 @@ +google.cloud.chronicle.v1.UpdateRuleRequest + */ +class UpdateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rule = null; + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to update. + * + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * @return \Google\Cloud\Chronicle\V1\UpdateRuleRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\Rule $rule, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRule($rule) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Rule $rule + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Rule|null + */ + public function getRule() + { + return $this->rule; + } + + public function hasRule() + { + return isset($this->rule); + } + + public function clearRule() + { + unset($this->rule); + } + + /** + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Rule $var + * @return $this + */ + public function setRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rule = $var; + + return $this; + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php new file mode 100644 index 000000000000..9afffa4ab421 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php @@ -0,0 +1,152 @@ +google.cloud.chronicle.v1.UpdateWatchlistRequest + */ +class UpdateWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $watchlist = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to update. + * + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Cloud\Chronicle\V1\UpdateWatchlistRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\Watchlist $watchlist, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setWatchlist($watchlist) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Watchlist|null + */ + public function getWatchlist() + { + return $this->watchlist; + } + + public function hasWatchlist() + { + return isset($this->watchlist); + } + + public function clearWatchlist() + { + unset($this->watchlist); + } + + /** + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Watchlist $var + * @return $this + */ + public function setWatchlist($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); + $this->watchlist = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php new file mode 100644 index 000000000000..f936d25469b0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php @@ -0,0 +1,62 @@ +google.cloud.chronicle.v1.VisualMapType + */ +class VisualMapType +{ + /** + * Visual map type is not specified + * + * Generated from protobuf enum VISUAL_MAP_TYPE_UNSPECIFIED = 0; + */ + const VISUAL_MAP_TYPE_UNSPECIFIED = 0; + /** + * Continuous visual map + * + * Generated from protobuf enum CONTINUOUS = 1; + */ + const CONTINUOUS = 1; + /** + * Piecewise visual map + * + * Generated from protobuf enum PIECEWISE = 2; + */ + const PIECEWISE = 2; + + private static $valueToName = [ + self::VISUAL_MAP_TYPE_UNSPECIFIED => 'VISUAL_MAP_TYPE_UNSPECIFIED', + self::CONTINUOUS => 'CONTINUOUS', + self::PIECEWISE => 'PIECEWISE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php new file mode 100644 index 000000000000..2c3553e82f3e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php @@ -0,0 +1,414 @@ +google.cloud.chronicle.v1.Watchlist + */ +class Watchlist extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of the watchlist. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * + * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $multiplying_factor = 0.0; + /** + * Required. Mechanism to populate entities in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_population_mechanism = null; + /** + * Output only. Entity count in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entity_count = null; + /** + * Output only. Time the watchlist was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time the watchlist was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User preferences for watchlist configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $watchlist_user_preferences = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @type string $display_name + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * @type string $description + * Optional. Description of the watchlist. + * @type float $multiplying_factor + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $entity_population_mechanism + * Required. Mechanism to populate entities in the watchlist. + * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $entity_count + * Output only. Entity count in the watchlist. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time the watchlist was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time the watchlist was last updated. + * @type \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $watchlist_user_preferences + * Optional. User preferences for watchlist configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the watchlist. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the watchlist. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * + * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getMultiplyingFactor() + { + return $this->multiplying_factor; + } + + /** + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * + * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setMultiplyingFactor($var) + { + GPBUtil::checkFloat($var); + $this->multiplying_factor = $var; + + return $this; + } + + /** + * Required. Mechanism to populate entities in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism|null + */ + public function getEntityPopulationMechanism() + { + return $this->entity_population_mechanism; + } + + public function hasEntityPopulationMechanism() + { + return isset($this->entity_population_mechanism); + } + + public function clearEntityPopulationMechanism() + { + unset($this->entity_population_mechanism); + } + + /** + * Required. Mechanism to populate entities in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $var + * @return $this + */ + public function setEntityPopulationMechanism($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism::class); + $this->entity_population_mechanism = $var; + + return $this; + } + + /** + * Output only. Entity count in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityCount|null + */ + public function getEntityCount() + { + return $this->entity_count; + } + + public function hasEntityCount() + { + return isset($this->entity_count); + } + + public function clearEntityCount() + { + unset($this->entity_count); + } + + /** + * Output only. Entity count in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $var + * @return $this + */ + public function setEntityCount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityCount::class); + $this->entity_count = $var; + + return $this; + } + + /** + * Output only. Time the watchlist was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time the watchlist was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time the watchlist was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time the watchlist was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. User preferences for watchlist configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\WatchlistUserPreferences|null + */ + public function getWatchlistUserPreferences() + { + return $this->watchlist_user_preferences; + } + + public function hasWatchlistUserPreferences() + { + return isset($this->watchlist_user_preferences); + } + + public function clearWatchlistUserPreferences() + { + unset($this->watchlist_user_preferences); + } + + /** + * Optional. User preferences for watchlist configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $var + * @return $this + */ + public function setWatchlistUserPreferences($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\WatchlistUserPreferences::class); + $this->watchlist_user_preferences = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php new file mode 100644 index 000000000000..6ed43d57e34a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.Watchlist.EntityCount + */ +class EntityCount extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Count of user type entities in the watchlist. + * + * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $user = 0; + /** + * Output only. Count of asset type entities in the watchlist. + * + * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $asset = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $user + * Output only. Count of user type entities in the watchlist. + * @type int $asset + * Output only. Count of asset type entities in the watchlist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Count of user type entities in the watchlist. + * + * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getUser() + { + return $this->user; + } + + /** + * Output only. Count of user type entities in the watchlist. + * + * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkInt32($var); + $this->user = $var; + + return $this; + } + + /** + * Output only. Count of asset type entities in the watchlist. + * + * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAsset() + { + return $this->asset; + } + + /** + * Output only. Count of asset type entities in the watchlist. + * + * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkInt32($var); + $this->asset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php new file mode 100644 index 000000000000..1d821fb12d88 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism + */ +class EntityPopulationMechanism extends \Google\Protobuf\Internal\Message +{ + protected $mechanism; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $manual + * Optional. Entities are added manually. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Entities are added manually. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual|null + */ + public function getManual() + { + return $this->readOneof(1); + } + + public function hasManual() + { + return $this->hasOneof(1); + } + + /** + * Optional. Entities are added manually. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $var + * @return $this + */ + public function setManual($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getMechanism() + { + return $this->whichOneof("mechanism"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php new file mode 100644 index 000000000000..610033c25683 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php @@ -0,0 +1,33 @@ +google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual + */ +class Manual extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php new file mode 100644 index 000000000000..1e28b313f6fe --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.WatchlistUserPreferences + */ +class WatchlistUserPreferences extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether the watchlist is pinned on the dashboard. + * + * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $pinned = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $pinned + * Optional. Whether the watchlist is pinned on the dashboard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether the watchlist is pinned on the dashboard. + * + * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getPinned() + { + return $this->pinned; + } + + /** + * Optional. Whether the watchlist is pinned on the dashboard. + * + * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setPinned($var) + { + GPBUtil::checkBool($var); + $this->pinned = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php new file mode 100644 index 000000000000..66f67ce6e53e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php @@ -0,0 +1,91 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchGetDashboardChartsResponse $response */ + $response = $dashboardChartServiceClient->batchGetDashboardCharts($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DashboardChartServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $formattedNamesElement = DashboardChartServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + batch_get_dashboard_charts_sample($formattedParent, $formattedNamesElement); +} +// [END chronicle_v1_generated_DashboardChartService_BatchGetDashboardCharts_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php new file mode 100644 index 000000000000..423aa931ff5a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DashboardChart $response */ + $response = $dashboardChartServiceClient->getDashboardChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DashboardChartServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + get_dashboard_chart_sample($formattedName); +} +// [END chronicle_v1_generated_DashboardChartService_GetDashboardChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php new file mode 100644 index 000000000000..43ee3d3b78f1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php @@ -0,0 +1,85 @@ +setQuery($queryQuery) + ->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + + // Call the API and handle any network failures. + try { + /** @var ExecuteDashboardQueryResponse $response */ + $response = $dashboardQueryServiceClient->executeDashboardQuery($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DashboardQueryServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $queryQuery = '[QUERY]'; + + execute_dashboard_query_sample($formattedParent, $queryQuery); +} +// [END chronicle_v1_generated_DashboardQueryService_ExecuteDashboardQuery_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php new file mode 100644 index 000000000000..0065d62b4eca --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DashboardQuery $response */ + $response = $dashboardQueryServiceClient->getDashboardQuery($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DashboardQueryServiceClient::dashboardQueryName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[QUERY]' + ); + + get_dashboard_query_sample($formattedName); +} +// [END chronicle_v1_generated_DashboardQueryService_GetDashboardQuery_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php new file mode 100644 index 000000000000..0623874acf9e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php @@ -0,0 +1,89 @@ +setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + + // Call the API and handle any network failures. + try { + /** @var DataAccessLabel $response */ + $response = $dataAccessControlServiceClient->createDataAccessLabel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $dataAccessLabelId = '[DATA_ACCESS_LABEL_ID]'; + + create_data_access_label_sample($formattedParent, $dataAccessLabelId); +} +// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php new file mode 100644 index 000000000000..5219ceb6ae38 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php @@ -0,0 +1,105 @@ +setName($formattedDataAccessScopeName); + $request = (new CreateDataAccessScopeRequest()) + ->setParent($formattedParent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + + // Call the API and handle any network failures. + try { + /** @var DataAccessScope $response */ + $response = $dataAccessControlServiceClient->createDataAccessScope($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + $dataAccessScopeId = '[DATA_ACCESS_SCOPE_ID]'; + + create_data_access_scope_sample( + $formattedParent, + $formattedDataAccessScopeName, + $dataAccessScopeId + ); +} +// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php new file mode 100644 index 000000000000..3c885880892f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataAccessControlServiceClient->deleteDataAccessLabel($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessLabelName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_LABEL]' + ); + + delete_data_access_label_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php new file mode 100644 index 000000000000..41f166b0bf41 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataAccessControlServiceClient->deleteDataAccessScope($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + + delete_data_access_scope_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php new file mode 100644 index 000000000000..7b8c83109598 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAccessLabel $response */ + $response = $dataAccessControlServiceClient->getDataAccessLabel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessLabelName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_LABEL]' + ); + + get_data_access_label_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php new file mode 100644 index 000000000000..e434c9be6db8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAccessScope $response */ + $response = $dataAccessControlServiceClient->getDataAccessScope($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + + get_data_access_scope_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php new file mode 100644 index 000000000000..f831204ae17d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAccessControlServiceClient->listDataAccessLabels($request); + + /** @var DataAccessLabel $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_data_access_labels_sample($formattedParent); +} +// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessLabels_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php new file mode 100644 index 000000000000..ac4cfa39ba9e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAccessControlServiceClient->listDataAccessScopes($request); + + /** @var DataAccessScope $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_data_access_scopes_sample($formattedParent); +} +// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessScopes_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php new file mode 100644 index 000000000000..e949373ca7f3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php @@ -0,0 +1,59 @@ +setDataAccessLabel($dataAccessLabel); + + // Call the API and handle any network failures. + try { + /** @var DataAccessLabel $response */ + $response = $dataAccessControlServiceClient->updateDataAccessLabel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php new file mode 100644 index 000000000000..33d0d8a4424b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php @@ -0,0 +1,79 @@ +setName($formattedDataAccessScopeName); + $request = (new UpdateDataAccessScopeRequest()) + ->setDataAccessScope($dataAccessScope); + + // Call the API and handle any network failures. + try { + /** @var DataAccessScope $response */ + $response = $dataAccessControlServiceClient->updateDataAccessScope($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + + update_data_access_scope_sample($formattedDataAccessScopeName); +} +// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php new file mode 100644 index 000000000000..1f64d05306a3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php @@ -0,0 +1,108 @@ +setValues($requestsDataTableRowValues); + $createDataTableRowRequest = (new CreateDataTableRowRequest()) + ->setParent($formattedRequestsParent) + ->setDataTableRow($requestsDataTableRow); + $requests = [$createDataTableRowRequest,]; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkCreateDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkCreateDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $formattedRequestsParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $requestsDataTableRowValuesElement = '[VALUES]'; + + bulk_create_data_table_rows_sample( + $formattedParent, + $formattedRequestsParent, + $requestsDataTableRowValuesElement + ); +} +// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php new file mode 100644 index 000000000000..5dff1680a8d2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php @@ -0,0 +1,96 @@ +setName($formattedRequestsName); + $requests = [$getDataTableRowRequest,]; + $request = (new BulkGetDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkGetDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkGetDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $formattedRequestsName = DataTableServiceClient::dataTableRowName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]', + '[DATA_TABLE_ROW]' + ); + + bulk_get_data_table_rows_sample($formattedParent, $formattedRequestsName); +} +// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php new file mode 100644 index 000000000000..719f12db7676 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php @@ -0,0 +1,108 @@ +setValues($requestsDataTableRowValues); + $createDataTableRowRequest = (new CreateDataTableRowRequest()) + ->setParent($formattedRequestsParent) + ->setDataTableRow($requestsDataTableRow); + $requests = [$createDataTableRowRequest,]; + $request = (new BulkReplaceDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkReplaceDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkReplaceDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $formattedRequestsParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $requestsDataTableRowValuesElement = '[VALUES]'; + + bulk_replace_data_table_rows_sample( + $formattedParent, + $formattedRequestsParent, + $requestsDataTableRowValuesElement + ); +} +// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php new file mode 100644 index 000000000000..c5b35718149f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php @@ -0,0 +1,92 @@ +setValues($requestsDataTableRowValues); + $updateDataTableRowRequest = (new UpdateDataTableRowRequest()) + ->setDataTableRow($requestsDataTableRow); + $requests = [$updateDataTableRowRequest,]; + $request = (new BulkUpdateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkUpdateDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkUpdateDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $requestsDataTableRowValuesElement = '[VALUES]'; + + bulk_update_data_table_rows_sample($formattedParent, $requestsDataTableRowValuesElement); +} +// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php new file mode 100644 index 000000000000..bca1084349da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php @@ -0,0 +1,87 @@ +setDescription($dataTableDescription); + $request = (new CreateDataTableRequest()) + ->setParent($formattedParent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + + // Call the API and handle any network failures. + try { + /** @var DataTable $response */ + $response = $dataTableServiceClient->createDataTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataTableDescription = '[DESCRIPTION]'; + $dataTableId = '[DATA_TABLE_ID]'; + + create_data_table_sample($formattedParent, $dataTableDescription, $dataTableId); +} +// [END chronicle_v1_generated_DataTableService_CreateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php new file mode 100644 index 000000000000..4c2f774cc155 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php @@ -0,0 +1,87 @@ +setValues($dataTableRowValues); + $request = (new CreateDataTableRowRequest()) + ->setParent($formattedParent) + ->setDataTableRow($dataTableRow); + + // Call the API and handle any network failures. + try { + /** @var DataTableRow $response */ + $response = $dataTableServiceClient->createDataTableRow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $dataTableRowValuesElement = '[VALUES]'; + + create_data_table_row_sample($formattedParent, $dataTableRowValuesElement); +} +// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php new file mode 100644 index 000000000000..28c77cdb6435 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataTableServiceClient->deleteDataTable($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + + delete_data_table_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php new file mode 100644 index 000000000000..82188421d34a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataTableServiceClient->deleteDataTableRow($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableRowName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]', + '[DATA_TABLE_ROW]' + ); + + delete_data_table_row_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php new file mode 100644 index 000000000000..f8c92cf8d5be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataTable $response */ + $response = $dataTableServiceClient->getDataTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + + get_data_table_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_GetDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php new file mode 100644 index 000000000000..354a4397517f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataTableOperationErrors $response */ + $response = $dataTableServiceClient->getDataTableOperationErrors($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableOperationErrorsName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE_OPERATION_ERRORS]' + ); + + get_data_table_operation_errors_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php new file mode 100644 index 000000000000..90790e1fd6b3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataTableRow $response */ + $response = $dataTableServiceClient->getDataTableRow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableRowName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]', + '[DATA_TABLE_ROW]' + ); + + get_data_table_row_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_GetDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php new file mode 100644 index 000000000000..d38cc698f7fd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataTableServiceClient->listDataTableRows($request); + + /** @var DataTableRow $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + + list_data_table_rows_sample($formattedParent); +} +// [END chronicle_v1_generated_DataTableService_ListDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php new file mode 100644 index 000000000000..87d6c459c2f2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataTableServiceClient->listDataTables($request); + + /** @var DataTable $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + list_data_tables_sample($formattedParent); +} +// [END chronicle_v1_generated_DataTableService_ListDataTables_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php new file mode 100644 index 000000000000..56d2a5d3e41c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php @@ -0,0 +1,72 @@ +setDescription($dataTableDescription); + $request = (new UpdateDataTableRequest()) + ->setDataTable($dataTable); + + // Call the API and handle any network failures. + try { + /** @var DataTable $response */ + $response = $dataTableServiceClient->updateDataTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $dataTableDescription = '[DESCRIPTION]'; + + update_data_table_sample($dataTableDescription); +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php new file mode 100644 index 000000000000..a3b430d80898 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php @@ -0,0 +1,74 @@ +setValues($dataTableRowValues); + $request = (new UpdateDataTableRowRequest()) + ->setDataTableRow($dataTableRow); + + // Call the API and handle any network failures. + try { + /** @var DataTableRow $response */ + $response = $dataTableServiceClient->updateDataTableRow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $dataTableRowValuesElement = '[VALUES]'; + + update_data_table_row_sample($dataTableRowValuesElement); +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php new file mode 100644 index 000000000000..fc91d0f75173 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php @@ -0,0 +1,83 @@ +setDisplayName($watchlistDisplayName) + ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + + // Call the API and handle any network failures. + try { + /** @var Watchlist $response */ + $response = $entityServiceClient->createWatchlist($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlistDisplayName = '[DISPLAY_NAME]'; + + create_watchlist_sample($formattedParent, $watchlistDisplayName); +} +// [END chronicle_v1_generated_EntityService_CreateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php new file mode 100644 index 000000000000..a4f794c71488 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $entityServiceClient->deleteWatchlist($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = EntityServiceClient::watchlistName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[WATCHLIST]' + ); + + delete_watchlist_sample($formattedName); +} +// [END chronicle_v1_generated_EntityService_DeleteWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php new file mode 100644 index 000000000000..f2c0679734af --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Watchlist $response */ + $response = $entityServiceClient->getWatchlist($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = EntityServiceClient::watchlistName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[WATCHLIST]' + ); + + get_watchlist_sample($formattedName); +} +// [END chronicle_v1_generated_EntityService_GetWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php new file mode 100644 index 000000000000..b3db33e4e1d2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $entityServiceClient->listWatchlists($request); + + /** @var Watchlist $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + list_watchlists_sample($formattedParent); +} +// [END chronicle_v1_generated_EntityService_ListWatchlists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php new file mode 100644 index 000000000000..193fe9ee02c9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php @@ -0,0 +1,77 @@ +setDisplayName($watchlistDisplayName) + ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new UpdateWatchlistRequest()) + ->setWatchlist($watchlist); + + // Call the API and handle any network failures. + try { + /** @var Watchlist $response */ + $response = $entityServiceClient->updateWatchlist($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $watchlistDisplayName = '[DISPLAY_NAME]'; + + update_watchlist_sample($watchlistDisplayName); +} +// [END chronicle_v1_generated_EntityService_UpdateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php new file mode 100644 index 000000000000..fe4828f66e9f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FeaturedContentNativeDashboard $response */ + $response = $featuredContentNativeDashboardServiceClient->getFeaturedContentNativeDashboard( + $request + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + + get_featured_content_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_GetFeaturedContentNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php new file mode 100644 index 000000000000..36d013db73da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var InstallFeaturedContentNativeDashboardResponse $response */ + $response = $featuredContentNativeDashboardServiceClient->installFeaturedContentNativeDashboard( + $request + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + + install_featured_content_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_InstallFeaturedContentNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php new file mode 100644 index 000000000000..411b56b48a14 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php @@ -0,0 +1,84 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $featuredContentNativeDashboardServiceClient->listFeaturedContentNativeDashboards( + $request + ); + + /** @var FeaturedContentNativeDashboard $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = FeaturedContentNativeDashboardServiceClient::contentHubName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_featured_content_native_dashboards_sample($formattedParent); +} +// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_ListFeaturedContentNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php b/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php new file mode 100644 index 000000000000..3f58906ea662 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Instance $response */ + $response = $instanceServiceClient->getInstance($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = InstanceServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + get_instance_sample($formattedName); +} +// [END chronicle_v1_generated_InstanceService_GetInstance_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php new file mode 100644 index 000000000000..72e37f68b09f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php @@ -0,0 +1,90 @@ +setDisplayName($dashboardChartDisplayName) + ->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + + // Call the API and handle any network failures. + try { + /** @var AddChartResponse $response */ + $response = $nativeDashboardServiceClient->addChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $dashboardChartDisplayName = '[DISPLAY_NAME]'; + + add_chart_sample($formattedName, $dashboardChartDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_AddChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php new file mode 100644 index 000000000000..4f21c73ab361 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php @@ -0,0 +1,83 @@ +setDisplayName($nativeDashboardDisplayName); + $request = (new CreateNativeDashboardRequest()) + ->setParent($formattedParent) + ->setNativeDashboard($nativeDashboard); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->createNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $nativeDashboardDisplayName = '[DISPLAY_NAME]'; + + create_native_dashboard_sample($formattedParent, $nativeDashboardDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_CreateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php new file mode 100644 index 000000000000..68ec8e4fb935 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $nativeDashboardServiceClient->deleteNativeDashboard($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + + delete_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_NativeDashboardService_DeleteNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php new file mode 100644 index 000000000000..4e391f360625 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php @@ -0,0 +1,87 @@ +setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + + // Call the API and handle any network failures. + try { + /** @var DuplicateChartResponse $response */ + $response = $nativeDashboardServiceClient->duplicateChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $formattedDashboardChart = NativeDashboardServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + duplicate_chart_sample($formattedName, $formattedDashboardChart); +} +// [END chronicle_v1_generated_NativeDashboardService_DuplicateChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php new file mode 100644 index 000000000000..33cfc432d361 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php @@ -0,0 +1,85 @@ +setDisplayName($nativeDashboardDisplayName); + $request = (new DuplicateNativeDashboardRequest()) + ->setName($formattedName) + ->setNativeDashboard($nativeDashboard); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->duplicateNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $nativeDashboardDisplayName = '[DISPLAY_NAME]'; + + duplicate_native_dashboard_sample($formattedName, $nativeDashboardDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_DuplicateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php new file mode 100644 index 000000000000..ee90db305e9c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php @@ -0,0 +1,81 @@ +setName($formattedName) + ->setEditMask($editMask); + + // Call the API and handle any network failures. + try { + /** @var EditChartResponse $response */ + $response = $nativeDashboardServiceClient->editChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + + edit_chart_sample($formattedName); +} +// [END chronicle_v1_generated_NativeDashboardService_EditChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php new file mode 100644 index 000000000000..bf7a4303ac1a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php @@ -0,0 +1,80 @@ +setParent($formattedParent) + ->setNames($names); + + // Call the API and handle any network failures. + try { + /** @var ExportNativeDashboardsResponse $response */ + $response = $nativeDashboardServiceClient->exportNativeDashboards($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $namesElement = '[NAMES]'; + + export_native_dashboards_sample($formattedParent, $namesElement); +} +// [END chronicle_v1_generated_NativeDashboardService_ExportNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php new file mode 100644 index 000000000000..ffa530d192c3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->getNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + + get_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_NativeDashboardService_GetNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php new file mode 100644 index 000000000000..e15ab48e5b85 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php @@ -0,0 +1,82 @@ +setDashboards($sourceDashboards); + $request = (new ImportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setSource($source); + + // Call the API and handle any network failures. + try { + /** @var ImportNativeDashboardsResponse $response */ + $response = $nativeDashboardServiceClient->importNativeDashboards($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + import_native_dashboards_sample($formattedParent); +} +// [END chronicle_v1_generated_NativeDashboardService_ImportNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php new file mode 100644 index 000000000000..349d07215475 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $nativeDashboardServiceClient->listNativeDashboards($request); + + /** @var NativeDashboard $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_native_dashboards_sample($formattedParent); +} +// [END chronicle_v1_generated_NativeDashboardService_ListNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php new file mode 100644 index 000000000000..7c1630028140 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php @@ -0,0 +1,87 @@ +setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->removeChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $formattedDashboardChart = NativeDashboardServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + remove_chart_sample($formattedName, $formattedDashboardChart); +} +// [END chronicle_v1_generated_NativeDashboardService_RemoveChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php new file mode 100644 index 000000000000..04f2a4465e8d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php @@ -0,0 +1,75 @@ +setDisplayName($nativeDashboardDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateNativeDashboardRequest()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->updateNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $nativeDashboardDisplayName = '[DISPLAY_NAME]'; + + update_native_dashboard_sample($nativeDashboardDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_UpdateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php new file mode 100644 index 000000000000..064b32ca29d0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php @@ -0,0 +1,111 @@ +setValue($referenceListEntriesValue); + $referenceListEntries = [$referenceListEntry,]; + $referenceList = (new ReferenceList()) + ->setDescription($referenceListDescription) + ->setEntries($referenceListEntries) + ->setSyntaxType($referenceListSyntaxType); + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + + // Call the API and handle any network failures. + try { + /** @var ReferenceList $response */ + $response = $referenceListServiceClient->createReferenceList($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReferenceListServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $referenceListDescription = '[DESCRIPTION]'; + $referenceListEntriesValue = '[VALUE]'; + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceListId = '[REFERENCE_LIST_ID]'; + + create_reference_list_sample( + $formattedParent, + $referenceListDescription, + $referenceListEntriesValue, + $referenceListSyntaxType, + $referenceListId + ); +} +// [END chronicle_v1_generated_ReferenceListService_CreateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php new file mode 100644 index 000000000000..5e6d4986fbfb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ReferenceList $response */ + $response = $referenceListServiceClient->getReferenceList($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ReferenceListServiceClient::referenceListName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[REFERENCE_LIST]' + ); + + get_reference_list_sample($formattedName); +} +// [END chronicle_v1_generated_ReferenceListService_GetReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php new file mode 100644 index 000000000000..5fef5d03cbeb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $referenceListServiceClient->listReferenceLists($request); + + /** @var ReferenceList $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReferenceListServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_reference_lists_sample($formattedParent); +} +// [END chronicle_v1_generated_ReferenceListService_ListReferenceLists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php new file mode 100644 index 000000000000..2ea81ccc24e2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php @@ -0,0 +1,90 @@ +setValue($referenceListEntriesValue); + $referenceListEntries = [$referenceListEntry,]; + $referenceList = (new ReferenceList()) + ->setDescription($referenceListDescription) + ->setEntries($referenceListEntries) + ->setSyntaxType($referenceListSyntaxType); + $request = (new UpdateReferenceListRequest()) + ->setReferenceList($referenceList); + + // Call the API and handle any network failures. + try { + /** @var ReferenceList $response */ + $response = $referenceListServiceClient->updateReferenceList($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $referenceListDescription = '[DESCRIPTION]'; + $referenceListEntriesValue = '[VALUE]'; + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + + update_reference_list_sample( + $referenceListDescription, + $referenceListEntriesValue, + $referenceListSyntaxType + ); +} +// [END chronicle_v1_generated_ReferenceListService_UpdateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php new file mode 100644 index 000000000000..72fe02a04c79 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php @@ -0,0 +1,90 @@ +setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $ruleServiceClient->createRetrohunt($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Retrohunt $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + create_retrohunt_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_CreateRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php new file mode 100644 index 000000000000..4e49df99d1e9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setRule($rule); + + // Call the API and handle any network failures. + try { + /** @var Rule $response */ + $response = $ruleServiceClient->createRule($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + create_rule_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_CreateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php new file mode 100644 index 000000000000..229fd626bf85 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $ruleServiceClient->deleteRule($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + delete_rule_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_DeleteRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php new file mode 100644 index 000000000000..9a17dfe2f0fc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Retrohunt $response */ + $response = $ruleServiceClient->getRetrohunt($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::retrohuntName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[RULE]', + '[RETROHUNT]' + ); + + get_retrohunt_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_GetRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php new file mode 100644 index 000000000000..9b7b735b3cbb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Rule $response */ + $response = $ruleServiceClient->getRule($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + get_rule_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_GetRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php new file mode 100644 index 000000000000..16ac2aee8b32 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var RuleDeployment $response */ + $response = $ruleServiceClient->getRuleDeployment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleDeploymentName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[RULE]' + ); + + get_rule_deployment_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_GetRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php new file mode 100644 index 000000000000..c20092aee588 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRetrohunts($request); + + /** @var Retrohunt $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + list_retrohunts_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_ListRetrohunts_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php new file mode 100644 index 000000000000..0a63256b173c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRuleDeployments($request); + + /** @var RuleDeployment $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + list_rule_deployments_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_ListRuleDeployments_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php new file mode 100644 index 000000000000..44ffc527c875 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRuleRevisions($request); + + /** @var Rule $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + list_rule_revisions_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_ListRuleRevisions_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php new file mode 100644 index 000000000000..aa9cb76ebdd3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRules($request); + + /** @var Rule $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + list_rules_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_ListRules_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php new file mode 100644 index 000000000000..5462edfd5766 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php @@ -0,0 +1,59 @@ +setRule($rule); + + // Call the API and handle any network failures. + try { + /** @var Rule $response */ + $response = $ruleServiceClient->updateRule($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chronicle_v1_generated_RuleService_UpdateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php new file mode 100644 index 000000000000..8d9d5600aec3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php @@ -0,0 +1,83 @@ +setName($ruleDeploymentName); + $updateMask = new FieldMask(); + $request = (new UpdateRuleDeploymentRequest()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var RuleDeployment $response */ + $response = $ruleServiceClient->updateRuleDeployment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $ruleDeploymentName = '[NAME]'; + + update_rule_deployment_sample($ruleDeploymentName); +} +// [END chronicle_v1_generated_RuleService_UpdateRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php new file mode 100644 index 000000000000..e705b61f0ad7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php @@ -0,0 +1,310 @@ + batchGetDashboardChartsAsync(BatchGetDashboardChartsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDashboardChartAsync(GetDashboardChartRequest $request, array $optionalArgs = []) + */ +final class DashboardChartServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DashboardChartService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dashboard_chart_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DashboardChartServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DashboardChartServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Get dashboard charts in batches. + * + * The async variant is + * {@see DashboardChartServiceClient::batchGetDashboardChartsAsync()} . + * + * @example samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php + * + * @param BatchGetDashboardChartsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchGetDashboardChartsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchGetDashboardCharts(BatchGetDashboardChartsRequest $request, array $callOptions = []): BatchGetDashboardChartsResponse + { + return $this->startApiCall('BatchGetDashboardCharts', $request, $callOptions)->wait(); + } + + /** + * Get a dashboard chart. + * + * The async variant is + * {@see DashboardChartServiceClient::getDashboardChartAsync()} . + * + * @example samples/V1/DashboardChartServiceClient/get_dashboard_chart.php + * + * @param GetDashboardChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DashboardChart + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDashboardChart(GetDashboardChartRequest $request, array $callOptions = []): DashboardChart + { + return $this->startApiCall('GetDashboardChart', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php new file mode 100644 index 000000000000..d3af52f0d47a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php @@ -0,0 +1,332 @@ + executeDashboardQueryAsync(ExecuteDashboardQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDashboardQueryAsync(GetDashboardQueryRequest $request, array $optionalArgs = []) + */ +final class DashboardQueryServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DashboardQueryService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dashboard_query_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dashboard_query_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dashboard_query_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dashboard_query_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_query resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $query + * + * @return string The formatted dashboard_query resource. + */ + public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string + { + return self::getPathTemplate('dashboardQuery')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'query' => $query, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DashboardQueryServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DashboardQueryServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Execute a query and return the data. + * + * The async variant is + * {@see DashboardQueryServiceClient::executeDashboardQueryAsync()} . + * + * @example samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php + * + * @param ExecuteDashboardQueryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ExecuteDashboardQueryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function executeDashboardQuery(ExecuteDashboardQueryRequest $request, array $callOptions = []): ExecuteDashboardQueryResponse + { + return $this->startApiCall('ExecuteDashboardQuery', $request, $callOptions)->wait(); + } + + /** + * Get a dashboard query. + * + * The async variant is + * {@see DashboardQueryServiceClient::getDashboardQueryAsync()} . + * + * @example samples/V1/DashboardQueryServiceClient/get_dashboard_query.php + * + * @param GetDashboardQueryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DashboardQuery + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDashboardQuery(GetDashboardQueryRequest $request, array $callOptions = []): DashboardQuery + { + return $this->startApiCall('GetDashboardQuery', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php new file mode 100644 index 000000000000..11a4d52eccf8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php @@ -0,0 +1,572 @@ + createDataAccessLabelAsync(CreateDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataAccessScopeAsync(CreateDataAccessScopeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAccessLabelAsync(DeleteDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAccessScopeAsync(DeleteDataAccessScopeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAccessLabelAsync(GetDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAccessScopeAsync(GetDataAccessScopeRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAccessLabelsAsync(ListDataAccessLabelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAccessScopesAsync(ListDataAccessScopesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAccessLabelAsync(UpdateDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAccessScopeAsync(UpdateDataAccessScopeRequest $request, array $optionalArgs = []) + */ +final class DataAccessControlServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataAccessControlService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/data_access_control_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_access_control_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_access_control_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_access_control_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_label resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessLabel + * + * @return string The formatted data_access_label resource. + */ + public static function dataAccessLabelName(string $project, string $location, string $instance, string $dataAccessLabel): string + { + return self::getPathTemplate('dataAccessLabel')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_label' => $dataAccessLabel, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_scope resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessScope + * + * @return string The formatted data_access_scope resource. + */ + public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string + { + return self::getPathTemplate('dataAccessScope')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_scope' => $dataAccessScope, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dataAccessLabel: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label} + * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DataAccessControlServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataAccessControlServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a data access label. + * Data access labels are applied to incoming event data and selected in data + * access scopes (another resource), and only users with scopes containing the + * label can see data with that label. Currently, the data access label + * resource only includes custom labels, which are labels that correspond + * to UDM queries over event data. + * + * The async variant is + * {@see DataAccessControlServiceClient::createDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/create_data_access_label.php + * + * @param CreateDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessLabel + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataAccessLabel(CreateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel + { + return $this->startApiCall('CreateDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Creates a data access scope. + * Data access scope is a combination of allowed and denied labels attached + * to a permission group. If a scope has allowed labels A and B and denied + * labels C and D, then the group of people attached to the scope + * will have permissions to see all events labeled with A or B (or both) and + * not labeled with either C or D. + * + * The async variant is + * {@see DataAccessControlServiceClient::createDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/create_data_access_scope.php + * + * @param CreateDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessScope + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataAccessScope(CreateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope + { + return $this->startApiCall('CreateDataAccessScope', $request, $callOptions)->wait(); + } + + /** + * Deletes a data access label. When a label is deleted, new + * data that enters in the system will not receive the label, but the label + * will not be removed from old data that still refers to it. + * + * The async variant is + * {@see DataAccessControlServiceClient::deleteDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/delete_data_access_label.php + * + * @param DeleteDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataAccessLabel(DeleteDataAccessLabelRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Deletes a data access scope. + * + * The async variant is + * {@see DataAccessControlServiceClient::deleteDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php + * + * @param DeleteDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataAccessScope(DeleteDataAccessScopeRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataAccessScope', $request, $callOptions)->wait(); + } + + /** + * Gets a data access label. + * + * The async variant is + * {@see DataAccessControlServiceClient::getDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/get_data_access_label.php + * + * @param GetDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessLabel + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataAccessLabel(GetDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel + { + return $this->startApiCall('GetDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Retrieves an existing data access scope. + * + * The async variant is + * {@see DataAccessControlServiceClient::getDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/get_data_access_scope.php + * + * @param GetDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessScope + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataAccessScope(GetDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope + { + return $this->startApiCall('GetDataAccessScope', $request, $callOptions)->wait(); + } + + /** + * Lists all data access labels for the customer. + * + * The async variant is + * {@see DataAccessControlServiceClient::listDataAccessLabelsAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/list_data_access_labels.php + * + * @param ListDataAccessLabelsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataAccessLabels(ListDataAccessLabelsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAccessLabels', $request, $callOptions); + } + + /** + * Lists all existing data access scopes for the customer. + * + * The async variant is + * {@see DataAccessControlServiceClient::listDataAccessScopesAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php + * + * @param ListDataAccessScopesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataAccessScopes(ListDataAccessScopesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAccessScopes', $request, $callOptions); + } + + /** + * Updates a data access label. + * + * The async variant is + * {@see DataAccessControlServiceClient::updateDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/update_data_access_label.php + * + * @param UpdateDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessLabel + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataAccessLabel(UpdateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel + { + return $this->startApiCall('UpdateDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Updates a data access scope. + * + * The async variant is + * {@see DataAccessControlServiceClient::updateDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/update_data_access_scope.php + * + * @param UpdateDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessScope + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataAccessScope(UpdateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope + { + return $this->startApiCall('UpdateDataAccessScope', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php new file mode 100644 index 000000000000..3a2425a3b967 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php @@ -0,0 +1,747 @@ + bulkCreateDataTableRowsAsync(BulkCreateDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface bulkGetDataTableRowsAsync(BulkGetDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface bulkReplaceDataTableRowsAsync(BulkReplaceDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface bulkUpdateDataTableRowsAsync(BulkUpdateDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataTableAsync(CreateDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataTableRowAsync(CreateDataTableRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataTableAsync(DeleteDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataTableRowAsync(DeleteDataTableRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataTableAsync(GetDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataTableOperationErrorsAsync(GetDataTableOperationErrorsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataTableRowAsync(GetDataTableRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataTableRowsAsync(ListDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataTablesAsync(ListDataTablesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataTableAsync(UpdateDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataTableRowAsync(UpdateDataTableRowRequest $request, array $optionalArgs = []) + */ +final class DataTableServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataTableService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/data_table_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_table_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_table_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_table_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_scope resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessScope + * + * @return string The formatted data_access_scope resource. + */ + public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string + { + return self::getPathTemplate('dataAccessScope')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_scope' => $dataAccessScope, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_table + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataTable + * + * @return string The formatted data_table resource. + */ + public static function dataTableName(string $project, string $location, string $instance, string $dataTable): string + { + return self::getPathTemplate('dataTable')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_table' => $dataTable, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_table_operation_errors resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataTableOperationErrors + * + * @return string The formatted data_table_operation_errors resource. + */ + public static function dataTableOperationErrorsName(string $project, string $location, string $instance, string $dataTableOperationErrors): string + { + return self::getPathTemplate('dataTableOperationErrors')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_table_operation_errors' => $dataTableOperationErrors, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_table_row resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataTable + * @param string $dataTableRow + * + * @return string The formatted data_table_row resource. + */ + public static function dataTableRowName(string $project, string $location, string $instance, string $dataTable, string $dataTableRow): string + { + return self::getPathTemplate('dataTableRow')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_table' => $dataTable, + 'data_table_row' => $dataTableRow, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} + * - dataTable: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * - dataTableOperationErrors: projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * - dataTableRow: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DataTableServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataTableServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Create data table rows in bulk. + * + * The async variant is + * {@see DataTableServiceClient::bulkCreateDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php + * + * @param BulkCreateDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkCreateDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkCreateDataTableRows(BulkCreateDataTableRowsRequest $request, array $callOptions = []): BulkCreateDataTableRowsResponse + { + return $this->startApiCall('BulkCreateDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Get data table rows in bulk. + * + * The async variant is {@see DataTableServiceClient::bulkGetDataTableRowsAsync()} + * . + * + * @example samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php + * + * @param BulkGetDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkGetDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkGetDataTableRows(BulkGetDataTableRowsRequest $request, array $callOptions = []): BulkGetDataTableRowsResponse + { + return $this->startApiCall('BulkGetDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Replace all existing data table rows with new data table rows. + * + * The async variant is + * {@see DataTableServiceClient::bulkReplaceDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php + * + * @param BulkReplaceDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkReplaceDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest $request, array $callOptions = []): BulkReplaceDataTableRowsResponse + { + return $this->startApiCall('BulkReplaceDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Update data table rows in bulk. + * + * The async variant is + * {@see DataTableServiceClient::bulkUpdateDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php + * + * @param BulkUpdateDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkUpdateDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest $request, array $callOptions = []): BulkUpdateDataTableRowsResponse + { + return $this->startApiCall('BulkUpdateDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Create a new data table. + * + * The async variant is {@see DataTableServiceClient::createDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/create_data_table.php + * + * @param CreateDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTable + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataTable(CreateDataTableRequest $request, array $callOptions = []): DataTable + { + return $this->startApiCall('CreateDataTable', $request, $callOptions)->wait(); + } + + /** + * Create a new data table row. + * + * The async variant is {@see DataTableServiceClient::createDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/create_data_table_row.php + * + * @param CreateDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableRow + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataTableRow(CreateDataTableRowRequest $request, array $callOptions = []): DataTableRow + { + return $this->startApiCall('CreateDataTableRow', $request, $callOptions)->wait(); + } + + /** + * Delete data table. + * + * The async variant is {@see DataTableServiceClient::deleteDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/delete_data_table.php + * + * @param DeleteDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataTable(DeleteDataTableRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataTable', $request, $callOptions)->wait(); + } + + /** + * Delete data table row. + * + * The async variant is {@see DataTableServiceClient::deleteDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/delete_data_table_row.php + * + * @param DeleteDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataTableRow(DeleteDataTableRowRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataTableRow', $request, $callOptions)->wait(); + } + + /** + * Get data table info. + * + * The async variant is {@see DataTableServiceClient::getDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/get_data_table.php + * + * @param GetDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTable + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataTable(GetDataTableRequest $request, array $callOptions = []): DataTable + { + return $this->startApiCall('GetDataTable', $request, $callOptions)->wait(); + } + + /** + * Get the error for a data table operation. + * + * The async variant is + * {@see DataTableServiceClient::getDataTableOperationErrorsAsync()} . + * + * @example samples/V1/DataTableServiceClient/get_data_table_operation_errors.php + * + * @param GetDataTableOperationErrorsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableOperationErrors + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataTableOperationErrors(GetDataTableOperationErrorsRequest $request, array $callOptions = []): DataTableOperationErrors + { + return $this->startApiCall('GetDataTableOperationErrors', $request, $callOptions)->wait(); + } + + /** + * Get data table row + * + * The async variant is {@see DataTableServiceClient::getDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/get_data_table_row.php + * + * @param GetDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableRow + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataTableRow(GetDataTableRowRequest $request, array $callOptions = []): DataTableRow + { + return $this->startApiCall('GetDataTableRow', $request, $callOptions)->wait(); + } + + /** + * List data table rows. + * + * The async variant is {@see DataTableServiceClient::listDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/list_data_table_rows.php + * + * @param ListDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataTableRows(ListDataTableRowsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataTableRows', $request, $callOptions); + } + + /** + * List data tables. + * + * The async variant is {@see DataTableServiceClient::listDataTablesAsync()} . + * + * @example samples/V1/DataTableServiceClient/list_data_tables.php + * + * @param ListDataTablesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataTables(ListDataTablesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataTables', $request, $callOptions); + } + + /** + * Update data table. + * + * The async variant is {@see DataTableServiceClient::updateDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/update_data_table.php + * + * @param UpdateDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTable + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataTable(UpdateDataTableRequest $request, array $callOptions = []): DataTable + { + return $this->startApiCall('UpdateDataTable', $request, $callOptions)->wait(); + } + + /** + * Update data table row + * + * The async variant is {@see DataTableServiceClient::updateDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/update_data_table_row.php + * + * @param UpdateDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableRow + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataTableRow(UpdateDataTableRowRequest $request, array $callOptions = []): DataTableRow + { + return $this->startApiCall('UpdateDataTableRow', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php new file mode 100644 index 000000000000..0e4473f59298 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php @@ -0,0 +1,389 @@ + createWatchlistAsync(CreateWatchlistRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWatchlistAsync(DeleteWatchlistRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWatchlistAsync(GetWatchlistRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWatchlistsAsync(ListWatchlistsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWatchlistAsync(UpdateWatchlistRequest $request, array $optionalArgs = []) + */ +final class EntityServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.EntityService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/entity_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/entity_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/entity_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/entity_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a watchlist + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $watchlist + * + * @return string The formatted watchlist resource. + */ + public static function watchlistName(string $project, string $location, string $instance, string $watchlist): string + { + return self::getPathTemplate('watchlist')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'watchlist' => $watchlist, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - watchlist: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\EntityServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new EntityServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a watchlist for the given instance. + * Note that there can be at most 200 watchlists per instance. + * + * The async variant is {@see EntityServiceClient::createWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/create_watchlist.php + * + * @param CreateWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Watchlist + * + * @throws ApiException Thrown if the API call fails. + */ + public function createWatchlist(CreateWatchlistRequest $request, array $callOptions = []): Watchlist + { + return $this->startApiCall('CreateWatchlist', $request, $callOptions)->wait(); + } + + /** + * Deletes the watchlist for the given instance. + * + * The async variant is {@see EntityServiceClient::deleteWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/delete_watchlist.php + * + * @param DeleteWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteWatchlist(DeleteWatchlistRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWatchlist', $request, $callOptions)->wait(); + } + + /** + * Gets watchlist details for the given watchlist ID. + * + * The async variant is {@see EntityServiceClient::getWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/get_watchlist.php + * + * @param GetWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Watchlist + * + * @throws ApiException Thrown if the API call fails. + */ + public function getWatchlist(GetWatchlistRequest $request, array $callOptions = []): Watchlist + { + return $this->startApiCall('GetWatchlist', $request, $callOptions)->wait(); + } + + /** + * Lists all watchlists for the given instance. + * + * The async variant is {@see EntityServiceClient::listWatchlistsAsync()} . + * + * @example samples/V1/EntityServiceClient/list_watchlists.php + * + * @param ListWatchlistsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listWatchlists(ListWatchlistsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWatchlists', $request, $callOptions); + } + + /** + * Updates the watchlist for the given instance. + * + * The async variant is {@see EntityServiceClient::updateWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/update_watchlist.php + * + * @param UpdateWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Watchlist + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateWatchlist(UpdateWatchlistRequest $request, array $callOptions = []): Watchlist + { + return $this->startApiCall('UpdateWatchlist', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php new file mode 100644 index 000000000000..ef15c0083d7e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php @@ -0,0 +1,431 @@ + getFeaturedContentNativeDashboardAsync(GetFeaturedContentNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface installFeaturedContentNativeDashboardAsync(InstallFeaturedContentNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFeaturedContentNativeDashboardsAsync(ListFeaturedContentNativeDashboardsRequest $request, array $optionalArgs = []) + */ +final class FeaturedContentNativeDashboardServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/featured_content_native_dashboard_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a content_hub + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted content_hub resource. + */ + public static function contentHubName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('contentHub')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_query resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $query + * + * @return string The formatted dashboard_query resource. + */ + public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string + { + return self::getPathTemplate('dashboardQuery')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'query' => $query, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * featured_content_native_dashboard resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $featuredContentNativeDashboard + * + * @return string The formatted featured_content_native_dashboard resource. + */ + public static function featuredContentNativeDashboardName(string $project, string $location, string $instance, string $featuredContentNativeDashboard): string + { + return self::getPathTemplate('featuredContentNativeDashboard')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'featured_content_native_dashboard' => $featuredContentNativeDashboard, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * native_dashboard resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dashboard + * + * @return string The formatted native_dashboard resource. + */ + public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string + { + return self::getPathTemplate('nativeDashboard')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'dashboard' => $dashboard, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - contentHub: projects/{project}/locations/{location}/instances/{instance}/contentHub + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * - featuredContentNativeDashboard: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - nativeDashboard: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboardServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new FeaturedContentNativeDashboardServiceClient(['credentials' => + * $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Get a native dashboard featured content. + * + * The async variant is + * {@see FeaturedContentNativeDashboardServiceClient::getFeaturedContentNativeDashboardAsync()} + * . + * + * @example samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php + * + * @param GetFeaturedContentNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FeaturedContentNativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFeaturedContentNativeDashboard(GetFeaturedContentNativeDashboardRequest $request, array $callOptions = []): FeaturedContentNativeDashboard + { + return $this->startApiCall('GetFeaturedContentNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Install a native dashboard featured content. + * + * The async variant is + * {@see FeaturedContentNativeDashboardServiceClient::installFeaturedContentNativeDashboardAsync()} + * . + * + * @example samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php + * + * @param InstallFeaturedContentNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InstallFeaturedContentNativeDashboardResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function installFeaturedContentNativeDashboard(InstallFeaturedContentNativeDashboardRequest $request, array $callOptions = []): InstallFeaturedContentNativeDashboardResponse + { + return $this->startApiCall('InstallFeaturedContentNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * List all native dashboards featured content. + * + * The async variant is + * {@see FeaturedContentNativeDashboardServiceClient::listFeaturedContentNativeDashboardsAsync()} + * . + * + * @example samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php + * + * @param ListFeaturedContentNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listFeaturedContentNativeDashboards(ListFeaturedContentNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFeaturedContentNativeDashboards', $request, $callOptions); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php new file mode 100644 index 000000000000..da3746e28c93 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php @@ -0,0 +1,255 @@ + getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) + */ +final class InstanceServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.InstanceService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/instance_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/instance_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/instance_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/instance_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\InstanceServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new InstanceServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Gets a Instance. + * + * The async variant is {@see InstanceServiceClient::getInstanceAsync()} . + * + * @example samples/V1/InstanceServiceClient/get_instance.php + * + * @param GetInstanceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Instance + * + * @throws ApiException Thrown if the API call fails. + */ + public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance + { + return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php new file mode 100644 index 000000000000..971464871d9a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php @@ -0,0 +1,644 @@ + addChartAsync(AddChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface createNativeDashboardAsync(CreateNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteNativeDashboardAsync(DeleteNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface duplicateChartAsync(DuplicateChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface duplicateNativeDashboardAsync(DuplicateNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface editChartAsync(EditChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportNativeDashboardsAsync(ExportNativeDashboardsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNativeDashboardAsync(GetNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface importNativeDashboardsAsync(ImportNativeDashboardsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNativeDashboardsAsync(ListNativeDashboardsRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeChartAsync(RemoveChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateNativeDashboardAsync(UpdateNativeDashboardRequest $request, array $optionalArgs = []) + */ +final class NativeDashboardServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.NativeDashboardService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/native_dashboard_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/native_dashboard_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/native_dashboard_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/native_dashboard_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_query resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $query + * + * @return string The formatted dashboard_query resource. + */ + public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string + { + return self::getPathTemplate('dashboardQuery')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'query' => $query, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * native_dashboard resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dashboard + * + * @return string The formatted native_dashboard resource. + */ + public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string + { + return self::getPathTemplate('nativeDashboard')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'dashboard' => $dashboard, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - nativeDashboard: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\NativeDashboardServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new NativeDashboardServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Add chart in a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::addChartAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/add_chart.php + * + * @param AddChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AddChartResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function addChart(AddChartRequest $request, array $callOptions = []): AddChartResponse + { + return $this->startApiCall('AddChart', $request, $callOptions)->wait(); + } + + /** + * Create a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::createNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/create_native_dashboard.php + * + * @param CreateNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function createNativeDashboard(CreateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('CreateNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Delete a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::deleteNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php + * + * @param DeleteNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteNativeDashboard(DeleteNativeDashboardRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Duplicate chart in a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::duplicateChartAsync()} + * . + * + * @example samples/V1/NativeDashboardServiceClient/duplicate_chart.php + * + * @param DuplicateChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DuplicateChartResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function duplicateChart(DuplicateChartRequest $request, array $callOptions = []): DuplicateChartResponse + { + return $this->startApiCall('DuplicateChart', $request, $callOptions)->wait(); + } + + /** + * Duplicate a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::duplicateNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php + * + * @param DuplicateNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function duplicateNativeDashboard(DuplicateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('DuplicateNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Edit chart in a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::editChartAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/edit_chart.php + * + * @param EditChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EditChartResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function editChart(EditChartRequest $request, array $callOptions = []): EditChartResponse + { + return $this->startApiCall('EditChart', $request, $callOptions)->wait(); + } + + /** + * Exports the dashboards. + * + * The async variant is + * {@see NativeDashboardServiceClient::exportNativeDashboardsAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/export_native_dashboards.php + * + * @param ExportNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ExportNativeDashboardsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function exportNativeDashboards(ExportNativeDashboardsRequest $request, array $callOptions = []): ExportNativeDashboardsResponse + { + return $this->startApiCall('ExportNativeDashboards', $request, $callOptions)->wait(); + } + + /** + * Get a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::getNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/get_native_dashboard.php + * + * @param GetNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function getNativeDashboard(GetNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('GetNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Imports the dashboards. + * + * The async variant is + * {@see NativeDashboardServiceClient::importNativeDashboardsAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/import_native_dashboards.php + * + * @param ImportNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ImportNativeDashboardsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function importNativeDashboards(ImportNativeDashboardsRequest $request, array $callOptions = []): ImportNativeDashboardsResponse + { + return $this->startApiCall('ImportNativeDashboards', $request, $callOptions)->wait(); + } + + /** + * List all dashboards. + * + * The async variant is + * {@see NativeDashboardServiceClient::listNativeDashboardsAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/list_native_dashboards.php + * + * @param ListNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listNativeDashboards(ListNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListNativeDashboards', $request, $callOptions); + } + + /** + * Remove chart from a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::removeChartAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/remove_chart.php + * + * @param RemoveChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function removeChart(RemoveChartRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('RemoveChart', $request, $callOptions)->wait(); + } + + /** + * Update a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::updateNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/update_native_dashboard.php + * + * @param UpdateNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateNativeDashboard(UpdateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('UpdateNativeDashboard', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php new file mode 100644 index 000000000000..3f922d8c579f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php @@ -0,0 +1,366 @@ + createReferenceListAsync(CreateReferenceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReferenceListAsync(GetReferenceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReferenceListsAsync(ListReferenceListsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateReferenceListAsync(UpdateReferenceListRequest $request, array $optionalArgs = []) + */ +final class ReferenceListServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.ReferenceListService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/reference_list_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/reference_list_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/reference_list_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/reference_list_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * reference_list resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $referenceList + * + * @return string The formatted reference_list resource. + */ + public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string + { + return self::getPathTemplate('referenceList')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'reference_list' => $referenceList, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\ReferenceListServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ReferenceListServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a new reference list. + * + * The async variant is + * {@see ReferenceListServiceClient::createReferenceListAsync()} . + * + * @example samples/V1/ReferenceListServiceClient/create_reference_list.php + * + * @param CreateReferenceListRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReferenceList + * + * @throws ApiException Thrown if the API call fails. + */ + public function createReferenceList(CreateReferenceListRequest $request, array $callOptions = []): ReferenceList + { + return $this->startApiCall('CreateReferenceList', $request, $callOptions)->wait(); + } + + /** + * Gets a single reference list. + * + * The async variant is {@see ReferenceListServiceClient::getReferenceListAsync()} + * . + * + * @example samples/V1/ReferenceListServiceClient/get_reference_list.php + * + * @param GetReferenceListRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReferenceList + * + * @throws ApiException Thrown if the API call fails. + */ + public function getReferenceList(GetReferenceListRequest $request, array $callOptions = []): ReferenceList + { + return $this->startApiCall('GetReferenceList', $request, $callOptions)->wait(); + } + + /** + * Lists a collection of reference lists. + * + * The async variant is + * {@see ReferenceListServiceClient::listReferenceListsAsync()} . + * + * @example samples/V1/ReferenceListServiceClient/list_reference_lists.php + * + * @param ListReferenceListsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listReferenceLists(ListReferenceListsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReferenceLists', $request, $callOptions); + } + + /** + * Updates an existing reference list. + * + * The async variant is + * {@see ReferenceListServiceClient::updateReferenceListAsync()} . + * + * @example samples/V1/ReferenceListServiceClient/update_reference_list.php + * + * @param UpdateReferenceListRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReferenceList + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateReferenceList(UpdateReferenceListRequest $request, array $callOptions = []): ReferenceList + { + return $this->startApiCall('UpdateReferenceList', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php new file mode 100644 index 000000000000..bdbeb342276e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php @@ -0,0 +1,733 @@ + createRetrohuntAsync(CreateRetrohuntRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRuleAsync(CreateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRuleAsync(DeleteRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRetrohuntAsync(GetRetrohuntRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRuleAsync(GetRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRuleDeploymentAsync(GetRuleDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRetrohuntsAsync(ListRetrohuntsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRuleDeploymentsAsync(ListRuleDeploymentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRuleRevisionsAsync(ListRuleRevisionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRulesAsync(ListRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRuleAsync(UpdateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRuleDeploymentAsync(UpdateRuleDeploymentRequest $request, array $optionalArgs = []) + */ +final class RuleServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.RuleService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/rule_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/rule_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/rule_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/rule_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_scope resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessScope + * + * @return string The formatted data_access_scope resource. + */ + public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string + { + return self::getPathTemplate('dataAccessScope')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_scope' => $dataAccessScope, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * reference_list resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $referenceList + * + * @return string The formatted reference_list resource. + */ + public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string + { + return self::getPathTemplate('referenceList')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'reference_list' => $referenceList, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a retrohunt + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $rule + * @param string $retrohunt + * + * @return string The formatted retrohunt resource. + */ + public static function retrohuntName(string $project, string $location, string $instance, string $rule, string $retrohunt): string + { + return self::getPathTemplate('retrohunt')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'rule' => $rule, + 'retrohunt' => $retrohunt, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a rule + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $rule + * + * @return string The formatted rule resource. + */ + public static function ruleName(string $project, string $location, string $instance, string $rule): string + { + return self::getPathTemplate('rule')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'rule' => $rule, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * rule_deployment resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $rule + * + * @return string The formatted rule_deployment resource. + */ + public static function ruleDeploymentName(string $project, string $location, string $instance, string $rule): string + { + return self::getPathTemplate('ruleDeployment')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'rule' => $rule, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} + * - retrohunt: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt} + * - rule: projects/{project}/locations/{location}/instances/{instance}/rules/{rule} + * - ruleDeployment: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\RuleServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new RuleServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Create a Retrohunt. + * + * The async variant is {@see RuleServiceClient::createRetrohuntAsync()} . + * + * @example samples/V1/RuleServiceClient/create_retrohunt.php + * + * @param CreateRetrohuntRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRetrohunt(CreateRetrohuntRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateRetrohunt', $request, $callOptions)->wait(); + } + + /** + * Creates a new Rule. + * + * The async variant is {@see RuleServiceClient::createRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/create_rule.php + * + * @param CreateRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Rule + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRule(CreateRuleRequest $request, array $callOptions = []): Rule + { + return $this->startApiCall('CreateRule', $request, $callOptions)->wait(); + } + + /** + * Deletes a Rule. + * + * The async variant is {@see RuleServiceClient::deleteRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/delete_rule.php + * + * @param DeleteRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteRule(DeleteRuleRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteRule', $request, $callOptions)->wait(); + } + + /** + * Get a Retrohunt. + * + * The async variant is {@see RuleServiceClient::getRetrohuntAsync()} . + * + * @example samples/V1/RuleServiceClient/get_retrohunt.php + * + * @param GetRetrohuntRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Retrohunt + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRetrohunt(GetRetrohuntRequest $request, array $callOptions = []): Retrohunt + { + return $this->startApiCall('GetRetrohunt', $request, $callOptions)->wait(); + } + + /** + * Gets a Rule. + * + * The async variant is {@see RuleServiceClient::getRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/get_rule.php + * + * @param GetRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Rule + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRule(GetRuleRequest $request, array $callOptions = []): Rule + { + return $this->startApiCall('GetRule', $request, $callOptions)->wait(); + } + + /** + * Gets a RuleDeployment. + * + * The async variant is {@see RuleServiceClient::getRuleDeploymentAsync()} . + * + * @example samples/V1/RuleServiceClient/get_rule_deployment.php + * + * @param GetRuleDeploymentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RuleDeployment + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRuleDeployment(GetRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment + { + return $this->startApiCall('GetRuleDeployment', $request, $callOptions)->wait(); + } + + /** + * List Retrohunts. + * + * The async variant is {@see RuleServiceClient::listRetrohuntsAsync()} . + * + * @example samples/V1/RuleServiceClient/list_retrohunts.php + * + * @param ListRetrohuntsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRetrohunts(ListRetrohuntsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRetrohunts', $request, $callOptions); + } + + /** + * Lists RuleDeployments across all Rules. + * + * The async variant is {@see RuleServiceClient::listRuleDeploymentsAsync()} . + * + * @example samples/V1/RuleServiceClient/list_rule_deployments.php + * + * @param ListRuleDeploymentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRuleDeployments(ListRuleDeploymentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRuleDeployments', $request, $callOptions); + } + + /** + * Lists all revisions of the rule. + * + * The async variant is {@see RuleServiceClient::listRuleRevisionsAsync()} . + * + * @example samples/V1/RuleServiceClient/list_rule_revisions.php + * + * @param ListRuleRevisionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRuleRevisions(ListRuleRevisionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRuleRevisions', $request, $callOptions); + } + + /** + * Lists Rules. + * + * The async variant is {@see RuleServiceClient::listRulesAsync()} . + * + * @example samples/V1/RuleServiceClient/list_rules.php + * + * @param ListRulesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRules(ListRulesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRules', $request, $callOptions); + } + + /** + * Updates a Rule. + * + * The async variant is {@see RuleServiceClient::updateRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/update_rule.php + * + * @param UpdateRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Rule + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRule(UpdateRuleRequest $request, array $callOptions = []): Rule + { + return $this->startApiCall('UpdateRule', $request, $callOptions)->wait(); + } + + /** + * Updates a RuleDeployment. + * Failures are not necessarily atomic. If there is a request to update + * multiple fields, and any update to a single field fails, an error will be + * returned, but other fields may remain successfully updated. + * + * The async variant is {@see RuleServiceClient::updateRuleDeploymentAsync()} . + * + * @example samples/V1/RuleServiceClient/update_rule_deployment.php + * + * @param UpdateRuleDeploymentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RuleDeployment + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRuleDeployment(UpdateRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment + { + return $this->startApiCall('UpdateRuleDeployment', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..90cfa612edbc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json @@ -0,0 +1,429 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.chronicle.v1", + "libraryPackage": "Google\\Cloud\\Chronicle\\V1", + "services": { + "DashboardQueryService": { + "clients": { + "grpc": { + "libraryClient": "DashboardQueryServiceGapicClient", + "rpcs": { + "ExecuteDashboardQuery": { + "methods": [ + "executeDashboardQuery" + ] + }, + "GetDashboardQuery": { + "methods": [ + "getDashboardQuery" + ] + } + } + } + } + }, + "DashboardChartService": { + "clients": { + "grpc": { + "libraryClient": "DashboardChartServiceGapicClient", + "rpcs": { + "BatchGetDashboardCharts": { + "methods": [ + "batchGetDashboardCharts" + ] + }, + "GetDashboardChart": { + "methods": [ + "getDashboardChart" + ] + } + } + } + } + }, + "DataAccessControlService": { + "clients": { + "grpc": { + "libraryClient": "DataAccessControlServiceGapicClient", + "rpcs": { + "CreateDataAccessLabel": { + "methods": [ + "createDataAccessLabel" + ] + }, + "CreateDataAccessScope": { + "methods": [ + "createDataAccessScope" + ] + }, + "DeleteDataAccessLabel": { + "methods": [ + "deleteDataAccessLabel" + ] + }, + "DeleteDataAccessScope": { + "methods": [ + "deleteDataAccessScope" + ] + }, + "GetDataAccessLabel": { + "methods": [ + "getDataAccessLabel" + ] + }, + "GetDataAccessScope": { + "methods": [ + "getDataAccessScope" + ] + }, + "ListDataAccessLabels": { + "methods": [ + "listDataAccessLabels" + ] + }, + "ListDataAccessScopes": { + "methods": [ + "listDataAccessScopes" + ] + }, + "UpdateDataAccessLabel": { + "methods": [ + "updateDataAccessLabel" + ] + }, + "UpdateDataAccessScope": { + "methods": [ + "updateDataAccessScope" + ] + } + } + } + } + }, + "DataTableService": { + "clients": { + "grpc": { + "libraryClient": "DataTableServiceGapicClient", + "rpcs": { + "BulkCreateDataTableRows": { + "methods": [ + "bulkCreateDataTableRows" + ] + }, + "BulkGetDataTableRows": { + "methods": [ + "bulkGetDataTableRows" + ] + }, + "BulkReplaceDataTableRows": { + "methods": [ + "bulkReplaceDataTableRows" + ] + }, + "BulkUpdateDataTableRows": { + "methods": [ + "bulkUpdateDataTableRows" + ] + }, + "CreateDataTable": { + "methods": [ + "createDataTable" + ] + }, + "CreateDataTableRow": { + "methods": [ + "createDataTableRow" + ] + }, + "DeleteDataTable": { + "methods": [ + "deleteDataTable" + ] + }, + "DeleteDataTableRow": { + "methods": [ + "deleteDataTableRow" + ] + }, + "GetDataTable": { + "methods": [ + "getDataTable" + ] + }, + "GetDataTableOperationErrors": { + "methods": [ + "getDataTableOperationErrors" + ] + }, + "GetDataTableRow": { + "methods": [ + "getDataTableRow" + ] + }, + "ListDataTableRows": { + "methods": [ + "listDataTableRows" + ] + }, + "ListDataTables": { + "methods": [ + "listDataTables" + ] + }, + "UpdateDataTable": { + "methods": [ + "updateDataTable" + ] + }, + "UpdateDataTableRow": { + "methods": [ + "updateDataTableRow" + ] + } + } + } + } + }, + "EntityService": { + "clients": { + "grpc": { + "libraryClient": "EntityServiceGapicClient", + "rpcs": { + "CreateWatchlist": { + "methods": [ + "createWatchlist" + ] + }, + "DeleteWatchlist": { + "methods": [ + "deleteWatchlist" + ] + }, + "GetWatchlist": { + "methods": [ + "getWatchlist" + ] + }, + "ListWatchlists": { + "methods": [ + "listWatchlists" + ] + }, + "UpdateWatchlist": { + "methods": [ + "updateWatchlist" + ] + } + } + } + } + }, + "NativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "NativeDashboardServiceGapicClient", + "rpcs": { + "AddChart": { + "methods": [ + "addChart" + ] + }, + "CreateNativeDashboard": { + "methods": [ + "createNativeDashboard" + ] + }, + "DeleteNativeDashboard": { + "methods": [ + "deleteNativeDashboard" + ] + }, + "DuplicateChart": { + "methods": [ + "duplicateChart" + ] + }, + "DuplicateNativeDashboard": { + "methods": [ + "duplicateNativeDashboard" + ] + }, + "EditChart": { + "methods": [ + "editChart" + ] + }, + "ExportNativeDashboards": { + "methods": [ + "exportNativeDashboards" + ] + }, + "GetNativeDashboard": { + "methods": [ + "getNativeDashboard" + ] + }, + "ImportNativeDashboards": { + "methods": [ + "importNativeDashboards" + ] + }, + "ListNativeDashboards": { + "methods": [ + "listNativeDashboards" + ] + }, + "RemoveChart": { + "methods": [ + "removeChart" + ] + }, + "UpdateNativeDashboard": { + "methods": [ + "updateNativeDashboard" + ] + } + } + } + } + }, + "FeaturedContentNativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "FeaturedContentNativeDashboardServiceGapicClient", + "rpcs": { + "GetFeaturedContentNativeDashboard": { + "methods": [ + "getFeaturedContentNativeDashboard" + ] + }, + "InstallFeaturedContentNativeDashboard": { + "methods": [ + "installFeaturedContentNativeDashboard" + ] + }, + "ListFeaturedContentNativeDashboards": { + "methods": [ + "listFeaturedContentNativeDashboards" + ] + } + } + } + } + }, + "InstanceService": { + "clients": { + "grpc": { + "libraryClient": "InstanceServiceGapicClient", + "rpcs": { + "GetInstance": { + "methods": [ + "getInstance" + ] + } + } + } + } + }, + "ReferenceListService": { + "clients": { + "grpc": { + "libraryClient": "ReferenceListServiceGapicClient", + "rpcs": { + "CreateReferenceList": { + "methods": [ + "createReferenceList" + ] + }, + "GetReferenceList": { + "methods": [ + "getReferenceList" + ] + }, + "ListReferenceLists": { + "methods": [ + "listReferenceLists" + ] + }, + "UpdateReferenceList": { + "methods": [ + "updateReferenceList" + ] + } + } + } + } + }, + "RuleService": { + "clients": { + "grpc": { + "libraryClient": "RuleServiceGapicClient", + "rpcs": { + "CreateRetrohunt": { + "methods": [ + "createRetrohunt" + ] + }, + "CreateRule": { + "methods": [ + "createRule" + ] + }, + "DeleteRule": { + "methods": [ + "deleteRule" + ] + }, + "GetRetrohunt": { + "methods": [ + "getRetrohunt" + ] + }, + "GetRule": { + "methods": [ + "getRule" + ] + }, + "GetRuleDeployment": { + "methods": [ + "getRuleDeployment" + ] + }, + "ListRetrohunts": { + "methods": [ + "listRetrohunts" + ] + }, + "ListRuleDeployments": { + "methods": [ + "listRuleDeployments" + ] + }, + "ListRuleRevisions": { + "methods": [ + "listRuleRevisions" + ] + }, + "ListRules": { + "methods": [ + "listRules" + ] + }, + "UpdateRule": { + "methods": [ + "updateRule" + ] + }, + "UpdateRuleDeployment": { + "methods": [ + "updateRuleDeployment" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json new file mode 100644 index 000000000000..31595fe9e655 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json @@ -0,0 +1,44 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DashboardChartService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "BatchGetDashboardCharts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDashboardChart": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php new file mode 100644 index 000000000000..9a91c348c9c9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php @@ -0,0 +1,56 @@ + [ + 'google.cloud.chronicle.v1.DashboardChartService' => [ + 'BatchGetDashboardCharts' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BatchGetDashboardChartsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DashboardChart', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php new file mode 100644 index 000000000000..f178ba0b2d48 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php @@ -0,0 +1,98 @@ + [ + 'google.cloud.chronicle.v1.DashboardChartService' => [ + 'BatchGetDashboardCharts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dashboardCharts:batchGet', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardChart' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dashboardCharts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json new file mode 100644 index 000000000000..4490dae622f1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DashboardQueryService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 1800000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 1800000, + "total_timeout_millis": 1800000 + } + }, + "methods": { + "ExecuteDashboardQuery": { + "timeout_millis": 1800000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetDashboardQuery": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php new file mode 100644 index 000000000000..e4733997aaa5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php @@ -0,0 +1,57 @@ + [ + 'google.cloud.chronicle.v1.DashboardQueryService' => [ + 'ExecuteDashboardQuery' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardQuery' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DashboardQuery', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php new file mode 100644 index 000000000000..44abdc791cc9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php @@ -0,0 +1,99 @@ + [ + 'google.cloud.chronicle.v1.DashboardQueryService' => [ + 'ExecuteDashboardQuery' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dashboardQueries:execute', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardQuery' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dashboardQueries/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json new file mode 100644 index 000000000000..93ed52f8b477 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json @@ -0,0 +1,94 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DataAccessControlService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "CreateDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "GetDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataAccessLabels": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataAccessScopes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "UpdateDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php new file mode 100644 index 000000000000..c8a4082ca4c9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php @@ -0,0 +1,171 @@ + [ + 'google.cloud.chronicle.v1.DataAccessControlService' => [ + 'CreateDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAccessLabels' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAccessLabels', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessLabelsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAccessScopes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAccessScopes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessScopesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', + 'headerParams' => [ + [ + 'keyName' => 'data_access_label.name', + 'fieldAccessors' => [ + 'getDataAccessLabel', + 'getName', + ], + ], + ], + ], + 'UpdateDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', + 'headerParams' => [ + [ + 'keyName' => 'data_access_scope.name', + 'fieldAccessors' => [ + 'getDataAccessScope', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dataAccessLabel' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}', + 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php new file mode 100644 index 000000000000..5541511b522c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php @@ -0,0 +1,198 @@ + [ + 'google.cloud.chronicle.v1.DataAccessControlService' => [ + 'CreateDataAccessLabel' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', + 'body' => 'data_access_label', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_access_label_id', + ], + ], + 'CreateDataAccessScope' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', + 'body' => 'data_access_scope', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_access_scope_id', + ], + ], + 'DeleteDataAccessLabel' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAccessScope' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessLabel' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessScope' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAccessLabels' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAccessScopes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataAccessLabel' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}', + 'body' => 'data_access_label', + 'placeholders' => [ + 'data_access_label.name' => [ + 'getters' => [ + 'getDataAccessLabel', + 'getName', + ], + ], + ], + ], + 'UpdateDataAccessScope' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}', + 'body' => 'data_access_scope', + 'placeholders' => [ + 'data_access_scope.name' => [ + 'getters' => [ + 'getDataAccessScope', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json new file mode 100644 index 000000000000..6919c5f205c8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json @@ -0,0 +1,119 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DataTableService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_4_codes": [ + "UNAVAILABLE" + ], + "no_retry_5_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_4_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + }, + "no_retry_5_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "BulkCreateDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "BulkGetDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "BulkReplaceDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "BulkUpdateDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "CreateDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "CreateDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "DeleteDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "DeleteDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "GetDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "GetDataTableOperationErrors": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "GetDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "ListDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "ListDataTables": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "UpdateDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "UpdateDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php new file mode 100644 index 000000000000..8e920d69d520 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php @@ -0,0 +1,233 @@ + [ + 'google.cloud.chronicle.v1.DataTableService' => [ + 'BulkCreateDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BulkGetDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkGetDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BulkReplaceDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BulkUpdateDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableOperationErrors' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableOperationErrors', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDataTableRows' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataTableRows', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataTables' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataTables', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTablesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', + 'headerParams' => [ + [ + 'keyName' => 'data_table.name', + 'fieldAccessors' => [ + 'getDataTable', + 'getName', + ], + ], + ], + ], + 'UpdateDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', + 'headerParams' => [ + [ + 'keyName' => 'data_table_row.name', + 'fieldAccessors' => [ + 'getDataTableRow', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', + 'dataTable' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}', + 'dataTableOperationErrors' => 'projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}', + 'dataTableRow' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php new file mode 100644 index 000000000000..b16af4a2aa89 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php @@ -0,0 +1,254 @@ + [ + 'google.cloud.chronicle.v1.DataTableService' => [ + 'BulkCreateDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BulkGetDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BulkReplaceDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BulkUpdateDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataTable' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', + 'body' => 'data_table', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_table_id', + ], + ], + 'CreateDataTableRow' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', + 'body' => 'data_table_row', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataTable' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataTableRow' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTable' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableOperationErrors' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableRow' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDataTableRows' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataTables' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataTable' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}', + 'body' => 'data_table', + 'placeholders' => [ + 'data_table.name' => [ + 'getters' => [ + 'getDataTable', + 'getName', + ], + ], + ], + ], + 'UpdateDataTableRow' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', + 'body' => 'data_table_row', + 'placeholders' => [ + 'data_table_row.name' => [ + 'getters' => [ + 'getDataTableRow', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json new file mode 100644 index 000000000000..393bd5ff80f5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json @@ -0,0 +1,69 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.EntityService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_2_codes": [ + "UNAVAILABLE" + ], + "no_retry_4_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_2_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 90000, + "initial_rpc_timeout_millis": 90000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 90000, + "total_timeout_millis": 90000 + }, + "no_retry_4_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 90000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 90000, + "total_timeout_millis": 90000 + } + }, + "methods": { + "CreateWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "DeleteWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "GetWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListWatchlists": { + "timeout_millis": 90000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "UpdateWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php new file mode 100644 index 000000000000..3e621e9503b3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php @@ -0,0 +1,101 @@ + [ + 'google.cloud.chronicle.v1.EntityService' => [ + 'CreateWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListWatchlists' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWatchlists', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListWatchlistsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', + 'headerParams' => [ + [ + 'keyName' => 'watchlist.name', + 'fieldAccessors' => [ + 'getWatchlist', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'watchlist' => 'projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php new file mode 100644 index 000000000000..eebd35bba736 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php @@ -0,0 +1,134 @@ + [ + 'google.cloud.chronicle.v1.EntityService' => [ + 'CreateWatchlist' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', + 'body' => 'watchlist', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteWatchlist' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWatchlist' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListWatchlists' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateWatchlist' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}', + 'body' => 'watchlist', + 'placeholders' => [ + 'watchlist.name' => [ + 'getters' => [ + 'getWatchlist', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json new file mode 100644 index 000000000000..f06003b592c2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json @@ -0,0 +1,59 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "GetFeaturedContentNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "InstallFeaturedContentNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListFeaturedContentNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php new file mode 100644 index 000000000000..7a4c36e97ba9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php @@ -0,0 +1,80 @@ + [ + 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService' => [ + 'GetFeaturedContentNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'InstallFeaturedContentNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\InstallFeaturedContentNativeDashboardResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListFeaturedContentNativeDashboards' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFeaturedContentNativeDashboards', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListFeaturedContentNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'contentHub' => 'projects/{project}/locations/{location}/instances/{instance}/contentHub', + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', + 'featuredContentNativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'nativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php new file mode 100644 index 000000000000..414c0d943156 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php @@ -0,0 +1,110 @@ + [ + 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService' => [ + 'GetFeaturedContentNativeDashboard' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'InstallFeaturedContentNativeDashboard' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}:install', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListFeaturedContentNativeDashboards' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/contentHub}/featuredContentNativeDashboards', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json new file mode 100644 index 000000000000..5de3bac58b09 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json @@ -0,0 +1,39 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.InstanceService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "GetInstance": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php new file mode 100644 index 000000000000..7f7d60f75b19 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php @@ -0,0 +1,43 @@ + [ + 'google.cloud.chronicle.v1.InstanceService' => [ + 'GetInstance' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Instance', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php new file mode 100644 index 000000000000..d4685582daa0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php @@ -0,0 +1,87 @@ + [ + 'google.cloud.chronicle.v1.InstanceService' => [ + 'GetInstance' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json new file mode 100644 index 000000000000..9de9c63abe1d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json @@ -0,0 +1,104 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.NativeDashboardService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "AddChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "CreateNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DuplicateChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DuplicateNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "EditChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "ExportNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ImportNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "ListNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RemoveChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "UpdateNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php new file mode 100644 index 000000000000..edf23c87150a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php @@ -0,0 +1,187 @@ + [ + 'google.cloud.chronicle.v1.NativeDashboardService' => [ + 'AddChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\AddChartResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DuplicateChartResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'EditChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\EditChartResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ExportNativeDashboards' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ExportNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ImportNativeDashboards' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ImportNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListNativeDashboards' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getNativeDashboards', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RemoveChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'native_dashboard.name', + 'fieldAccessors' => [ + 'getNativeDashboard', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'nativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php new file mode 100644 index 000000000000..db983134a840 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php @@ -0,0 +1,221 @@ + [ + 'google.cloud.chronicle.v1.NativeDashboardService' => [ + 'AddChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:addChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateNativeDashboard' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards', + 'body' => 'native_dashboard', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteNativeDashboard' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicateChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateNativeDashboard' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicate', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'EditChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ExportNativeDashboards' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:export', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetNativeDashboard' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportNativeDashboards' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:import', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListNativeDashboards' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RemoveChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:removeChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateNativeDashboard' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{native_dashboard.name=projects/*/locations/*/instances/*/nativeDashboards/*}', + 'body' => 'native_dashboard', + 'placeholders' => [ + 'native_dashboard.name' => [ + 'getters' => [ + 'getNativeDashboard', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json new file mode 100644 index 000000000000..731c05c97068 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json @@ -0,0 +1,64 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.ReferenceListService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateReferenceList": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "GetReferenceList": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListReferenceLists": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateReferenceList": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php new file mode 100644 index 000000000000..388793580afd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php @@ -0,0 +1,89 @@ + [ + 'google.cloud.chronicle.v1.ReferenceListService' => [ + 'CreateReferenceList' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetReferenceList' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListReferenceLists' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReferenceLists', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListReferenceListsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateReferenceList' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', + 'headerParams' => [ + [ + 'keyName' => 'reference_list.name', + 'fieldAccessors' => [ + 'getReferenceList', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php new file mode 100644 index 000000000000..9763cbfd0f4d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php @@ -0,0 +1,126 @@ + [ + 'google.cloud.chronicle.v1.ReferenceListService' => [ + 'CreateReferenceList' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', + 'body' => 'reference_list', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'reference_list_id', + ], + ], + 'GetReferenceList' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListReferenceLists' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateReferenceList' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}', + 'body' => 'reference_list', + 'placeholders' => [ + 'reference_list.name' => [ + 'getters' => [ + 'getReferenceList', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json new file mode 100644 index 000000000000..8bed0b79f6bd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json @@ -0,0 +1,126 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.RuleService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "retry_policy_3_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [], + "no_retry_3_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "retry_policy_3_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 600000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_3_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateRetrohunt": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" + }, + "CreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteRule": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "GetRetrohunt": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRule": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRuleDeployment": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "ListRetrohunts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListRuleDeployments": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "ListRuleRevisions": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "ListRules": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "UpdateRule": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" + }, + "UpdateRuleDeployment": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php new file mode 100644 index 000000000000..94e1a30f30f7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php @@ -0,0 +1,221 @@ + [ + 'google.cloud.chronicle.v1.RuleService' => [ + 'CreateRetrohunt' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Chronicle\V1\Retrohunt', + 'metadataReturnType' => '\Google\Cloud\Chronicle\V1\RetrohuntMetadata', + 'initialPollDelayMillis' => '1000', + 'pollDelayMultiplier' => '2.0', + 'maxPollDelayMillis' => '10000', + 'totalPollTimeoutMillis' => '900000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRetrohunt' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Retrohunt', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRuleDeployment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListRetrohunts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRetrohunts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRetrohuntsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleDeployments' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRuleDeployments', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleDeploymentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleRevisions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRules', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleRevisionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListRules' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRules', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRulesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', + 'headerParams' => [ + [ + 'keyName' => 'rule.name', + 'fieldAccessors' => [ + 'getRule', + 'getName', + ], + ], + ], + ], + 'UpdateRuleDeployment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', + 'headerParams' => [ + [ + 'keyName' => 'rule_deployment.name', + 'fieldAccessors' => [ + 'getRuleDeployment', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', + 'retrohunt' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}', + 'rule' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}', + 'ruleDeployment' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php new file mode 100644 index 000000000000..0da0c5c50559 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php @@ -0,0 +1,217 @@ + [ + 'google.cloud.chronicle.v1.RuleService' => [ + 'CreateRetrohunt' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', + 'body' => 'retrohunt', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRule' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', + 'body' => 'rule', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteRule' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRetrohunt' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRule' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRuleDeployment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListRetrohunts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleDeployments' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleRevisions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListRules' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateRule' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}', + 'body' => 'rule', + 'placeholders' => [ + 'rule.name' => [ + 'getters' => [ + 'getRule', + 'getName', + ], + ], + ], + ], + 'UpdateRuleDeployment' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}', + 'body' => 'rule_deployment', + 'placeholders' => [ + 'rule_deployment.name' => [ + 'getters' => [ + 'getRuleDeployment', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php new file mode 100644 index 000000000000..db0110e9fdf8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php @@ -0,0 +1,241 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DashboardChartServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DashboardChartServiceClient($options); + } + + /** @test */ + public function batchGetDashboardChartsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchGetDashboardChartsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $formattedNames = [ + $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), + ]; + $request = (new BatchGetDashboardChartsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchGetDashboardCharts($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchGetDashboardChartsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $formattedNames = [ + $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), + ]; + $request = (new BatchGetDashboardChartsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchGetDashboardCharts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $nativeDashboard = 'nativeDashboard-671726484'; + $etag = 'etag3123477'; + $expectedResponse = new DashboardChart(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setNativeDashboard($nativeDashboard); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new GetDashboardChartRequest()) + ->setName($formattedName); + $response = $gapicClient->getDashboardChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/GetDashboardChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new GetDashboardChartRequest()) + ->setName($formattedName); + try { + $gapicClient->getDashboardChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchGetDashboardChartsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchGetDashboardChartsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $formattedNames = [ + $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), + ]; + $request = (new BatchGetDashboardChartsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchGetDashboardChartsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php new file mode 100644 index 000000000000..669772c5a4aa --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php @@ -0,0 +1,246 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DashboardQueryServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DashboardQueryServiceClient($options); + } + + /** @test */ + public function executeDashboardQueryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExecuteDashboardQueryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $query = new DashboardQuery(); + $queryQuery = 'queryQuery-181056288'; + $query->setQuery($queryQuery); + $queryInput = new Input(); + $query->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + $response = $gapicClient->executeDashboardQuery($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function executeDashboardQueryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $query = new DashboardQuery(); + $queryQuery = 'queryQuery-181056288'; + $query->setQuery($queryQuery); + $queryInput = new Input(); + $query->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + try { + $gapicClient->executeDashboardQuery($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardQueryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $query = 'query107944136'; + $dashboardChart = 'dashboardChart-1592924557'; + $etag = 'etag3123477'; + $expectedResponse = new DashboardQuery(); + $expectedResponse->setName($name2); + $expectedResponse->setQuery($query); + $expectedResponse->setDashboardChart($dashboardChart); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); + $request = (new GetDashboardQueryRequest()) + ->setName($formattedName); + $response = $gapicClient->getDashboardQuery($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/GetDashboardQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardQueryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); + $request = (new GetDashboardQueryRequest()) + ->setName($formattedName); + try { + $gapicClient->getDashboardQuery($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function executeDashboardQueryAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExecuteDashboardQueryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $query = new DashboardQuery(); + $queryQuery = 'queryQuery-181056288'; + $query->setQuery($queryQuery); + $queryInput = new Input(); + $query->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + $response = $gapicClient->executeDashboardQueryAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php new file mode 100644 index 000000000000..bc7163b93a3f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php @@ -0,0 +1,866 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataAccessControlServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataAccessControlServiceClient($options); + } + + /** @test */ + public function createDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessLabel = new DataAccessLabel(); + $dataAccessLabelId = 'dataAccessLabelId-1688134612'; + $request = (new CreateDataAccessLabelRequest()) + ->setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + $response = $gapicClient->createDataAccessLabel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabel(); + $this->assertProtobufEquals($dataAccessLabel, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabelId(); + $this->assertProtobufEquals($dataAccessLabelId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessLabel = new DataAccessLabel(); + $dataAccessLabelId = 'dataAccessLabelId-1688134612'; + $request = (new CreateDataAccessLabelRequest()) + ->setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + try { + $gapicClient->createDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $allowAll = false; + $expectedResponse = new DataAccessScope(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $expectedResponse->setAllowAll($allowAll); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $dataAccessScopeId = 'dataAccessScopeId-216227636'; + $request = (new CreateDataAccessScopeRequest()) + ->setParent($formattedParent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + $response = $gapicClient->createDataAccessScope($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAccessScope(); + $this->assertProtobufEquals($dataAccessScope, $actualValue); + $actualValue = $actualRequestObject->getDataAccessScopeId(); + $this->assertProtobufEquals($dataAccessScopeId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $dataAccessScopeId = 'dataAccessScopeId-216227636'; + $request = (new CreateDataAccessScopeRequest()) + ->setParent($formattedParent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + try { + $gapicClient->createDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new DeleteDataAccessLabelRequest()) + ->setName($formattedName); + $gapicClient->deleteDataAccessLabel($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new DeleteDataAccessLabelRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new DeleteDataAccessScopeRequest()) + ->setName($formattedName); + $gapicClient->deleteDataAccessScope($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new DeleteDataAccessScopeRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new GetDataAccessLabelRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAccessLabel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new GetDataAccessLabelRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $allowAll = false; + $expectedResponse = new DataAccessScope(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $expectedResponse->setAllowAll($allowAll); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new GetDataAccessScopeRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAccessScope($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new GetDataAccessScopeRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessLabelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAccessLabelsElement = new DataAccessLabel(); + $dataAccessLabels = [ + $dataAccessLabelsElement, + ]; + $expectedResponse = new ListDataAccessLabelsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAccessLabels($dataAccessLabels); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessLabelsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAccessLabels($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAccessLabels()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessLabels', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessLabelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessLabelsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAccessLabels($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessScopesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $globalDataAccessScopeGranted = true; + $nextPageToken = ''; + $dataAccessScopesElement = new DataAccessScope(); + $dataAccessScopes = [ + $dataAccessScopesElement, + ]; + $expectedResponse = new ListDataAccessScopesResponse(); + $expectedResponse->setGlobalDataAccessScopeGranted($globalDataAccessScopeGranted); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAccessScopes($dataAccessScopes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessScopesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAccessScopes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAccessScopes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessScopes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessScopesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessScopesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAccessScopes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $dataAccessLabel = new DataAccessLabel(); + $request = (new UpdateDataAccessLabelRequest()) + ->setDataAccessLabel($dataAccessLabel); + $response = $gapicClient->updateDataAccessLabel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getDataAccessLabel(); + $this->assertProtobufEquals($dataAccessLabel, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataAccessLabel = new DataAccessLabel(); + $request = (new UpdateDataAccessLabelRequest()) + ->setDataAccessLabel($dataAccessLabel); + try { + $gapicClient->updateDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $allowAll = false; + $expectedResponse = new DataAccessScope(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $expectedResponse->setAllowAll($allowAll); + $transport->addResponse($expectedResponse); + // Mock request + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $request = (new UpdateDataAccessScopeRequest()) + ->setDataAccessScope($dataAccessScope); + $response = $gapicClient->updateDataAccessScope($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getDataAccessScope(); + $this->assertProtobufEquals($dataAccessScope, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $request = (new UpdateDataAccessScopeRequest()) + ->setDataAccessScope($dataAccessScope); + try { + $gapicClient->updateDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessLabelAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessLabel = new DataAccessLabel(); + $dataAccessLabelId = 'dataAccessLabelId-1688134612'; + $request = (new CreateDataAccessLabelRequest()) + ->setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + $response = $gapicClient->createDataAccessLabelAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabel(); + $this->assertProtobufEquals($dataAccessLabel, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabelId(); + $this->assertProtobufEquals($dataAccessLabelId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php new file mode 100644 index 000000000000..125ba2f76d68 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php @@ -0,0 +1,1178 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataTableServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataTableServiceClient($options); + } + + /** @test */ + public function bulkCreateDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkCreateDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkCreateDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkCreateDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkCreateDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkGetDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkGetDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkGetDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkGetDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkGetDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkGetDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkGetDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkGetDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkReplaceDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkReplaceDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkReplaceDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkReplaceDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkReplaceDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkReplaceDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkReplaceDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkReplaceDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkUpdateDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkUpdateDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkUpdateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkUpdateDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkUpdateDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkUpdateDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkUpdateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkUpdateDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $dataTableUuid = 'dataTableUuid-1818199743'; + $ruleAssociationsCount = 1522562875; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $approximateRowCount = 297926913; + $expectedResponse = new DataTable(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDataTableUuid($dataTableUuid); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $expectedResponse->setApproximateRowCount($approximateRowCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $dataTableId = 'dataTableId-319210463'; + $request = (new CreateDataTableRequest()) + ->setParent($formattedParent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + $response = $gapicClient->createDataTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataTable(); + $this->assertProtobufEquals($dataTable, $actualValue); + $actualValue = $actualRequestObject->getDataTableId(); + $this->assertProtobufEquals($dataTableId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $dataTableId = 'dataTableId-319210463'; + $request = (new CreateDataTableRequest()) + ->setParent($formattedParent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + try { + $gapicClient->createDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $expectedResponse = new DataTableRow(); + $expectedResponse->setName($name); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new CreateDataTableRowRequest()) + ->setParent($formattedParent) + ->setDataTableRow($dataTableRow); + $response = $gapicClient->createDataTableRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataTableRow(); + $this->assertProtobufEquals($dataTableRow, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new CreateDataTableRowRequest()) + ->setParent($formattedParent) + ->setDataTableRow($dataTableRow); + try { + $gapicClient->createDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new DeleteDataTableRequest()) + ->setName($formattedName); + $gapicClient->deleteDataTable($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new DeleteDataTableRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new DeleteDataTableRowRequest()) + ->setName($formattedName); + $gapicClient->deleteDataTableRow($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new DeleteDataTableRowRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $dataTableUuid = 'dataTableUuid-1818199743'; + $ruleAssociationsCount = 1522562875; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $approximateRowCount = 297926913; + $expectedResponse = new DataTable(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDataTableUuid($dataTableUuid); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $expectedResponse->setApproximateRowCount($approximateRowCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new GetDataTableRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new GetDataTableRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableOperationErrorsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new DataTableOperationErrors(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); + $request = (new GetDataTableOperationErrorsRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataTableOperationErrors($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableOperationErrors', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableOperationErrorsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); + $request = (new GetDataTableOperationErrorsRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataTableOperationErrors($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $expectedResponse = new DataTableRow(); + $expectedResponse->setName($name2); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new GetDataTableRowRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataTableRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new GetDataTableRowRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataTableRowsElement = new DataTableRow(); + $dataTableRows = [ + $dataTableRowsElement, + ]; + $expectedResponse = new ListDataTableRowsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataTableRows($dataTableRows); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new ListDataTableRowsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataTableRows($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataTableRows()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new ListDataTableRowsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTablesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataTablesElement = new DataTable(); + $dataTables = [ + $dataTablesElement, + ]; + $expectedResponse = new ListDataTablesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataTables($dataTables); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataTablesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataTables($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataTables()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTables', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTablesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataTablesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataTables($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $dataTableUuid = 'dataTableUuid-1818199743'; + $ruleAssociationsCount = 1522562875; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $approximateRowCount = 297926913; + $expectedResponse = new DataTable(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDataTableUuid($dataTableUuid); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $expectedResponse->setApproximateRowCount($approximateRowCount); + $transport->addResponse($expectedResponse); + // Mock request + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $request = (new UpdateDataTableRequest()) + ->setDataTable($dataTable); + $response = $gapicClient->updateDataTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getDataTable(); + $this->assertProtobufEquals($dataTable, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $request = (new UpdateDataTableRequest()) + ->setDataTable($dataTable); + try { + $gapicClient->updateDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $expectedResponse = new DataTableRow(); + $expectedResponse->setName($name); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $transport->addResponse($expectedResponse); + // Mock request + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new UpdateDataTableRowRequest()) + ->setDataTableRow($dataTableRow); + $response = $gapicClient->updateDataTableRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getDataTableRow(); + $this->assertProtobufEquals($dataTableRow, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new UpdateDataTableRowRequest()) + ->setDataTableRow($dataTableRow); + try { + $gapicClient->updateDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkCreateDataTableRowsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkCreateDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkCreateDataTableRowsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php new file mode 100644 index 000000000000..ae91a174beb0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php @@ -0,0 +1,477 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return EntityServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new EntityServiceClient($options); + } + + /** @test */ + public function createWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + $response = $gapicClient->createWatchlist($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWatchlist(); + $this->assertProtobufEquals($watchlist, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + try { + $gapicClient->createWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new DeleteWatchlistRequest()) + ->setName($formattedName); + $gapicClient->deleteWatchlist($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/DeleteWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new DeleteWatchlistRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new GetWatchlistRequest()) + ->setName($formattedName); + $response = $gapicClient->getWatchlist($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/GetWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new GetWatchlistRequest()) + ->setName($formattedName); + try { + $gapicClient->getWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWatchlistsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $watchlistsElement = new Watchlist(); + $watchlists = [ + $watchlistsElement, + ]; + $expectedResponse = new ListWatchlistsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWatchlists($watchlists); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListWatchlistsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWatchlists($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWatchlists()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/ListWatchlists', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWatchlistsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListWatchlistsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWatchlists($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new UpdateWatchlistRequest()) + ->setWatchlist($watchlist); + $response = $gapicClient->updateWatchlist($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/UpdateWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getWatchlist(); + $this->assertProtobufEquals($watchlist, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new UpdateWatchlistRequest()) + ->setWatchlist($watchlist); + try { + $gapicClient->updateWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWatchlistAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + $response = $gapicClient->createWatchlistAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWatchlist(); + $this->assertProtobufEquals($watchlist, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php new file mode 100644 index 000000000000..e6d53dc7f72f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php @@ -0,0 +1,295 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return FeaturedContentNativeDashboardServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new FeaturedContentNativeDashboardServiceClient($options); + } + + /** @test */ + public function getFeaturedContentNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new FeaturedContentNativeDashboard(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new GetFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->getFeaturedContentNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFeaturedContentNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new GetFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->getFeaturedContentNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installFeaturedContentNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nativeDashboard = 'nativeDashboard-671726484'; + $expectedResponse = new InstallFeaturedContentNativeDashboardResponse(); + $expectedResponse->setNativeDashboard($nativeDashboard); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new InstallFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->installFeaturedContentNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/InstallFeaturedContentNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installFeaturedContentNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new InstallFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->installFeaturedContentNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFeaturedContentNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $featuredContentNativeDashboardsElement = new FeaturedContentNativeDashboard(); + $featuredContentNativeDashboards = [ + $featuredContentNativeDashboardsElement, + ]; + $expectedResponse = new ListFeaturedContentNativeDashboardsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFeaturedContentNativeDashboards($featuredContentNativeDashboards); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListFeaturedContentNativeDashboardsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFeaturedContentNativeDashboards($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFeaturedContentNativeDashboards()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/ListFeaturedContentNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFeaturedContentNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListFeaturedContentNativeDashboardsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFeaturedContentNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFeaturedContentNativeDashboardAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new FeaturedContentNativeDashboard(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new GetFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->getFeaturedContentNativeDashboardAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php new file mode 100644 index 000000000000..24e45ff2e5ba --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php @@ -0,0 +1,155 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return InstanceServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new InstanceServiceClient($options); + } + + /** @test */ + public function getInstanceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + $response = $gapicClient->getInstance($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getInstanceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + try { + $gapicClient->getInstance($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getInstanceAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + $response = $gapicClient->getInstanceAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php new file mode 100644 index 000000000000..39c444fc6a19 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php @@ -0,0 +1,1021 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return NativeDashboardServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new NativeDashboardServiceClient($options); + } + + /** @test */ + public function addChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AddChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $dashboardChart = new DashboardChart(); + $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; + $dashboardChart->setDisplayName($dashboardChartDisplayName); + $dashboardChartVisualization = new Visualization(); + $dashboardChart->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + $response = $gapicClient->addChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/AddChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($dashboardChart, $actualValue); + $actualValue = $actualRequestObject->getChartLayout(); + $this->assertProtobufEquals($chartLayout, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function addChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $dashboardChart = new DashboardChart(); + $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; + $dashboardChart->setDisplayName($dashboardChartDisplayName); + $dashboardChartVisualization = new Visualization(); + $dashboardChart->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + try { + $gapicClient->addChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new CreateNativeDashboardRequest()) + ->setParent($formattedParent) + ->setNativeDashboard($nativeDashboard); + $response = $gapicClient->createNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/CreateNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNativeDashboard(); + $this->assertProtobufEquals($nativeDashboard, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new CreateNativeDashboardRequest()) + ->setParent($formattedParent) + ->setNativeDashboard($nativeDashboard); + try { + $gapicClient->createNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new DeleteNativeDashboardRequest()) + ->setName($formattedName); + $gapicClient->deleteNativeDashboard($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DeleteNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new DeleteNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new DuplicateChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new DuplicateChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + $response = $gapicClient->duplicateChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DuplicateChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($formattedDashboardChart, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new DuplicateChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + try { + $gapicClient->duplicateChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new DuplicateNativeDashboardRequest()) + ->setName($formattedName) + ->setNativeDashboard($nativeDashboard); + $response = $gapicClient->duplicateNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DuplicateNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getNativeDashboard(); + $this->assertProtobufEquals($nativeDashboard, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new DuplicateNativeDashboardRequest()) + ->setName($formattedName) + ->setNativeDashboard($nativeDashboard); + try { + $gapicClient->duplicateNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function editChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new EditChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $editMask = new FieldMask(); + $request = (new EditChartRequest()) + ->setName($formattedName) + ->setEditMask($editMask); + $response = $gapicClient->editChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/EditChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getEditMask(); + $this->assertProtobufEquals($editMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function editChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $editMask = new FieldMask(); + $request = (new EditChartRequest()) + ->setName($formattedName) + ->setEditMask($editMask); + try { + $gapicClient->editChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExportNativeDashboardsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $names = []; + $request = (new ExportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setNames($names); + $response = $gapicClient->exportNativeDashboards($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ExportNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($names, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $names = []; + $request = (new ExportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setNames($names); + try { + $gapicClient->exportNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new GetNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->getNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/GetNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new GetNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->getNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ImportNativeDashboardsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $source = new ImportNativeDashboardsInlineSource(); + $sourceDashboards = []; + $source->setDashboards($sourceDashboards); + $request = (new ImportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setSource($source); + $response = $gapicClient->importNativeDashboards($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ImportNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSource(); + $this->assertProtobufEquals($source, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $source = new ImportNativeDashboardsInlineSource(); + $sourceDashboards = []; + $source->setDashboards($sourceDashboards); + $request = (new ImportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setSource($source); + try { + $gapicClient->importNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $nativeDashboardsElement = new NativeDashboard(); + $nativeDashboards = [ + $nativeDashboardsElement, + ]; + $expectedResponse = new ListNativeDashboardsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setNativeDashboards($nativeDashboards); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListNativeDashboardsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listNativeDashboards($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getNativeDashboards()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ListNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListNativeDashboardsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new RemoveChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + $response = $gapicClient->removeChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/RemoveChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($formattedDashboardChart, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new RemoveChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + try { + $gapicClient->removeChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateNativeDashboardRequest()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/UpdateNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getNativeDashboard(); + $this->assertProtobufEquals($nativeDashboard, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateNativeDashboardRequest()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function addChartAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AddChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $dashboardChart = new DashboardChart(); + $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; + $dashboardChart->setDisplayName($dashboardChartDisplayName); + $dashboardChartVisualization = new Visualization(); + $dashboardChart->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + $response = $gapicClient->addChartAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/AddChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($dashboardChart, $actualValue); + $actualValue = $actualRequestObject->getChartLayout(); + $this->assertProtobufEquals($chartLayout, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php new file mode 100644 index 000000000000..42584fb06abd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php @@ -0,0 +1,434 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ReferenceListServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ReferenceListServiceClient($options); + } + + /** @test */ + public function createReferenceListTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $referenceListId = 'referenceListId-1667170456'; + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + $response = $gapicClient->createReferenceList($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReferenceList(); + $this->assertProtobufEquals($referenceList, $actualValue); + $actualValue = $actualRequestObject->getReferenceListId(); + $this->assertProtobufEquals($referenceListId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReferenceListExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $referenceListId = 'referenceListId-1667170456'; + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + try { + $gapicClient->createReferenceList($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReferenceListTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); + $request = (new GetReferenceListRequest()) + ->setName($formattedName); + $response = $gapicClient->getReferenceList($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/GetReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReferenceListExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); + $request = (new GetReferenceListRequest()) + ->setName($formattedName); + try { + $gapicClient->getReferenceList($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReferenceListsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $referenceListsElement = new ReferenceList(); + $referenceLists = [ + $referenceListsElement, + ]; + $expectedResponse = new ListReferenceListsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReferenceLists($referenceLists); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListReferenceListsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listReferenceLists($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReferenceLists()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/ListReferenceLists', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReferenceListsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListReferenceListsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listReferenceLists($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReferenceListTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $request = (new UpdateReferenceListRequest()) + ->setReferenceList($referenceList); + $response = $gapicClient->updateReferenceList($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/UpdateReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getReferenceList(); + $this->assertProtobufEquals($referenceList, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReferenceListExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $request = (new UpdateReferenceListRequest()) + ->setReferenceList($referenceList); + try { + $gapicClient->updateReferenceList($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReferenceListAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $referenceListId = 'referenceListId-1667170456'; + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + $response = $gapicClient->createReferenceListAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReferenceList(); + $this->assertProtobufEquals($referenceList, $actualValue); + $actualValue = $actualRequestObject->getReferenceListId(); + $this->assertProtobufEquals($referenceListId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php new file mode 100644 index 000000000000..157ee8fd1f14 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php @@ -0,0 +1,1100 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return RuleServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new RuleServiceClient($options); + } + + /** @test */ + public function createRetrohuntTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRetrohuntTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $progressPercentage = 4432484; + $expectedResponse = new Retrohunt(); + $expectedResponse->setName($name); + $expectedResponse->setProgressPercentage($progressPercentage); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createRetrohuntTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $retrohunt = new Retrohunt(); + $retrohuntProcessInterval = new Interval(); + $retrohunt->setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + $response = $gapicClient->createRetrohunt($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getRetrohunt(); + $this->assertProtobufEquals($retrohunt, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRetrohuntExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRetrohuntTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $retrohunt = new Retrohunt(); + $retrohuntProcessInterval = new Interval(); + $retrohunt->setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + $response = $gapicClient->createRetrohunt($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $revisionId = 'revisionId513861631'; + $displayName = 'displayName1615086568'; + $text = 'text3556653'; + $author = 'author-1406328437'; + $etag = 'etag3123477'; + $scope = 'scope109264468'; + $nearRealTimeLiveRuleEligible = false; + $expectedResponse = new Rule(); + $expectedResponse->setName($name); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setText($text); + $expectedResponse->setAuthor($author); + $expectedResponse->setEtag($etag); + $expectedResponse->setScope($scope); + $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $rule = new Rule(); + $request = (new CreateRuleRequest()) + ->setParent($formattedParent) + ->setRule($rule); + $response = $gapicClient->createRule($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRule(); + $this->assertProtobufEquals($rule, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $rule = new Rule(); + $request = (new CreateRuleRequest()) + ->setParent($formattedParent) + ->setRule($rule); + try { + $gapicClient->createRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new DeleteRuleRequest()) + ->setName($formattedName); + $gapicClient->deleteRule($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/DeleteRule', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new DeleteRuleRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRetrohuntTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $progressPercentage = 4432484; + $expectedResponse = new Retrohunt(); + $expectedResponse->setName($name2); + $expectedResponse->setProgressPercentage($progressPercentage); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); + $request = (new GetRetrohuntRequest()) + ->setName($formattedName); + $response = $gapicClient->getRetrohunt($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRetrohunt', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRetrohuntExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); + $request = (new GetRetrohuntRequest()) + ->setName($formattedName); + try { + $gapicClient->getRetrohunt($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $revisionId = 'revisionId513861631'; + $displayName = 'displayName1615086568'; + $text = 'text3556653'; + $author = 'author-1406328437'; + $etag = 'etag3123477'; + $scope = 'scope109264468'; + $nearRealTimeLiveRuleEligible = false; + $expectedResponse = new Rule(); + $expectedResponse->setName($name2); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setText($text); + $expectedResponse->setAuthor($author); + $expectedResponse->setEtag($etag); + $expectedResponse->setScope($scope); + $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleRequest()) + ->setName($formattedName); + $response = $gapicClient->getRule($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRule', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleRequest()) + ->setName($formattedName); + try { + $gapicClient->getRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleDeploymentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $enabled = false; + $alerting = true; + $archived = true; + $expectedResponse = new RuleDeployment(); + $expectedResponse->setName($name2); + $expectedResponse->setEnabled($enabled); + $expectedResponse->setAlerting($alerting); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->getRuleDeployment($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRuleDeployment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleDeploymentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleDeploymentRequest()) + ->setName($formattedName); + try { + $gapicClient->getRuleDeployment($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRetrohuntsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $retrohuntsElement = new Retrohunt(); + $retrohunts = [ + $retrohuntsElement, + ]; + $expectedResponse = new ListRetrohuntsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRetrohunts($retrohunts); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRetrohuntsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRetrohunts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRetrohunts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRetrohunts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRetrohuntsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRetrohuntsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRetrohunts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleDeploymentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $ruleDeploymentsElement = new RuleDeployment(); + $ruleDeployments = [ + $ruleDeploymentsElement, + ]; + $expectedResponse = new ListRuleDeploymentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRuleDeployments($ruleDeployments); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleDeploymentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRuleDeployments($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRuleDeployments()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleDeployments', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleDeploymentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleDeploymentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRuleDeployments($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleRevisionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rulesElement = new Rule(); + $rules = [ + $rulesElement, + ]; + $expectedResponse = new ListRuleRevisionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRules($rules); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleRevisionsRequest()) + ->setName($formattedName); + $response = $gapicClient->listRuleRevisions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleRevisions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleRevisionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleRevisionsRequest()) + ->setName($formattedName); + try { + $gapicClient->listRuleRevisions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRulesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rulesElement = new Rule(); + $rules = [ + $rulesElement, + ]; + $expectedResponse = new ListRulesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRules($rules); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListRulesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRules($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRules', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRulesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListRulesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRules($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $revisionId = 'revisionId513861631'; + $displayName = 'displayName1615086568'; + $text = 'text3556653'; + $author = 'author-1406328437'; + $etag = 'etag3123477'; + $scope = 'scope109264468'; + $nearRealTimeLiveRuleEligible = false; + $expectedResponse = new Rule(); + $expectedResponse->setName($name); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setText($text); + $expectedResponse->setAuthor($author); + $expectedResponse->setEtag($etag); + $expectedResponse->setScope($scope); + $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); + $transport->addResponse($expectedResponse); + // Mock request + $rule = new Rule(); + $request = (new UpdateRuleRequest()) + ->setRule($rule); + $response = $gapicClient->updateRule($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getRule(); + $this->assertProtobufEquals($rule, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $rule = new Rule(); + $request = (new UpdateRuleRequest()) + ->setRule($rule); + try { + $gapicClient->updateRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleDeploymentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $enabled = false; + $alerting = true; + $archived = true; + $expectedResponse = new RuleDeployment(); + $expectedResponse->setName($name); + $expectedResponse->setEnabled($enabled); + $expectedResponse->setAlerting($alerting); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $ruleDeployment = new RuleDeployment(); + $ruleDeploymentName = 'ruleDeploymentName648362252'; + $ruleDeployment->setName($ruleDeploymentName); + $updateMask = new FieldMask(); + $request = (new UpdateRuleDeploymentRequest()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateRuleDeployment($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRuleDeployment', $actualFuncCall); + $actualValue = $actualRequestObject->getRuleDeployment(); + $this->assertProtobufEquals($ruleDeployment, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleDeploymentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $ruleDeployment = new RuleDeployment(); + $ruleDeploymentName = 'ruleDeploymentName648362252'; + $ruleDeployment->setName($ruleDeploymentName); + $updateMask = new FieldMask(); + $request = (new UpdateRuleDeploymentRequest()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateRuleDeployment($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRetrohuntAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRetrohuntTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $progressPercentage = 4432484; + $expectedResponse = new Retrohunt(); + $expectedResponse->setName($name); + $expectedResponse->setProgressPercentage($progressPercentage); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createRetrohuntTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $retrohunt = new Retrohunt(); + $retrohuntProcessInterval = new Interval(); + $retrohunt->setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + $response = $gapicClient->createRetrohuntAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getRetrohunt(); + $this->assertProtobufEquals($retrohunt, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} From d3ab9ff6abe21c4ae2485d27ffdd24a2a22d5879 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 30 Apr 2026 16:14:10 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../metadata}/V1/DashboardChart.php | 0 .../metadata}/V1/DashboardQuery.php | 0 .../metadata}/V1/FeaturedContentMetadata.php | 0 .../V1/FeaturedContentNativeDashboard.php | 0 .../metadata}/V1/NativeDashboard.php | 0 .../batch_get_dashboard_charts.php | 0 .../get_dashboard_chart.php | 0 .../execute_dashboard_query.php | 0 .../get_dashboard_query.php | 0 .../get_featured_content_native_dashboard.php | 0 ...tall_featured_content_native_dashboard.php | 0 ...ist_featured_content_native_dashboards.php | 0 .../add_chart.php | 0 .../create_native_dashboard.php | 0 .../delete_native_dashboard.php | 0 .../duplicate_chart.php | 0 .../duplicate_native_dashboard.php | 0 .../edit_chart.php | 0 .../export_native_dashboards.php | 0 .../get_native_dashboard.php | 0 .../import_native_dashboards.php | 0 .../list_native_dashboards.php | 0 .../remove_chart.php | 0 .../update_native_dashboard.php | 0 .../src}/V1/AddChartRequest.php | 0 .../src}/V1/AddChartResponse.php | 0 .../src}/V1/AdvancedFilterConfig.php | 0 .../V1/AdvancedFilterConfig/ManualOptions.php | 0 .../V1/AdvancedFilterConfig/QueryOptions.php | 0 .../V1/AdvancedFilterConfig/ValueSource.php | 0 .../src}/V1/AxisType.php | 0 .../V1/BatchGetDashboardChartsRequest.php | 0 .../V1/BatchGetDashboardChartsResponse.php | 0 .../Chronicle => Chronicle/src}/V1/Button.php | 0 .../src}/V1/Button/Properties.php | 0 .../src}/V1/ButtonStyle.php | 0 .../V1/Client/DashboardChartServiceClient.php | 14 +- .../V1/Client/DashboardQueryServiceClient.php | 22 +- ...redContentNativeDashboardServiceClient.php | 56 +- .../Client/NativeDashboardServiceClient.php | 60 +- .../src}/V1/ColumnMetadata.php | 0 .../src}/V1/CreateNativeDashboardRequest.php | 0 .../src}/V1/DashboardAccess.php | 0 .../src}/V1/DashboardChart.php | 0 .../V1/DashboardChart/ChartDatasource.php | 0 .../V1/DashboardChart/DrillDownConfig.php | 0 .../DrillDownConfig/DrillDown.php | 0 .../DrillDown/CustomDrillDownSettings.php | 0 .../DrillDownExternalLink.php | 0 .../DrillDownFilter.php | 0 .../DrillDownDashboardFilter.php | 0 .../DrillDownQuery.php | 0 .../DrillDown/DefaultDrillDownSettings.php | 0 .../src}/V1/DashboardChart/Visualization.php | 0 .../V1/DashboardChart/Visualization/Axis.php | 0 .../Visualization/ColumnDef.php | 0 .../ColumnRenderTypeSettings.php | 0 .../Visualization/ColumnTooltipSettings.php | 0 .../Visualization/GoogleMapsConfig.php | 0 .../GoogleMapsConfig/DataSettings.php | 0 .../GoogleMapsConfig/MapPosition.php | 0 .../GoogleMapsConfig/PointSettings.php | 0 .../DashboardChart/Visualization/Legend.php | 0 .../DashboardChart/Visualization/Series.php | 0 .../Visualization/Series/AreaStyle.php | 0 .../Visualization/Series/ChartSliceColor.php | 0 .../Visualization/Series/DataLabel.php | 0 .../Visualization/Series/Encode.php | 0 .../Visualization/Series/GaugeConfig.php | 0 .../Visualization/Series/GaugeValue.php | 0 .../Visualization/Series/ItemColors.php | 0 .../Visualization/Series/ItemStyle.php | 0 .../Series/MetricTrendConfig.php | 0 .../Series/UserSelectedValues.php | 0 .../Visualization/TableConfig.php | 0 .../DashboardChart/Visualization/Tooltip.php | 0 .../Visualization/VisualMap.php | 0 .../VisualMap/VisualMapPiece.php | 0 .../src}/V1/DashboardDefinition.php | 0 .../V1/DashboardDefinition/ChartConfig.php | 0 .../ChartConfig/ChartLayout.php | 0 .../src}/V1/DashboardFilter.php | 0 .../src}/V1/DashboardQuery.php | 0 .../src}/V1/DashboardQuery/Input.php | 0 .../V1/DashboardQuery/Input/RelativeTime.php | 0 .../src}/V1/DashboardType.php | 0 .../src}/V1/DashboardUserData.php | 0 .../src}/V1/DataSource.php | 0 .../src}/V1/DeleteNativeDashboardRequest.php | 0 .../src}/V1/DuplicateChartRequest.php | 0 .../src}/V1/DuplicateChartResponse.php | 0 .../V1/DuplicateNativeDashboardRequest.php | 0 .../src}/V1/EditChartRequest.php | 0 .../src}/V1/EditChartResponse.php | 0 .../src}/V1/ExecuteDashboardQueryRequest.php | 0 .../src}/V1/ExecuteDashboardQueryResponse.php | 0 .../ColumnData.php | 0 .../ColumnType.php | 0 .../ColumnType/PBList.php | 0 .../ColumnValue.php | 0 .../ColumnValue/ValueMetadata.php | 0 .../src}/V1/ExportNativeDashboardsRequest.php | 0 .../V1/ExportNativeDashboardsResponse.php | 0 .../src}/V1/FeaturedContentMetadata.php | 0 .../ContentSourceType.php | 0 .../V1/FeaturedContentNativeDashboard.php | 0 .../src}/V1/FilterOperator.php | 0 .../src}/V1/FilterOperatorAndValues.php | 0 .../src}/V1/GetDashboardChartRequest.php | 0 .../src}/V1/GetDashboardQueryRequest.php | 0 ...tFeaturedContentNativeDashboardRequest.php | 0 .../src}/V1/GetNativeDashboardRequest.php | 0 .../src}/V1/ImportExportStatus.php | 0 .../V1/ImportNativeDashboardsInlineSource.php | 0 .../src}/V1/ImportNativeDashboardsRequest.php | 0 .../V1/ImportNativeDashboardsResponse.php | 0 .../src}/V1/InAppLink.php | 0 .../src}/V1/InlineDestination.php | 0 ...lFeaturedContentNativeDashboardRequest.php | 0 ...FeaturedContentNativeDashboardResponse.php | 0 .../src}/V1/LanguageFeature.php | 0 .../src}/V1/LegendAlign.php | 0 .../src}/V1/LegendOrient.php | 0 ...FeaturedContentNativeDashboardsRequest.php | 0 ...eaturedContentNativeDashboardsResponse.php | 0 .../src}/V1/ListNativeDashboardsRequest.php | 0 .../src}/V1/ListNativeDashboardsResponse.php | 0 .../src}/V1/Markdown.php | 0 .../src}/V1/Markdown/MarkdownProperties.php | 0 .../src}/V1/MetricDisplayTrend.php | 0 .../src}/V1/MetricFormat.php | 0 .../src}/V1/MetricTrendType.php | 0 .../src}/V1/NativeDashboard.php | 0 .../src}/V1/NativeDashboardView.php | 0 .../NativeDashboardWithChartsAndQueries.php | 0 .../src}/V1/PlotMode.php | 0 .../src}/V1/PointSizeType.php | 0 .../src}/V1/QueryRuntimeError.php | 0 .../V1/QueryRuntimeError/ErrorSeverity.php | 0 .../src}/V1/QueryRuntimeError/MetadataKey.php | 0 .../QueryRuntimeErrorMetadata.php | 0 .../V1/QueryRuntimeError/WarningReason.php | 0 .../src}/V1/RemoveChartRequest.php | 0 .../src}/V1/RenderType.php | 0 .../src}/V1/SeriesStackStrategy.php | 0 .../src}/V1/SeriesType.php | 0 .../src}/V1/TileType.php | 0 .../src}/V1/TimeUnit.php | 0 .../src}/V1/TimestampMetadata.php | 0 .../src}/V1/ToolTipTrigger.php | 0 .../src}/V1/UpdateNativeDashboardRequest.php | 0 .../src}/V1/VisualMapType.php | 0 Chronicle/src/V1/gapic_metadata.json | 131 ++ ...dashboard_chart_service_client_config.json | 0 ...hboard_chart_service_descriptor_config.php | 0 ...board_chart_service_rest_client_config.php | 0 ...dashboard_query_service_client_config.json | 0 ...hboard_query_service_descriptor_config.php | 0 ...board_query_service_rest_client_config.php | 0 ..._access_control_service_client_config.json | 28 +- .../data_table_service_client_config.json | 40 +- .../entity_service_client_config.json | 16 +- ...ative_dashboard_service_client_config.json | 0 ...ve_dashboard_service_descriptor_config.php | 0 ...e_dashboard_service_rest_client_config.php | 0 ...ative_dashboard_service_client_config.json | 0 ...ve_dashboard_service_descriptor_config.php | 0 ...e_dashboard_service_rest_client_config.php | 0 .../reference_list_service_client_config.json | 12 +- .../resources/rule_service_client_config.json | 28 +- .../DashboardChartServiceClientTest.php | 64 +- .../DashboardQueryServiceClientTest.php | 52 +- ...ontentNativeDashboardServiceClientTest.php | 129 +- .../NativeDashboardServiceClientTest.php | 251 ++-- .../Cloud/Chronicle/V1/DataAccessControl.php | 31 - .../Google/Cloud/Chronicle/V1/DataTable.php | 32 - .../Google/Cloud/Chronicle/V1/Entity.php | 31 - .../Google/Cloud/Chronicle/V1/Instance.php | 28 - .../Cloud/Chronicle/V1/ReferenceList.php | 30 - .../Google/Cloud/Chronicle/V1/Rule.php | 33 - .../V1/BulkCreateDataTableRowsRequest.php | 137 -- .../V1/BulkCreateDataTableRowsResponse.php | 67 - .../V1/BulkGetDataTableRowsRequest.php | 132 -- .../V1/BulkGetDataTableRowsResponse.php | 67 - .../V1/BulkReplaceDataTableRowsRequest.php | 142 -- .../V1/BulkReplaceDataTableRowsResponse.php | 67 - .../V1/BulkUpdateDataTableRowsRequest.php | 132 -- .../V1/BulkUpdateDataTableRowsResponse.php | 67 - .../Chronicle/V1/CompilationDiagnostic.php | 193 --- .../V1/CompilationDiagnostic/Severity.php | 61 - .../Chronicle/V1/CompilationPosition.php | 170 --- .../V1/CreateDataAccessLabelRequest.php | 183 --- .../V1/CreateDataAccessScopeRequest.php | 178 --- .../Chronicle/V1/CreateDataTableRequest.php | 188 --- .../V1/CreateDataTableRowRequest.php | 137 -- .../V1/CreateReferenceListRequest.php | 193 --- .../Chronicle/V1/CreateRetrohuntRequest.php | 137 -- .../Cloud/Chronicle/V1/CreateRuleRequest.php | 132 -- .../Chronicle/V1/CreateWatchlistRequest.php | 184 --- .../Cloud/Chronicle/V1/DataAccessLabel.php | 337 ----- .../Chronicle/V1/DataAccessLabelReference.php | 227 ---- .../Cloud/Chronicle/V1/DataAccessScope.php | 470 ------- .../Google/Cloud/Chronicle/V1/DataTable.php | 585 -------- .../Chronicle/V1/DataTableColumnInfo.php | 274 ---- .../DataTableColumnType.php | 76 -- .../Chronicle/V1/DataTableOperationErrors.php | 113 -- .../Cloud/Chronicle/V1/DataTableRow.php | 235 ---- .../Cloud/Chronicle/V1/DataTableScopeInfo.php | 79 -- .../Chronicle/V1/DataTableUpdateSource.php | 68 - .../V1/DeleteDataAccessLabelRequest.php | 91 -- .../V1/DeleteDataAccessScopeRequest.php | 91 -- .../Chronicle/V1/DeleteDataTableRequest.php | 137 -- .../V1/DeleteDataTableRowRequest.php | 91 -- .../Cloud/Chronicle/V1/DeleteRuleRequest.php | 151 --- .../Chronicle/V1/DeleteWatchlistRequest.php | 137 -- .../V1/GetDataAccessLabelRequest.php | 91 -- .../V1/GetDataAccessScopeRequest.php | 91 -- .../V1/GetDataTableOperationErrorsRequest.php | 91 -- .../Chronicle/V1/GetDataTableRequest.php | 91 -- .../Chronicle/V1/GetDataTableRowRequest.php | 91 -- .../Cloud/Chronicle/V1/GetInstanceRequest.php | 91 -- .../Chronicle/V1/GetReferenceListRequest.php | 129 -- .../Chronicle/V1/GetRetrohuntRequest.php | 91 -- .../Chronicle/V1/GetRuleDeploymentRequest.php | 91 -- .../Cloud/Chronicle/V1/GetRuleRequest.php | 129 -- .../Chronicle/V1/GetWatchlistRequest.php | 96 -- .../Cloud/Chronicle/V1/IngestionLabel.php | 109 -- .../Google/Cloud/Chronicle/V1/InputsUsed.php | 137 -- .../Google/Cloud/Chronicle/V1/Instance.php | 71 - .../V1/ListDataAccessLabelsRequest.php | 220 --- .../V1/ListDataAccessLabelsResponse.php | 105 -- .../V1/ListDataAccessScopesRequest.php | 220 --- .../V1/ListDataAccessScopesResponse.php | 149 --- .../Chronicle/V1/ListDataTableRowsRequest.php | 247 ---- .../V1/ListDataTableRowsResponse.php | 105 -- .../Chronicle/V1/ListDataTablesRequest.php | 220 --- .../Chronicle/V1/ListDataTablesResponse.php | 105 -- .../V1/ListReferenceListsRequest.php | 221 ---- .../V1/ListReferenceListsResponse.php | 109 -- .../Chronicle/V1/ListRetrohuntsRequest.php | 225 ---- .../Chronicle/V1/ListRetrohuntsResponse.php | 105 -- .../V1/ListRuleDeploymentsRequest.php | 230 ---- .../V1/ListRuleDeploymentsResponse.php | 105 -- .../Chronicle/V1/ListRuleRevisionsRequest.php | 221 ---- .../V1/ListRuleRevisionsResponse.php | 105 -- .../Cloud/Chronicle/V1/ListRulesRequest.php | 263 ---- .../Cloud/Chronicle/V1/ListRulesResponse.php | 105 -- .../Chronicle/V1/ListWatchlistsRequest.php | 232 ---- .../Chronicle/V1/ListWatchlistsResponse.php | 105 -- .../Cloud/Chronicle/V1/ReferenceList.php | 409 ------ .../Cloud/Chronicle/V1/ReferenceListEntry.php | 67 - .../Cloud/Chronicle/V1/ReferenceListScope.php | 75 -- .../Chronicle/V1/ReferenceListSyntaxType.php | 68 - .../Cloud/Chronicle/V1/ReferenceListView.php | 67 - .../Google/Cloud/Chronicle/V1/Retrohunt.php | 255 ---- .../Cloud/Chronicle/V1/Retrohunt/State.php | 75 -- .../Cloud/Chronicle/V1/RetrohuntMetadata.php | 157 --- .../src/Google/Cloud/Chronicle/V1/Rule.php | 810 ------------ .../Chronicle/V1/Rule/CompilationState.php | 63 - .../Cloud/Chronicle/V1/RuleDeployment.php | 477 ------- .../V1/RuleDeployment/ExecutionState.php | 72 - .../Google/Cloud/Chronicle/V1/RuleType.php | 62 - .../Google/Cloud/Chronicle/V1/RuleView.php | 77 -- .../Cloud/Chronicle/V1/RunFrequency.php | 69 - .../Google/Cloud/Chronicle/V1/ScopeInfo.php | 81 -- .../Google/Cloud/Chronicle/V1/Severity.php | 71 - .../V1/UpdateDataAccessLabelRequest.php | 167 --- .../V1/UpdateDataAccessScopeRequest.php | 172 --- .../Chronicle/V1/UpdateDataTableRequest.php | 161 --- .../V1/UpdateDataTableRowRequest.php | 156 --- .../V1/UpdateReferenceListRequest.php | 167 --- .../V1/UpdateRuleDeploymentRequest.php | 152 --- .../Cloud/Chronicle/V1/UpdateRuleRequest.php | 157 --- .../Chronicle/V1/UpdateWatchlistRequest.php | 152 --- .../Google/Cloud/Chronicle/V1/Watchlist.php | 414 ------ .../Chronicle/V1/Watchlist/EntityCount.php | 101 -- .../Watchlist/EntityPopulationMechanism.php | 75 -- .../EntityPopulationMechanism/Manual.php | 33 - .../Chronicle/V1/WatchlistUserPreferences.php | 67 - .../create_data_access_label.php | 89 -- .../create_data_access_scope.php | 105 -- .../delete_data_access_label.php | 78 -- .../delete_data_access_scope.php | 76 -- .../get_data_access_label.php | 78 -- .../get_data_access_scope.php | 78 -- .../list_data_access_labels.php | 81 -- .../list_data_access_scopes.php | 81 -- .../update_data_access_label.php | 59 - .../update_data_access_scope.php | 79 -- .../bulk_create_data_table_rows.php | 108 -- .../bulk_get_data_table_rows.php | 96 -- .../bulk_replace_data_table_rows.php | 108 -- .../bulk_update_data_table_rows.php | 92 -- .../create_data_table.php | 87 -- .../create_data_table_row.php | 87 -- .../delete_data_table.php | 76 -- .../delete_data_table_row.php | 77 -- .../DataTableServiceClient/get_data_table.php | 78 -- .../get_data_table_operation_errors.php | 78 -- .../get_data_table_row.php | 79 -- .../list_data_table_rows.php | 83 -- .../list_data_tables.php | 77 -- .../update_data_table.php | 72 - .../update_data_table_row.php | 74 -- .../EntityServiceClient/create_watchlist.php | 83 -- .../EntityServiceClient/delete_watchlist.php | 76 -- .../V1/EntityServiceClient/get_watchlist.php | 79 -- .../EntityServiceClient/list_watchlists.php | 77 -- .../EntityServiceClient/update_watchlist.php | 77 -- .../V1/InstanceServiceClient/get_instance.php | 73 - .../create_reference_list.php | 111 -- .../get_reference_list.php | 78 -- .../list_reference_lists.php | 82 -- .../update_reference_list.php | 90 -- .../V1/RuleServiceClient/create_retrohunt.php | 90 -- .../V1/RuleServiceClient/create_rule.php | 74 -- .../V1/RuleServiceClient/delete_rule.php | 73 - .../V1/RuleServiceClient/get_retrohunt.php | 79 -- .../samples/V1/RuleServiceClient/get_rule.php | 73 - .../RuleServiceClient/get_rule_deployment.php | 78 -- .../V1/RuleServiceClient/list_retrohunts.php | 78 -- .../list_rule_deployments.php | 79 -- .../RuleServiceClient/list_rule_revisions.php | 78 -- .../V1/RuleServiceClient/list_rules.php | 78 -- .../V1/RuleServiceClient/update_rule.php | 59 - .../update_rule_deployment.php | 83 -- .../Client/DataAccessControlServiceClient.php | 572 -------- .../src/V1/Client/DataTableServiceClient.php | 747 ----------- .../v1/src/V1/Client/EntityServiceClient.php | 389 ------ .../src/V1/Client/InstanceServiceClient.php | 255 ---- .../V1/Client/ReferenceListServiceClient.php | 366 ----- .../v1/src/V1/Client/RuleServiceClient.php | 733 ---------- .../Chronicle/v1/src/V1/gapic_metadata.json | 429 ------ ..._access_control_service_client_config.json | 94 -- ...cess_control_service_descriptor_config.php | 171 --- ...ess_control_service_rest_client_config.php | 198 --- .../data_table_service_client_config.json | 119 -- .../data_table_service_descriptor_config.php | 233 ---- .../data_table_service_rest_client_config.php | 254 ---- .../entity_service_client_config.json | 69 - .../entity_service_descriptor_config.php | 101 -- .../entity_service_rest_client_config.php | 134 -- .../instance_service_client_config.json | 39 - .../instance_service_descriptor_config.php | 43 - .../instance_service_rest_client_config.php | 87 -- .../reference_list_service_client_config.json | 64 - ...ference_list_service_descriptor_config.php | 89 -- ...erence_list_service_rest_client_config.php | 126 -- .../resources/rule_service_client_config.json | 126 -- .../rule_service_descriptor_config.php | 221 ---- .../rule_service_rest_client_config.php | 217 --- .../DataAccessControlServiceClientTest.php | 866 ------------ .../V1/Client/DataTableServiceClientTest.php | 1178 ----------------- .../V1/Client/EntityServiceClientTest.php | 477 ------- .../V1/Client/InstanceServiceClientTest.php | 155 --- .../Client/ReferenceListServiceClientTest.php | 434 ------ .../Unit/V1/Client/RuleServiceClientTest.php | 1100 --------------- 357 files changed, 572 insertions(+), 29880 deletions(-) rename {owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle => Chronicle/metadata}/V1/DashboardChart.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle => Chronicle/metadata}/V1/DashboardQuery.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle => Chronicle/metadata}/V1/FeaturedContentMetadata.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle => Chronicle/metadata}/V1/FeaturedContentNativeDashboard.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle => Chronicle/metadata}/V1/NativeDashboard.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/add_chart.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/duplicate_chart.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/edit_chart.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/remove_chart.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/AddChartRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/AddChartResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/AdvancedFilterConfig.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/AdvancedFilterConfig/ManualOptions.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/AdvancedFilterConfig/QueryOptions.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/AdvancedFilterConfig/ValueSource.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/AxisType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/BatchGetDashboardChartsRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/BatchGetDashboardChartsResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/Button.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/Button/Properties.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ButtonStyle.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/Client/DashboardChartServiceClient.php (97%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/Client/DashboardQueryServiceClient.php (96%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php (91%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/Client/NativeDashboardServiceClient.php (95%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ColumnMetadata.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/CreateNativeDashboardRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardAccess.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/ChartDatasource.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig/DrillDown.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Axis.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/ColumnDef.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/ColumnTooltipSettings.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/GoogleMapsConfig.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Legend.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/AreaStyle.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/ChartSliceColor.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/DataLabel.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/Encode.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/GaugeConfig.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/GaugeValue.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/ItemColors.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/ItemStyle.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Series/UserSelectedValues.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/TableConfig.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/Tooltip.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/VisualMap.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardDefinition.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardDefinition/ChartConfig.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardDefinition/ChartConfig/ChartLayout.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardFilter.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardQuery.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardQuery/Input.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardQuery/Input/RelativeTime.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DashboardUserData.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DataSource.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DeleteNativeDashboardRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DuplicateChartRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DuplicateChartResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DuplicateNativeDashboardRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/EditChartRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/EditChartResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExecuteDashboardQueryRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExecuteDashboardQueryResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExecuteDashboardQueryResponse/ColumnData.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExecuteDashboardQueryResponse/ColumnType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExecuteDashboardQueryResponse/ColumnValue.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExportNativeDashboardsRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ExportNativeDashboardsResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/FeaturedContentMetadata.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/FeaturedContentMetadata/ContentSourceType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/FeaturedContentNativeDashboard.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/FilterOperator.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/FilterOperatorAndValues.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/GetDashboardChartRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/GetDashboardQueryRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/GetFeaturedContentNativeDashboardRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/GetNativeDashboardRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ImportExportStatus.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ImportNativeDashboardsInlineSource.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ImportNativeDashboardsRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ImportNativeDashboardsResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/InAppLink.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/InlineDestination.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/InstallFeaturedContentNativeDashboardRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/InstallFeaturedContentNativeDashboardResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/LanguageFeature.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/LegendAlign.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/LegendOrient.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ListFeaturedContentNativeDashboardsRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ListFeaturedContentNativeDashboardsResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ListNativeDashboardsRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ListNativeDashboardsResponse.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/Markdown.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/Markdown/MarkdownProperties.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/MetricDisplayTrend.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/MetricFormat.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/MetricTrendType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/NativeDashboard.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/NativeDashboardView.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/NativeDashboardWithChartsAndQueries.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/PlotMode.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/PointSizeType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/QueryRuntimeError.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/QueryRuntimeError/ErrorSeverity.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/QueryRuntimeError/MetadataKey.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/QueryRuntimeError/WarningReason.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/RemoveChartRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/RenderType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/SeriesStackStrategy.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/SeriesType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/TileType.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/TimeUnit.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/TimestampMetadata.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ToolTipTrigger.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/UpdateNativeDashboardRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/VisualMapType.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/dashboard_chart_service_client_config.json (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/dashboard_chart_service_descriptor_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/dashboard_chart_service_rest_client_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/dashboard_query_service_client_config.json (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/dashboard_query_service_descriptor_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/dashboard_query_service_rest_client_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/featured_content_native_dashboard_service_client_config.json (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/native_dashboard_service_client_config.json (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/native_dashboard_service_descriptor_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/native_dashboard_service_rest_client_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/tests/Unit/V1/Client/DashboardChartServiceClientTest.php (84%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php (88%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php (80%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php (88%) delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php b/Chronicle/metadata/V1/DashboardChart.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php rename to Chronicle/metadata/V1/DashboardChart.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php b/Chronicle/metadata/V1/DashboardQuery.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php rename to Chronicle/metadata/V1/DashboardQuery.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/Chronicle/metadata/V1/FeaturedContentMetadata.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php rename to Chronicle/metadata/V1/FeaturedContentMetadata.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/Chronicle/metadata/V1/FeaturedContentNativeDashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php rename to Chronicle/metadata/V1/FeaturedContentNativeDashboard.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/NativeDashboard.php b/Chronicle/metadata/V1/NativeDashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/NativeDashboard.php rename to Chronicle/metadata/V1/NativeDashboard.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php b/Chronicle/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php rename to Chronicle/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php b/Chronicle/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php rename to Chronicle/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php b/Chronicle/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php rename to Chronicle/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php b/Chronicle/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php rename to Chronicle/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php b/Chronicle/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php rename to Chronicle/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php b/Chronicle/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php rename to Chronicle/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php b/Chronicle/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php rename to Chronicle/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php b/Chronicle/samples/V1/NativeDashboardServiceClient/add_chart.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/add_chart.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php b/Chronicle/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php b/Chronicle/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php b/Chronicle/samples/V1/NativeDashboardServiceClient/duplicate_chart.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/duplicate_chart.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php b/Chronicle/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php b/Chronicle/samples/V1/NativeDashboardServiceClient/edit_chart.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/edit_chart.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php b/Chronicle/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php b/Chronicle/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php b/Chronicle/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php b/Chronicle/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php b/Chronicle/samples/V1/NativeDashboardServiceClient/remove_chart.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/remove_chart.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php b/Chronicle/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php rename to Chronicle/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php b/Chronicle/src/V1/AddChartRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php rename to Chronicle/src/V1/AddChartRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php b/Chronicle/src/V1/AddChartResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php rename to Chronicle/src/V1/AddChartResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php b/Chronicle/src/V1/AdvancedFilterConfig.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php rename to Chronicle/src/V1/AdvancedFilterConfig.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php b/Chronicle/src/V1/AdvancedFilterConfig/ManualOptions.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php rename to Chronicle/src/V1/AdvancedFilterConfig/ManualOptions.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php b/Chronicle/src/V1/AdvancedFilterConfig/QueryOptions.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php rename to Chronicle/src/V1/AdvancedFilterConfig/QueryOptions.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php b/Chronicle/src/V1/AdvancedFilterConfig/ValueSource.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php rename to Chronicle/src/V1/AdvancedFilterConfig/ValueSource.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php b/Chronicle/src/V1/AxisType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php rename to Chronicle/src/V1/AxisType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php b/Chronicle/src/V1/BatchGetDashboardChartsRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php rename to Chronicle/src/V1/BatchGetDashboardChartsRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php b/Chronicle/src/V1/BatchGetDashboardChartsResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php rename to Chronicle/src/V1/BatchGetDashboardChartsResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php b/Chronicle/src/V1/Button.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php rename to Chronicle/src/V1/Button.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php b/Chronicle/src/V1/Button/Properties.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php rename to Chronicle/src/V1/Button/Properties.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php b/Chronicle/src/V1/ButtonStyle.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php rename to Chronicle/src/V1/ButtonStyle.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php b/Chronicle/src/V1/Client/DashboardChartServiceClient.php similarity index 97% rename from owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php rename to Chronicle/src/V1/Client/DashboardChartServiceClient.php index e705b61f0ad7..38eb3b804638 100644 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php +++ b/Chronicle/src/V1/Client/DashboardChartServiceClient.php @@ -115,8 +115,12 @@ private static function getClientDefaults() * * @return string The formatted dashboard_chart resource. */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { + public static function dashboardChartName( + string $project, + string $location, + string $instance, + string $chart + ): string { return self::getPathTemplate('dashboardChart')->render([ 'project' => $project, 'location' => $location, @@ -276,8 +280,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function batchGetDashboardCharts(BatchGetDashboardChartsRequest $request, array $callOptions = []): BatchGetDashboardChartsResponse - { + public function batchGetDashboardCharts( + BatchGetDashboardChartsRequest $request, + array $callOptions = [] + ): BatchGetDashboardChartsResponse { return $this->startApiCall('BatchGetDashboardCharts', $request, $callOptions)->wait(); } diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php b/Chronicle/src/V1/Client/DashboardQueryServiceClient.php similarity index 96% rename from owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php rename to Chronicle/src/V1/Client/DashboardQueryServiceClient.php index d3af52f0d47a..730b7aa7f1e5 100644 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php +++ b/Chronicle/src/V1/Client/DashboardQueryServiceClient.php @@ -115,8 +115,12 @@ private static function getClientDefaults() * * @return string The formatted dashboard_chart resource. */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { + public static function dashboardChartName( + string $project, + string $location, + string $instance, + string $chart + ): string { return self::getPathTemplate('dashboardChart')->render([ 'project' => $project, 'location' => $location, @@ -136,8 +140,12 @@ public static function dashboardChartName(string $project, string $location, str * * @return string The formatted dashboard_query resource. */ - public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string - { + public static function dashboardQueryName( + string $project, + string $location, + string $instance, + string $query + ): string { return self::getPathTemplate('dashboardQuery')->render([ 'project' => $project, 'location' => $location, @@ -298,8 +306,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function executeDashboardQuery(ExecuteDashboardQueryRequest $request, array $callOptions = []): ExecuteDashboardQueryResponse - { + public function executeDashboardQuery( + ExecuteDashboardQueryRequest $request, + array $callOptions = [] + ): ExecuteDashboardQueryResponse { return $this->startApiCall('ExecuteDashboardQuery', $request, $callOptions)->wait(); } diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php b/Chronicle/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php similarity index 91% rename from owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php rename to Chronicle/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php index ef15c0083d7e..ae6ea8d0f027 100644 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php +++ b/Chronicle/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php @@ -95,14 +95,16 @@ private static function getClientDefaults() 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/featured_content_native_dashboard_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_descriptor_config.php', + 'descriptorsConfigPath' => + __DIR__ . '/../resources/featured_content_native_dashboard_service_descriptor_config.php', 'gcpApiConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/featured_content_native_dashboard_service_rest_client_config.php', ], ], ]; @@ -138,8 +140,12 @@ public static function contentHubName(string $project, string $location, string * * @return string The formatted dashboard_chart resource. */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { + public static function dashboardChartName( + string $project, + string $location, + string $instance, + string $chart + ): string { return self::getPathTemplate('dashboardChart')->render([ 'project' => $project, 'location' => $location, @@ -159,8 +165,12 @@ public static function dashboardChartName(string $project, string $location, str * * @return string The formatted dashboard_query resource. */ - public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string - { + public static function dashboardQueryName( + string $project, + string $location, + string $instance, + string $query + ): string { return self::getPathTemplate('dashboardQuery')->render([ 'project' => $project, 'location' => $location, @@ -180,8 +190,12 @@ public static function dashboardQueryName(string $project, string $location, str * * @return string The formatted featured_content_native_dashboard resource. */ - public static function featuredContentNativeDashboardName(string $project, string $location, string $instance, string $featuredContentNativeDashboard): string - { + public static function featuredContentNativeDashboardName( + string $project, + string $location, + string $instance, + string $featuredContentNativeDashboard + ): string { return self::getPathTemplate('featuredContentNativeDashboard')->render([ 'project' => $project, 'location' => $location, @@ -220,8 +234,12 @@ public static function instanceName(string $project, string $location, string $i * * @return string The formatted native_dashboard resource. */ - public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string - { + public static function nativeDashboardName( + string $project, + string $location, + string $instance, + string $dashboard + ): string { return self::getPathTemplate('nativeDashboard')->render([ 'project' => $project, 'location' => $location, @@ -368,8 +386,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function getFeaturedContentNativeDashboard(GetFeaturedContentNativeDashboardRequest $request, array $callOptions = []): FeaturedContentNativeDashboard - { + public function getFeaturedContentNativeDashboard( + GetFeaturedContentNativeDashboardRequest $request, + array $callOptions = [] + ): FeaturedContentNativeDashboard { return $this->startApiCall('GetFeaturedContentNativeDashboard', $request, $callOptions)->wait(); } @@ -396,8 +416,10 @@ public function getFeaturedContentNativeDashboard(GetFeaturedContentNativeDashbo * * @throws ApiException Thrown if the API call fails. */ - public function installFeaturedContentNativeDashboard(InstallFeaturedContentNativeDashboardRequest $request, array $callOptions = []): InstallFeaturedContentNativeDashboardResponse - { + public function installFeaturedContentNativeDashboard( + InstallFeaturedContentNativeDashboardRequest $request, + array $callOptions = [] + ): InstallFeaturedContentNativeDashboardResponse { return $this->startApiCall('InstallFeaturedContentNativeDashboard', $request, $callOptions)->wait(); } @@ -424,8 +446,10 @@ public function installFeaturedContentNativeDashboard(InstallFeaturedContentNati * * @throws ApiException Thrown if the API call fails. */ - public function listFeaturedContentNativeDashboards(ListFeaturedContentNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse - { + public function listFeaturedContentNativeDashboards( + ListFeaturedContentNativeDashboardsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListFeaturedContentNativeDashboards', $request, $callOptions); } } diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php b/Chronicle/src/V1/Client/NativeDashboardServiceClient.php similarity index 95% rename from owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php rename to Chronicle/src/V1/Client/NativeDashboardServiceClient.php index 971464871d9a..ef6a5ba51e3e 100644 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php +++ b/Chronicle/src/V1/Client/NativeDashboardServiceClient.php @@ -140,8 +140,12 @@ private static function getClientDefaults() * * @return string The formatted dashboard_chart resource. */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { + public static function dashboardChartName( + string $project, + string $location, + string $instance, + string $chart + ): string { return self::getPathTemplate('dashboardChart')->render([ 'project' => $project, 'location' => $location, @@ -161,8 +165,12 @@ public static function dashboardChartName(string $project, string $location, str * * @return string The formatted dashboard_query resource. */ - public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string - { + public static function dashboardQueryName( + string $project, + string $location, + string $instance, + string $query + ): string { return self::getPathTemplate('dashboardQuery')->render([ 'project' => $project, 'location' => $location, @@ -201,8 +209,12 @@ public static function instanceName(string $project, string $location, string $i * * @return string The formatted native_dashboard resource. */ - public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string - { + public static function nativeDashboardName( + string $project, + string $location, + string $instance, + string $dashboard + ): string { return self::getPathTemplate('nativeDashboard')->render([ 'project' => $project, 'location' => $location, @@ -371,8 +383,10 @@ public function addChart(AddChartRequest $request, array $callOptions = []): Add * * @throws ApiException Thrown if the API call fails. */ - public function createNativeDashboard(CreateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard - { + public function createNativeDashboard( + CreateNativeDashboardRequest $request, + array $callOptions = [] + ): NativeDashboard { return $this->startApiCall('CreateNativeDashboard', $request, $callOptions)->wait(); } @@ -450,8 +464,10 @@ public function duplicateChart(DuplicateChartRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function duplicateNativeDashboard(DuplicateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard - { + public function duplicateNativeDashboard( + DuplicateNativeDashboardRequest $request, + array $callOptions = [] + ): NativeDashboard { return $this->startApiCall('DuplicateNativeDashboard', $request, $callOptions)->wait(); } @@ -503,8 +519,10 @@ public function editChart(EditChartRequest $request, array $callOptions = []): E * * @throws ApiException Thrown if the API call fails. */ - public function exportNativeDashboards(ExportNativeDashboardsRequest $request, array $callOptions = []): ExportNativeDashboardsResponse - { + public function exportNativeDashboards( + ExportNativeDashboardsRequest $request, + array $callOptions = [] + ): ExportNativeDashboardsResponse { return $this->startApiCall('ExportNativeDashboards', $request, $callOptions)->wait(); } @@ -557,8 +575,10 @@ public function getNativeDashboard(GetNativeDashboardRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function importNativeDashboards(ImportNativeDashboardsRequest $request, array $callOptions = []): ImportNativeDashboardsResponse - { + public function importNativeDashboards( + ImportNativeDashboardsRequest $request, + array $callOptions = [] + ): ImportNativeDashboardsResponse { return $this->startApiCall('ImportNativeDashboards', $request, $callOptions)->wait(); } @@ -584,8 +604,10 @@ public function importNativeDashboards(ImportNativeDashboardsRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function listNativeDashboards(ListNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse - { + public function listNativeDashboards( + ListNativeDashboardsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListNativeDashboards', $request, $callOptions); } @@ -637,8 +659,10 @@ public function removeChart(RemoveChartRequest $request, array $callOptions = [] * * @throws ApiException Thrown if the API call fails. */ - public function updateNativeDashboard(UpdateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard - { + public function updateNativeDashboard( + UpdateNativeDashboardRequest $request, + array $callOptions = [] + ): NativeDashboard { return $this->startApiCall('UpdateNativeDashboard', $request, $callOptions)->wait(); } } diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php b/Chronicle/src/V1/ColumnMetadata.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php rename to Chronicle/src/V1/ColumnMetadata.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php b/Chronicle/src/V1/CreateNativeDashboardRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php rename to Chronicle/src/V1/CreateNativeDashboardRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php b/Chronicle/src/V1/DashboardAccess.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php rename to Chronicle/src/V1/DashboardAccess.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php b/Chronicle/src/V1/DashboardChart.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php rename to Chronicle/src/V1/DashboardChart.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php b/Chronicle/src/V1/DashboardChart/ChartDatasource.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php rename to Chronicle/src/V1/DashboardChart/ChartDatasource.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php b/Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php rename to Chronicle/src/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php b/Chronicle/src/V1/DashboardChart/Visualization.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php rename to Chronicle/src/V1/DashboardChart/Visualization.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php b/Chronicle/src/V1/DashboardChart/Visualization/Axis.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php rename to Chronicle/src/V1/DashboardChart/Visualization/Axis.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php b/Chronicle/src/V1/DashboardChart/Visualization/ColumnDef.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php rename to Chronicle/src/V1/DashboardChart/Visualization/ColumnDef.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php b/Chronicle/src/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php rename to Chronicle/src/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php b/Chronicle/src/V1/DashboardChart/Visualization/ColumnTooltipSettings.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php rename to Chronicle/src/V1/DashboardChart/Visualization/ColumnTooltipSettings.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php b/Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php rename to Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php b/Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php rename to Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php b/Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php rename to Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php b/Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php rename to Chronicle/src/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php b/Chronicle/src/V1/DashboardChart/Visualization/Legend.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php rename to Chronicle/src/V1/DashboardChart/Visualization/Legend.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php b/Chronicle/src/V1/DashboardChart/Visualization/Series.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/AreaStyle.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/AreaStyle.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/ChartSliceColor.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/ChartSliceColor.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/DataLabel.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/DataLabel.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/Encode.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/Encode.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/GaugeConfig.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/GaugeConfig.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/GaugeValue.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/GaugeValue.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/ItemColors.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/ItemColors.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/ItemStyle.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/ItemStyle.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php b/Chronicle/src/V1/DashboardChart/Visualization/Series/UserSelectedValues.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php rename to Chronicle/src/V1/DashboardChart/Visualization/Series/UserSelectedValues.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php b/Chronicle/src/V1/DashboardChart/Visualization/TableConfig.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php rename to Chronicle/src/V1/DashboardChart/Visualization/TableConfig.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php b/Chronicle/src/V1/DashboardChart/Visualization/Tooltip.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php rename to Chronicle/src/V1/DashboardChart/Visualization/Tooltip.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php b/Chronicle/src/V1/DashboardChart/Visualization/VisualMap.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php rename to Chronicle/src/V1/DashboardChart/Visualization/VisualMap.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php b/Chronicle/src/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php rename to Chronicle/src/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php b/Chronicle/src/V1/DashboardDefinition.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php rename to Chronicle/src/V1/DashboardDefinition.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php b/Chronicle/src/V1/DashboardDefinition/ChartConfig.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php rename to Chronicle/src/V1/DashboardDefinition/ChartConfig.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php b/Chronicle/src/V1/DashboardDefinition/ChartConfig/ChartLayout.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php rename to Chronicle/src/V1/DashboardDefinition/ChartConfig/ChartLayout.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php b/Chronicle/src/V1/DashboardFilter.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php rename to Chronicle/src/V1/DashboardFilter.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php b/Chronicle/src/V1/DashboardQuery.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php rename to Chronicle/src/V1/DashboardQuery.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php b/Chronicle/src/V1/DashboardQuery/Input.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php rename to Chronicle/src/V1/DashboardQuery/Input.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php b/Chronicle/src/V1/DashboardQuery/Input/RelativeTime.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php rename to Chronicle/src/V1/DashboardQuery/Input/RelativeTime.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php b/Chronicle/src/V1/DashboardType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php rename to Chronicle/src/V1/DashboardType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php b/Chronicle/src/V1/DashboardUserData.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php rename to Chronicle/src/V1/DashboardUserData.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php b/Chronicle/src/V1/DataSource.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php rename to Chronicle/src/V1/DataSource.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php b/Chronicle/src/V1/DeleteNativeDashboardRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php rename to Chronicle/src/V1/DeleteNativeDashboardRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php b/Chronicle/src/V1/DuplicateChartRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php rename to Chronicle/src/V1/DuplicateChartRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php b/Chronicle/src/V1/DuplicateChartResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php rename to Chronicle/src/V1/DuplicateChartResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php b/Chronicle/src/V1/DuplicateNativeDashboardRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php rename to Chronicle/src/V1/DuplicateNativeDashboardRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php b/Chronicle/src/V1/EditChartRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php rename to Chronicle/src/V1/EditChartRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php b/Chronicle/src/V1/EditChartResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php rename to Chronicle/src/V1/EditChartResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php b/Chronicle/src/V1/ExecuteDashboardQueryRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php rename to Chronicle/src/V1/ExecuteDashboardQueryRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php b/Chronicle/src/V1/ExecuteDashboardQueryResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php rename to Chronicle/src/V1/ExecuteDashboardQueryResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php b/Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnData.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php rename to Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnData.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php b/Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php rename to Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php b/Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php rename to Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php b/Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnValue.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php rename to Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnValue.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php b/Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php rename to Chronicle/src/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php b/Chronicle/src/V1/ExportNativeDashboardsRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php rename to Chronicle/src/V1/ExportNativeDashboardsRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php b/Chronicle/src/V1/ExportNativeDashboardsResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php rename to Chronicle/src/V1/ExportNativeDashboardsResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/Chronicle/src/V1/FeaturedContentMetadata.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php rename to Chronicle/src/V1/FeaturedContentMetadata.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php b/Chronicle/src/V1/FeaturedContentMetadata/ContentSourceType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php rename to Chronicle/src/V1/FeaturedContentMetadata/ContentSourceType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/Chronicle/src/V1/FeaturedContentNativeDashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php rename to Chronicle/src/V1/FeaturedContentNativeDashboard.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php b/Chronicle/src/V1/FilterOperator.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php rename to Chronicle/src/V1/FilterOperator.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php b/Chronicle/src/V1/FilterOperatorAndValues.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php rename to Chronicle/src/V1/FilterOperatorAndValues.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php b/Chronicle/src/V1/GetDashboardChartRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php rename to Chronicle/src/V1/GetDashboardChartRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php b/Chronicle/src/V1/GetDashboardQueryRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php rename to Chronicle/src/V1/GetDashboardQueryRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php b/Chronicle/src/V1/GetFeaturedContentNativeDashboardRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php rename to Chronicle/src/V1/GetFeaturedContentNativeDashboardRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php b/Chronicle/src/V1/GetNativeDashboardRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php rename to Chronicle/src/V1/GetNativeDashboardRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php b/Chronicle/src/V1/ImportExportStatus.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php rename to Chronicle/src/V1/ImportExportStatus.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php b/Chronicle/src/V1/ImportNativeDashboardsInlineSource.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php rename to Chronicle/src/V1/ImportNativeDashboardsInlineSource.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php b/Chronicle/src/V1/ImportNativeDashboardsRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php rename to Chronicle/src/V1/ImportNativeDashboardsRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php b/Chronicle/src/V1/ImportNativeDashboardsResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php rename to Chronicle/src/V1/ImportNativeDashboardsResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php b/Chronicle/src/V1/InAppLink.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php rename to Chronicle/src/V1/InAppLink.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php b/Chronicle/src/V1/InlineDestination.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php rename to Chronicle/src/V1/InlineDestination.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php b/Chronicle/src/V1/InstallFeaturedContentNativeDashboardRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php rename to Chronicle/src/V1/InstallFeaturedContentNativeDashboardRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php b/Chronicle/src/V1/InstallFeaturedContentNativeDashboardResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php rename to Chronicle/src/V1/InstallFeaturedContentNativeDashboardResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php b/Chronicle/src/V1/LanguageFeature.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php rename to Chronicle/src/V1/LanguageFeature.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php b/Chronicle/src/V1/LegendAlign.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php rename to Chronicle/src/V1/LegendAlign.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php b/Chronicle/src/V1/LegendOrient.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php rename to Chronicle/src/V1/LegendOrient.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php b/Chronicle/src/V1/ListFeaturedContentNativeDashboardsRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php rename to Chronicle/src/V1/ListFeaturedContentNativeDashboardsRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php b/Chronicle/src/V1/ListFeaturedContentNativeDashboardsResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php rename to Chronicle/src/V1/ListFeaturedContentNativeDashboardsResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php b/Chronicle/src/V1/ListNativeDashboardsRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php rename to Chronicle/src/V1/ListNativeDashboardsRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php b/Chronicle/src/V1/ListNativeDashboardsResponse.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php rename to Chronicle/src/V1/ListNativeDashboardsResponse.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php b/Chronicle/src/V1/Markdown.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php rename to Chronicle/src/V1/Markdown.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php b/Chronicle/src/V1/Markdown/MarkdownProperties.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php rename to Chronicle/src/V1/Markdown/MarkdownProperties.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php b/Chronicle/src/V1/MetricDisplayTrend.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php rename to Chronicle/src/V1/MetricDisplayTrend.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php b/Chronicle/src/V1/MetricFormat.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php rename to Chronicle/src/V1/MetricFormat.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php b/Chronicle/src/V1/MetricTrendType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php rename to Chronicle/src/V1/MetricTrendType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php b/Chronicle/src/V1/NativeDashboard.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php rename to Chronicle/src/V1/NativeDashboard.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php b/Chronicle/src/V1/NativeDashboardView.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php rename to Chronicle/src/V1/NativeDashboardView.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php b/Chronicle/src/V1/NativeDashboardWithChartsAndQueries.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php rename to Chronicle/src/V1/NativeDashboardWithChartsAndQueries.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php b/Chronicle/src/V1/PlotMode.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php rename to Chronicle/src/V1/PlotMode.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php b/Chronicle/src/V1/PointSizeType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php rename to Chronicle/src/V1/PointSizeType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php b/Chronicle/src/V1/QueryRuntimeError.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php rename to Chronicle/src/V1/QueryRuntimeError.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php b/Chronicle/src/V1/QueryRuntimeError/ErrorSeverity.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php rename to Chronicle/src/V1/QueryRuntimeError/ErrorSeverity.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php b/Chronicle/src/V1/QueryRuntimeError/MetadataKey.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php rename to Chronicle/src/V1/QueryRuntimeError/MetadataKey.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php b/Chronicle/src/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php rename to Chronicle/src/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php b/Chronicle/src/V1/QueryRuntimeError/WarningReason.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php rename to Chronicle/src/V1/QueryRuntimeError/WarningReason.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php b/Chronicle/src/V1/RemoveChartRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php rename to Chronicle/src/V1/RemoveChartRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php b/Chronicle/src/V1/RenderType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php rename to Chronicle/src/V1/RenderType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php b/Chronicle/src/V1/SeriesStackStrategy.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php rename to Chronicle/src/V1/SeriesStackStrategy.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php b/Chronicle/src/V1/SeriesType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php rename to Chronicle/src/V1/SeriesType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php b/Chronicle/src/V1/TileType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php rename to Chronicle/src/V1/TileType.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php b/Chronicle/src/V1/TimeUnit.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php rename to Chronicle/src/V1/TimeUnit.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php b/Chronicle/src/V1/TimestampMetadata.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php rename to Chronicle/src/V1/TimestampMetadata.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php b/Chronicle/src/V1/ToolTipTrigger.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php rename to Chronicle/src/V1/ToolTipTrigger.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php b/Chronicle/src/V1/UpdateNativeDashboardRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php rename to Chronicle/src/V1/UpdateNativeDashboardRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php b/Chronicle/src/V1/VisualMapType.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php rename to Chronicle/src/V1/VisualMapType.php diff --git a/Chronicle/src/V1/gapic_metadata.json b/Chronicle/src/V1/gapic_metadata.json index 7edd4a684d59..90cfa612edbc 100644 --- a/Chronicle/src/V1/gapic_metadata.json +++ b/Chronicle/src/V1/gapic_metadata.json @@ -5,6 +5,44 @@ "protoPackage": "google.cloud.chronicle.v1", "libraryPackage": "Google\\Cloud\\Chronicle\\V1", "services": { + "DashboardQueryService": { + "clients": { + "grpc": { + "libraryClient": "DashboardQueryServiceGapicClient", + "rpcs": { + "ExecuteDashboardQuery": { + "methods": [ + "executeDashboardQuery" + ] + }, + "GetDashboardQuery": { + "methods": [ + "getDashboardQuery" + ] + } + } + } + } + }, + "DashboardChartService": { + "clients": { + "grpc": { + "libraryClient": "DashboardChartServiceGapicClient", + "rpcs": { + "BatchGetDashboardCharts": { + "methods": [ + "batchGetDashboardCharts" + ] + }, + "GetDashboardChart": { + "methods": [ + "getDashboardChart" + ] + } + } + } + } + }, "DataAccessControlService": { "clients": { "grpc": { @@ -182,6 +220,99 @@ } } }, + "NativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "NativeDashboardServiceGapicClient", + "rpcs": { + "AddChart": { + "methods": [ + "addChart" + ] + }, + "CreateNativeDashboard": { + "methods": [ + "createNativeDashboard" + ] + }, + "DeleteNativeDashboard": { + "methods": [ + "deleteNativeDashboard" + ] + }, + "DuplicateChart": { + "methods": [ + "duplicateChart" + ] + }, + "DuplicateNativeDashboard": { + "methods": [ + "duplicateNativeDashboard" + ] + }, + "EditChart": { + "methods": [ + "editChart" + ] + }, + "ExportNativeDashboards": { + "methods": [ + "exportNativeDashboards" + ] + }, + "GetNativeDashboard": { + "methods": [ + "getNativeDashboard" + ] + }, + "ImportNativeDashboards": { + "methods": [ + "importNativeDashboards" + ] + }, + "ListNativeDashboards": { + "methods": [ + "listNativeDashboards" + ] + }, + "RemoveChart": { + "methods": [ + "removeChart" + ] + }, + "UpdateNativeDashboard": { + "methods": [ + "updateNativeDashboard" + ] + } + } + } + } + }, + "FeaturedContentNativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "FeaturedContentNativeDashboardServiceGapicClient", + "rpcs": { + "GetFeaturedContentNativeDashboard": { + "methods": [ + "getFeaturedContentNativeDashboard" + ] + }, + "InstallFeaturedContentNativeDashboard": { + "methods": [ + "installFeaturedContentNativeDashboard" + ] + }, + "ListFeaturedContentNativeDashboards": { + "methods": [ + "listFeaturedContentNativeDashboards" + ] + } + } + } + } + }, "InstanceService": { "clients": { "grpc": { diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json b/Chronicle/src/V1/resources/dashboard_chart_service_client_config.json similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json rename to Chronicle/src/V1/resources/dashboard_chart_service_client_config.json diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php b/Chronicle/src/V1/resources/dashboard_chart_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php rename to Chronicle/src/V1/resources/dashboard_chart_service_descriptor_config.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php b/Chronicle/src/V1/resources/dashboard_chart_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php rename to Chronicle/src/V1/resources/dashboard_chart_service_rest_client_config.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json b/Chronicle/src/V1/resources/dashboard_query_service_client_config.json similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json rename to Chronicle/src/V1/resources/dashboard_query_service_client_config.json diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php b/Chronicle/src/V1/resources/dashboard_query_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php rename to Chronicle/src/V1/resources/dashboard_query_service_descriptor_config.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php b/Chronicle/src/V1/resources/dashboard_query_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php rename to Chronicle/src/V1/resources/dashboard_query_service_rest_client_config.php diff --git a/Chronicle/src/V1/resources/data_access_control_service_client_config.json b/Chronicle/src/V1/resources/data_access_control_service_client_config.json index e66f91bd3a6f..93ed52f8b477 100644 --- a/Chronicle/src/V1/resources/data_access_control_service_client_config.json +++ b/Chronicle/src/V1/resources/data_access_control_service_client_config.json @@ -6,7 +6,7 @@ "retry_policy_1_codes": [ "UNAVAILABLE" ], - "no_retry_1_codes": [] + "no_retry_2_codes": [] }, "retry_params": { "no_retry_params": { @@ -27,7 +27,7 @@ "max_rpc_timeout_millis": 60000, "total_timeout_millis": 60000 }, - "no_retry_1_params": { + "no_retry_2_params": { "initial_retry_delay_millis": 0, "retry_delay_multiplier": 0.0, "max_retry_delay_millis": 0, @@ -40,23 +40,23 @@ "methods": { "CreateDataAccessLabel": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "CreateDataAccessScope": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "DeleteDataAccessLabel": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "DeleteDataAccessScope": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "GetDataAccessLabel": { "timeout_millis": 60000, @@ -80,13 +80,13 @@ }, "UpdateDataAccessLabel": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "UpdateDataAccessScope": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" } } } diff --git a/Chronicle/src/V1/resources/data_table_service_client_config.json b/Chronicle/src/V1/resources/data_table_service_client_config.json index 8977263a9e42..6919c5f205c8 100644 --- a/Chronicle/src/V1/resources/data_table_service_client_config.json +++ b/Chronicle/src/V1/resources/data_table_service_client_config.json @@ -6,7 +6,7 @@ "retry_policy_4_codes": [ "UNAVAILABLE" ], - "no_retry_4_codes": [] + "no_retry_5_codes": [] }, "retry_params": { "no_retry_params": { @@ -27,7 +27,7 @@ "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000 }, - "no_retry_4_params": { + "no_retry_5_params": { "initial_retry_delay_millis": 0, "retry_delay_multiplier": 0.0, "max_retry_delay_millis": 0, @@ -40,8 +40,8 @@ "methods": { "BulkCreateDataTableRows": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "BulkGetDataTableRows": { "timeout_millis": 600000, @@ -50,33 +50,33 @@ }, "BulkReplaceDataTableRows": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "BulkUpdateDataTableRows": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "CreateDataTable": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "CreateDataTableRow": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "DeleteDataTable": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "DeleteDataTableRow": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "GetDataTable": { "timeout_millis": 600000, @@ -105,13 +105,13 @@ }, "UpdateDataTable": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" }, "UpdateDataTableRow": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" } } } diff --git a/Chronicle/src/V1/resources/entity_service_client_config.json b/Chronicle/src/V1/resources/entity_service_client_config.json index d044fe021d4f..393bd5ff80f5 100644 --- a/Chronicle/src/V1/resources/entity_service_client_config.json +++ b/Chronicle/src/V1/resources/entity_service_client_config.json @@ -6,7 +6,7 @@ "retry_policy_2_codes": [ "UNAVAILABLE" ], - "no_retry_3_codes": [] + "no_retry_4_codes": [] }, "retry_params": { "no_retry_params": { @@ -27,7 +27,7 @@ "max_rpc_timeout_millis": 90000, "total_timeout_millis": 90000 }, - "no_retry_3_params": { + "no_retry_4_params": { "initial_retry_delay_millis": 0, "retry_delay_multiplier": 0.0, "max_retry_delay_millis": 0, @@ -40,13 +40,13 @@ "methods": { "CreateWatchlist": { "timeout_millis": 90000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" }, "DeleteWatchlist": { "timeout_millis": 90000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" }, "GetWatchlist": { "timeout_millis": 90000, @@ -60,8 +60,8 @@ }, "UpdateWatchlist": { "timeout_millis": 90000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" } } } diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json b/Chronicle/src/V1/resources/featured_content_native_dashboard_service_client_config.json similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json rename to Chronicle/src/V1/resources/featured_content_native_dashboard_service_client_config.json diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php b/Chronicle/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php rename to Chronicle/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php b/Chronicle/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php rename to Chronicle/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json b/Chronicle/src/V1/resources/native_dashboard_service_client_config.json similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json rename to Chronicle/src/V1/resources/native_dashboard_service_client_config.json diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php b/Chronicle/src/V1/resources/native_dashboard_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php rename to Chronicle/src/V1/resources/native_dashboard_service_descriptor_config.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php b/Chronicle/src/V1/resources/native_dashboard_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php rename to Chronicle/src/V1/resources/native_dashboard_service_rest_client_config.php diff --git a/Chronicle/src/V1/resources/reference_list_service_client_config.json b/Chronicle/src/V1/resources/reference_list_service_client_config.json index 32f3e90972f9..731c05c97068 100644 --- a/Chronicle/src/V1/resources/reference_list_service_client_config.json +++ b/Chronicle/src/V1/resources/reference_list_service_client_config.json @@ -6,7 +6,7 @@ "retry_policy_1_codes": [ "UNAVAILABLE" ], - "no_retry_1_codes": [] + "no_retry_2_codes": [] }, "retry_params": { "no_retry_params": { @@ -27,7 +27,7 @@ "max_rpc_timeout_millis": 60000, "total_timeout_millis": 60000 }, - "no_retry_1_params": { + "no_retry_2_params": { "initial_retry_delay_millis": 0, "retry_delay_multiplier": 0.0, "max_retry_delay_millis": 0, @@ -40,8 +40,8 @@ "methods": { "CreateReferenceList": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "GetReferenceList": { "timeout_millis": 60000, @@ -55,8 +55,8 @@ }, "UpdateReferenceList": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" } } } diff --git a/Chronicle/src/V1/resources/rule_service_client_config.json b/Chronicle/src/V1/resources/rule_service_client_config.json index 101a8c15dd99..8bed0b79f6bd 100644 --- a/Chronicle/src/V1/resources/rule_service_client_config.json +++ b/Chronicle/src/V1/resources/rule_service_client_config.json @@ -9,8 +9,8 @@ "retry_policy_3_codes": [ "UNAVAILABLE" ], - "no_retry_1_codes": [], - "no_retry_2_codes": [] + "no_retry_2_codes": [], + "no_retry_3_codes": [] }, "retry_params": { "no_retry_params": { @@ -40,7 +40,7 @@ "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000 }, - "no_retry_1_params": { + "no_retry_2_params": { "initial_retry_delay_millis": 0, "retry_delay_multiplier": 0.0, "max_retry_delay_millis": 0, @@ -49,7 +49,7 @@ "max_rpc_timeout_millis": 60000, "total_timeout_millis": 60000 }, - "no_retry_2_params": { + "no_retry_3_params": { "initial_retry_delay_millis": 0, "retry_delay_multiplier": 0.0, "max_retry_delay_millis": 0, @@ -62,18 +62,18 @@ "methods": { "CreateRetrohunt": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" }, "CreateRule": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "DeleteRule": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" }, "GetRetrohunt": { "timeout_millis": 60000, @@ -112,13 +112,13 @@ }, "UpdateRule": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" }, "UpdateRuleDeployment": { "timeout_millis": 600000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" } } } diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php b/Chronicle/tests/Unit/V1/Client/DashboardChartServiceClientTest.php similarity index 84% rename from owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php rename to Chronicle/tests/Unit/V1/Client/DashboardChartServiceClientTest.php index db0110e9fdf8..b131161a6e0e 100644 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php +++ b/Chronicle/tests/Unit/V1/Client/DashboardChartServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return DashboardChartServiceClient */ @@ -75,12 +77,8 @@ public function batchGetDashboardChartsTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $formattedNames = [ - $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), - ]; - $request = (new BatchGetDashboardChartsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]')]; + $request = (new BatchGetDashboardChartsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchGetDashboardCharts($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -106,21 +104,20 @@ public function batchGetDashboardChartsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $formattedNames = [ - $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), - ]; - $request = (new BatchGetDashboardChartsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]')]; + $request = (new BatchGetDashboardChartsRequest())->setParent($formattedParent)->setNames($formattedNames); try { $gapicClient->batchGetDashboardCharts($request); // If the $gapicClient method call did not throw, fail the test @@ -157,8 +154,7 @@ public function getDashboardChartTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new GetDashboardChartRequest()) - ->setName($formattedName); + $request = (new GetDashboardChartRequest())->setName($formattedName); $response = $gapicClient->getDashboardChart($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -182,17 +178,19 @@ public function getDashboardChartExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new GetDashboardChartRequest()) - ->setName($formattedName); + $request = (new GetDashboardChartRequest())->setName($formattedName); try { $gapicClient->getDashboardChart($request); // If the $gapicClient method call did not throw, fail the test @@ -219,12 +217,8 @@ public function batchGetDashboardChartsAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $formattedNames = [ - $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), - ]; - $request = (new BatchGetDashboardChartsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); + $formattedNames = [$gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]')]; + $request = (new BatchGetDashboardChartsRequest())->setParent($formattedParent)->setNames($formattedNames); $response = $gapicClient->batchGetDashboardChartsAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php b/Chronicle/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php similarity index 88% rename from owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php rename to Chronicle/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php index 669772c5a4aa..42429031979d 100644 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php +++ b/Chronicle/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php @@ -51,7 +51,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return DashboardQueryServiceClient */ @@ -81,9 +83,7 @@ public function executeDashboardQueryTest() $query->setQuery($queryQuery); $queryInput = new Input(); $query->setInput($queryInput); - $request = (new ExecuteDashboardQueryRequest()) - ->setParent($formattedParent) - ->setQuery($query); + $request = (new ExecuteDashboardQueryRequest())->setParent($formattedParent)->setQuery($query); $response = $gapicClient->executeDashboardQuery($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -109,12 +109,15 @@ public function executeDashboardQueryExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); @@ -123,9 +126,7 @@ public function executeDashboardQueryExceptionTest() $query->setQuery($queryQuery); $queryInput = new Input(); $query->setInput($queryInput); - $request = (new ExecuteDashboardQueryRequest()) - ->setParent($formattedParent) - ->setQuery($query); + $request = (new ExecuteDashboardQueryRequest())->setParent($formattedParent)->setQuery($query); try { $gapicClient->executeDashboardQuery($request); // If the $gapicClient method call did not throw, fail the test @@ -160,8 +161,7 @@ public function getDashboardQueryTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); - $request = (new GetDashboardQueryRequest()) - ->setName($formattedName); + $request = (new GetDashboardQueryRequest())->setName($formattedName); $response = $gapicClient->getDashboardQuery($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -185,17 +185,19 @@ public function getDashboardQueryExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); - $request = (new GetDashboardQueryRequest()) - ->setName($formattedName); + $request = (new GetDashboardQueryRequest())->setName($formattedName); try { $gapicClient->getDashboardQuery($request); // If the $gapicClient method call did not throw, fail the test @@ -227,9 +229,7 @@ public function executeDashboardQueryAsyncTest() $query->setQuery($queryQuery); $queryInput = new Input(); $query->setInput($queryInput); - $request = (new ExecuteDashboardQueryRequest()) - ->setParent($formattedParent) - ->setQuery($query); + $request = (new ExecuteDashboardQueryRequest())->setParent($formattedParent)->setQuery($query); $response = $gapicClient->executeDashboardQueryAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php b/Chronicle/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php similarity index 80% rename from owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php rename to Chronicle/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php index e6d53dc7f72f..b5b0327f05cb 100644 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php +++ b/Chronicle/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php @@ -52,7 +52,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return FeaturedContentNativeDashboardServiceClient */ @@ -78,16 +80,23 @@ public function getFeaturedContentNativeDashboardTest() $expectedResponse->setName($name2); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new GetFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); + $formattedName = $gapicClient->featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + $request = (new GetFeaturedContentNativeDashboardRequest())->setName($formattedName); $response = $gapicClient->getFeaturedContentNativeDashboard($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); + $this->assertSame( + '/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', + $actualFuncCall + ); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -104,17 +113,24 @@ public function getFeaturedContentNativeDashboardExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new GetFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); + $formattedName = $gapicClient->featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + $request = (new GetFeaturedContentNativeDashboardRequest())->setName($formattedName); try { $gapicClient->getFeaturedContentNativeDashboard($request); // If the $gapicClient method call did not throw, fail the test @@ -142,16 +158,23 @@ public function installFeaturedContentNativeDashboardTest() $expectedResponse->setNativeDashboard($nativeDashboard); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new InstallFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); + $formattedName = $gapicClient->featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + $request = (new InstallFeaturedContentNativeDashboardRequest())->setName($formattedName); $response = $gapicClient->installFeaturedContentNativeDashboard($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/InstallFeaturedContentNativeDashboard', $actualFuncCall); + $this->assertSame( + '/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/InstallFeaturedContentNativeDashboard', + $actualFuncCall + ); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -168,17 +191,24 @@ public function installFeaturedContentNativeDashboardExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new InstallFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); + $formattedName = $gapicClient->featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + $request = (new InstallFeaturedContentNativeDashboardRequest())->setName($formattedName); try { $gapicClient->installFeaturedContentNativeDashboard($request); // If the $gapicClient method call did not throw, fail the test @@ -203,17 +233,14 @@ public function listFeaturedContentNativeDashboardsTest() // Mock response $nextPageToken = ''; $featuredContentNativeDashboardsElement = new FeaturedContentNativeDashboard(); - $featuredContentNativeDashboards = [ - $featuredContentNativeDashboardsElement, - ]; + $featuredContentNativeDashboards = [$featuredContentNativeDashboardsElement]; $expectedResponse = new ListFeaturedContentNativeDashboardsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setFeaturedContentNativeDashboards($featuredContentNativeDashboards); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListFeaturedContentNativeDashboardsRequest()) - ->setParent($formattedParent); + $request = (new ListFeaturedContentNativeDashboardsRequest())->setParent($formattedParent); $response = $gapicClient->listFeaturedContentNativeDashboards($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -223,7 +250,10 @@ public function listFeaturedContentNativeDashboardsTest() $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/ListFeaturedContentNativeDashboards', $actualFuncCall); + $this->assertSame( + '/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/ListFeaturedContentNativeDashboards', + $actualFuncCall + ); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -240,17 +270,19 @@ public function listFeaturedContentNativeDashboardsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListFeaturedContentNativeDashboardsRequest()) - ->setParent($formattedParent); + $request = (new ListFeaturedContentNativeDashboardsRequest())->setParent($formattedParent); try { $gapicClient->listFeaturedContentNativeDashboards($request); // If the $gapicClient method call did not throw, fail the test @@ -278,16 +310,23 @@ public function getFeaturedContentNativeDashboardAsyncTest() $expectedResponse->setName($name2); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new GetFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); + $formattedName = $gapicClient->featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + $request = (new GetFeaturedContentNativeDashboardRequest())->setName($formattedName); $response = $gapicClient->getFeaturedContentNativeDashboardAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); + $this->assertSame( + '/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', + $actualFuncCall + ); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php b/Chronicle/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php similarity index 88% rename from owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php rename to Chronicle/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php index 39c444fc6a19..610d0a8733ff 100644 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php +++ b/Chronicle/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php @@ -71,7 +71,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return NativeDashboardServiceClient */ @@ -133,12 +135,15 @@ public function addChartExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); @@ -221,12 +226,15 @@ public function createNativeDashboardExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); @@ -262,8 +270,7 @@ public function deleteNativeDashboardTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new DeleteNativeDashboardRequest()) - ->setName($formattedName); + $request = (new DeleteNativeDashboardRequest())->setName($formattedName); $gapicClient->deleteNativeDashboard($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -286,17 +293,19 @@ public function deleteNativeDashboardExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new DeleteNativeDashboardRequest()) - ->setName($formattedName); + $request = (new DeleteNativeDashboardRequest())->setName($formattedName); try { $gapicClient->deleteNativeDashboard($request); // If the $gapicClient method call did not throw, fail the test @@ -324,9 +333,7 @@ public function duplicateChartTest() // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new DuplicateChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); + $request = (new DuplicateChartRequest())->setName($formattedName)->setDashboardChart($formattedDashboardChart); $response = $gapicClient->duplicateChart($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -352,19 +359,20 @@ public function duplicateChartExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new DuplicateChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); + $request = (new DuplicateChartRequest())->setName($formattedName)->setDashboardChart($formattedDashboardChart); try { $gapicClient->duplicateChart($request); // If the $gapicClient method call did not throw, fail the test @@ -415,7 +423,10 @@ public function duplicateNativeDashboardTest() $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DuplicateNativeDashboard', $actualFuncCall); + $this->assertSame( + '/google.cloud.chronicle.v1.NativeDashboardService/DuplicateNativeDashboard', + $actualFuncCall + ); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $actualValue = $actualRequestObject->getNativeDashboard(); @@ -434,12 +445,15 @@ public function duplicateNativeDashboardExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); @@ -476,9 +490,7 @@ public function editChartTest() // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); $editMask = new FieldMask(); - $request = (new EditChartRequest()) - ->setName($formattedName) - ->setEditMask($editMask); + $request = (new EditChartRequest())->setName($formattedName)->setEditMask($editMask); $response = $gapicClient->editChart($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -504,19 +516,20 @@ public function editChartExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); $editMask = new FieldMask(); - $request = (new EditChartRequest()) - ->setName($formattedName) - ->setEditMask($editMask); + $request = (new EditChartRequest())->setName($formattedName)->setEditMask($editMask); try { $gapicClient->editChart($request); // If the $gapicClient method call did not throw, fail the test @@ -544,9 +557,7 @@ public function exportNativeDashboardsTest() // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); $names = []; - $request = (new ExportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setNames($names); + $request = (new ExportNativeDashboardsRequest())->setParent($formattedParent)->setNames($names); $response = $gapicClient->exportNativeDashboards($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -572,19 +583,20 @@ public function exportNativeDashboardsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); $names = []; - $request = (new ExportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setNames($names); + $request = (new ExportNativeDashboardsRequest())->setParent($formattedParent)->setNames($names); try { $gapicClient->exportNativeDashboards($request); // If the $gapicClient method call did not throw, fail the test @@ -623,8 +635,7 @@ public function getNativeDashboardTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new GetNativeDashboardRequest()) - ->setName($formattedName); + $request = (new GetNativeDashboardRequest())->setName($formattedName); $response = $gapicClient->getNativeDashboard($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -648,17 +659,19 @@ public function getNativeDashboardExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new GetNativeDashboardRequest()) - ->setName($formattedName); + $request = (new GetNativeDashboardRequest())->setName($formattedName); try { $gapicClient->getNativeDashboard($request); // If the $gapicClient method call did not throw, fail the test @@ -688,9 +701,7 @@ public function importNativeDashboardsTest() $source = new ImportNativeDashboardsInlineSource(); $sourceDashboards = []; $source->setDashboards($sourceDashboards); - $request = (new ImportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setSource($source); + $request = (new ImportNativeDashboardsRequest())->setParent($formattedParent)->setSource($source); $response = $gapicClient->importNativeDashboards($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -716,21 +727,22 @@ public function importNativeDashboardsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); $source = new ImportNativeDashboardsInlineSource(); $sourceDashboards = []; $source->setDashboards($sourceDashboards); - $request = (new ImportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setSource($source); + $request = (new ImportNativeDashboardsRequest())->setParent($formattedParent)->setSource($source); try { $gapicClient->importNativeDashboards($request); // If the $gapicClient method call did not throw, fail the test @@ -755,17 +767,14 @@ public function listNativeDashboardsTest() // Mock response $nextPageToken = ''; $nativeDashboardsElement = new NativeDashboard(); - $nativeDashboards = [ - $nativeDashboardsElement, - ]; + $nativeDashboards = [$nativeDashboardsElement]; $expectedResponse = new ListNativeDashboardsResponse(); $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setNativeDashboards($nativeDashboards); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListNativeDashboardsRequest()) - ->setParent($formattedParent); + $request = (new ListNativeDashboardsRequest())->setParent($formattedParent); $response = $gapicClient->listNativeDashboards($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -792,17 +801,19 @@ public function listNativeDashboardsExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListNativeDashboardsRequest()) - ->setParent($formattedParent); + $request = (new ListNativeDashboardsRequest())->setParent($formattedParent); try { $gapicClient->listNativeDashboards($request); // If the $gapicClient method call did not throw, fail the test @@ -842,9 +853,7 @@ public function removeChartTest() // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new RemoveChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); + $request = (new RemoveChartRequest())->setName($formattedName)->setDashboardChart($formattedDashboardChart); $response = $gapicClient->removeChart($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -870,19 +879,20 @@ public function removeChartExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new RemoveChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); + $request = (new RemoveChartRequest())->setName($formattedName)->setDashboardChart($formattedDashboardChart); try { $gapicClient->removeChart($request); // If the $gapicClient method call did not throw, fail the test @@ -952,12 +962,15 @@ public function updateNativeDashboardExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $nativeDashboard = new NativeDashboard(); diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php deleted file mode 100644 index 211a4b8a9af5..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBA/\x0A3google/cloud/chronicle/v1/data_access_control.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCF\x01\x0A\x1CCreateDataAccessLabelRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12J\x0A\x11data_access_label\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12!\x0A\x14data_access_label_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\x9B\x01\x0A\x1BListDataAccessLabelsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x1CListDataAccessLabelsResponse\x12F\x0A\x12data_access_labels\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessLabel\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x01\x0A\x1CUpdateDataAccessLabelRequest\x12J\x0A\x11data_access_label\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\xCF\x01\x0A\x1CCreateDataAccessScopeRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12J\x0A\x11data_access_scope\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12!\x0A\x14data_access_scope_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x9B\x01\x0A\x1BListDataAccessScopesRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xD3\x01\x0A\x1CListDataAccessScopesResponse\x12F\x0A\x12data_access_scopes\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessScope\x12-\x0A global_data_access_scope_granted\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B#\x0A!_global_data_access_scope_granted\"\x9B\x01\x0A\x1CUpdateDataAccessScopeRequest\x12J\x0A\x11data_access_scope\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\xD5\x03\x0A\x0FDataAccessLabel\x12\x13\x0A\x09udm_query\x18\x03 \x01(\x09H\x00\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x06 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessLabel\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}B\x0C\x0A\x0Adefinition\"\x88\x05\x0A\x0FDataAccessScope\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12\\\x0A\x1Aallowed_data_access_labels\x18\x02 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12[\x0A\x19denied_data_access_labels\x18\x03 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x09 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09allow_all\x18\x0A \x01(\x08B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessScope\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}\"\xD0\x01\x0A\x18DataAccessLabelReference\x12\x1B\x0A\x11data_access_label\x18\x01 \x01(\x09H\x00\x12\x12\x0A\x08log_type\x18\x02 \x01(\x09H\x00\x12\x19\x0A\x0Fasset_namespace\x18\x03 \x01(\x09H\x00\x12D\x0A\x0Fingestion_label\x18\x04 \x01(\x0B2).google.cloud.chronicle.v1.IngestionLabelH\x00\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x03B\x07\x0A\x05label\"V\x0A\x0EIngestionLabel\x12 \x0A\x13ingestion_label_key\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\"\x0A\x15ingestion_label_value\x18\x02 \x01(\x09B\x03\xE0A\x012\xE6\x12\x0A\x18DataAccessControlService\x12\x8A\x02\x0A\x15CreateDataAccessLabel\x127.google.cloud.chronicle.v1.CreateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8B\x01\xDAA-parent,data_access_label,data_access_label_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels:\x11data_access_label\x12\xC7\x01\x0A\x12GetDataAccessLabel\x124.google.cloud.chronicle.v1.GetDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\xDA\x01\x0A\x14ListDataAccessLabels\x126.google.cloud.chronicle.v1.ListDataAccessLabelsRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessLabelsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels\x12\x8C\x02\x0A\x15UpdateDataAccessLabel\x127.google.cloud.chronicle.v1.UpdateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8D\x01\xDAA\x1Ddata_access_label,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}:\x11data_access_label\x12\xB9\x01\x0A\x15DeleteDataAccessLabel\x127.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\x8A\x02\x0A\x15CreateDataAccessScope\x127.google.cloud.chronicle.v1.CreateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8B\x01\xDAA-parent,data_access_scope,data_access_scope_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes:\x11data_access_scope\x12\xC7\x01\x0A\x12GetDataAccessScope\x124.google.cloud.chronicle.v1.GetDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x12\xDA\x01\x0A\x14ListDataAccessScopes\x126.google.cloud.chronicle.v1.ListDataAccessScopesRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessScopesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes\x12\x8C\x02\x0A\x15UpdateDataAccessScope\x127.google.cloud.chronicle.v1.UpdateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8D\x01\xDAA\x1Ddata_access_scope,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}:\x11data_access_scope\x12\xB9\x01\x0A\x15DeleteDataAccessScope\x127.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC6\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0FDataAccessProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php deleted file mode 100644 index 101c9111f097..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF3E\x0A*google/cloud/chronicle/v1/data_table.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\xAF\x01\x0A\x16CreateDataTableRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12=\x0A\x0Adata_table\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x12\x1A\x0A\x0Ddata_table_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"O\x0A\x13GetDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\"\x8D\x01\x0A\x16UpdateDataTableRequest\x12=\x0A\x0Adata_table\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\x9B\x01\x0A\x15ListDataTablesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\"f\x0A\x16DeleteDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"l\x0A\x16ListDataTablesResponse\x129\x0A\x0Bdata_tables\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.DataTable\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA0\x01\x0A\x19CreateDataTableRowRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12D\x0A\x0Edata_table_row\x18\x02 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\"\x97\x01\x0A\x19UpdateDataTableRowRequest\x12D\x0A\x0Edata_table_row\x18\x01 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xB6\x01\x0A\x18ListDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"{\x0A\x19ListDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"U\x0A\x16GetDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"X\x0A\x19DeleteDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"\xAC\x01\x0A\x1EBulkCreateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkCreateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xA6\x01\x0A\x1BBulkGetDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12H\x0A\x08requests\x18\x02 \x03(\x0B21.google.cloud.chronicle.v1.GetDataTableRowRequestB\x03\xE0A\x02\"`\x0A\x1CBulkGetDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAD\x01\x0A\x1FBulkReplaceDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"d\x0A BulkReplaceDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAC\x01\x0A\x1EBulkUpdateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.UpdateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkUpdateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"b\x0A\x12DataTableScopeInfo\x12L\x0A\x12data_access_scopes\x18\x01 \x03(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x99\x06\x0A\x09DataTable\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12H\x0A\x0Bcolumn_info\x18\x06 \x03(\x0B2..google.cloud.chronicle.v1.DataTableColumnInfoB\x03\xE0A\x05\x12\x1C\x0A\x0Fdata_table_uuid\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05rules\x18\x08 \x03(\x09B\x03\xE0A\x03\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\"\x0A\x15approximate_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12F\x0A\x0Ascope_info\x18\x0C \x01(\x0B2-.google.cloud.chronicle.v1.DataTableScopeInfoB\x03\xE0A\x01\x12L\x0A\x0Dupdate_source\x18\x0D \x01(\x0E20.google.cloud.chronicle.v1.DataTableUpdateSourceB\x03\xE0A\x03\x12E\x0A\x1Crow_time_to_live_update_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\x95\x01\xEAA\x91\x01\x0A\"chronicle.googleapis.com/DataTable\x12Tprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}*\x0AdataTables2\x09dataTable\"\x81\x03\x0A\x0CDataTableRow\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x13\x0A\x06values\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x05 \x01(\x09B\x03\xE0A\x01:\xBD\x01\xEAA\xB9\x01\x0A%chronicle.googleapis.com/DataTableRow\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}*\x0DdataTableRows2\x0CdataTableRow\"\xFA\x02\x0A\x13DataTableColumnInfo\x12\x1C\x0A\x12mapped_column_path\x18\x03 \x01(\x09H\x00\x12Y\x0A\x0Bcolumn_type\x18\x04 \x01(\x0E2B.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnTypeH\x00\x12\x19\x0A\x0Ccolumn_index\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1C\x0A\x0Foriginal_column\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Akey_column\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Frepeated_values\x18\x06 \x01(\x08B\x03\xE0A\x01\"j\x0A\x13DataTableColumnType\x12&\x0A\"DATA_TABLE_COLUMN_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x01\x12\x09\x0A\x05REGEX\x10\x02\x12\x08\x0A\x04CIDR\x10\x03\x12\x0A\x0A\x06NUMBER\x10\x04B\x0E\x0A\x0Cpath_or_type\"m\x0A\"GetDataTableOperationErrorsRequest\x12G\x0A\x04name\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1chronicle.googleapis.com/DataTableOperationErrors\"\xB8\x02\x0A\x18DataTableOperationErrors\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12&\x0A\x0Arpc_errors\x18\x03 \x03(\x0B2\x12.google.rpc.Status:\xE0\x01\xEAA\xDC\x01\x0A1chronicle.googleapis.com/DataTableOperationErrors\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}*\x18dataTableOperationErrors2\x18dataTableOperationErrors*a\x0A\x15DataTableUpdateSource\x12(\x0A\$DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04USER\x10\x01\x12\x08\x0A\x04RULE\x10\x02\x12\x0A\x0A\x06SEARCH\x10\x032\x89\x1C\x0A\x10DataTableService\x12\xDC\x01\x0A\x0FCreateDataTable\x121.google.cloud.chronicle.v1.CreateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"p\xDAA\x1Fparent,data_table,data_table_id\x82\xD3\xE4\x93\x02H\":/v1/{parent=projects/*/locations/*/instances/*}/dataTables:\x0Adata_table\x12\xC2\x01\x0A\x0EListDataTables\x120.google.cloud.chronicle.v1.ListDataTablesRequest\x1A1.google.cloud.chronicle.v1.ListDataTablesResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/dataTables\x12\xAF\x01\x0A\x0CGetDataTable\x12..google.cloud.chronicle.v1.GetDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xDE\x01\x0A\x0FUpdateDataTable\x121.google.cloud.chronicle.v1.UpdateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"r\xDAA\x16data_table,update_mask\x82\xD3\xE4\x93\x02S2E/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}:\x0Adata_table\x12\xAD\x01\x0A\x0FDeleteDataTable\x121.google.cloud.chronicle.v1.DeleteDataTableRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xEF\x01\x0A\x12CreateDataTableRow\x124.google.cloud.chronicle.v1.CreateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"z\xDAA\x15parent,data_table_row\x82\xD3\xE4\x93\x02\\\"J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:\x0Edata_table_row\x12\x84\x02\x0A\x12UpdateDataTableRow\x124.google.cloud.chronicle.v1.UpdateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"\x8E\x01\xDAA\x1Adata_table_row,update_mask\x82\xD3\xE4\x93\x02k2Y/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}:\x0Edata_table_row\x12\xDB\x01\x0A\x11ListDataTableRows\x123.google.cloud.chronicle.v1.ListDataTableRowsRequest\x1A4.google.cloud.chronicle.v1.ListDataTableRowsResponse\"[\xDAA\x06parent\x82\xD3\xE4\x93\x02L\x12J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows\x12\xC8\x01\x0A\x0FGetDataTableRow\x121.google.cloud.chronicle.v1.GetDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\xBD\x01\x0A\x12DeleteDataTableRow\x124.google.cloud.chronicle.v1.DeleteDataTableRowRequest\x1A\x16.google.protobuf.Empty\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L*J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\x84\x02\x0A\x17BulkCreateDataTableRows\x129.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate:\x01*\x12\xF8\x01\x0A\x14BulkGetDataTableRows\x126.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest\x1A7.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse\"o\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02W\"R/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet:\x01*\x12\x88\x02\x0A\x18BulkReplaceDataTableRows\x12:.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest\x1A;.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse\"s\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02[\"V/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace:\x01*\x12\x84\x02\x0A\x17BulkUpdateDataTableRows\x129.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate:\x01*\x12\xEA\x01\x0A\x1BGetDataTableOperationErrors\x12=.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest\x1A3.google.cloud.chronicle.v1.DataTableOperationErrors\"W\xDAA\x04name\x82\xD3\xE4\x93\x02J\x12H/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xC5\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0EDataTableProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php deleted file mode 100644 index 45b8f91f3f08..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9A\x19\x0A&google/cloud/chronicle/v1/entity.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD5\x06\x0A\x09Watchlist\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12multiplying_factor\x18\x05 \x01(\x02B\x03\xE0A\x01\x12h\x0A\x1Bentity_population_mechanism\x18\x06 \x01(\x0B2>.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanismB\x03\xE0A\x02\x12K\x0A\x0Centity_count\x18\x07 \x01(\x0B20.google.cloud.chronicle.v1.Watchlist.EntityCountB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\\\x0A\x1Awatchlist_user_preferences\x18\x0A \x01(\x0B23.google.cloud.chronicle.v1.WatchlistUserPreferencesB\x03\xE0A\x01\x1A\x90\x01\x0A\x19EntityPopulationMechanism\x12\\\x0A\x06manual\x18\x01 \x01(\x0B2E.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.ManualB\x03\xE0A\x01H\x00\x1A\x08\x0A\x06ManualB\x0B\x0A\x09mechanism\x1A4\x0A\x0BEntityCount\x12\x11\x0A\x04user\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x12\x0A\x05asset\x18\x02 \x01(\x05B\x03\xE0A\x03:\x94\x01\xEAA\x90\x01\x0A\"chronicle.googleapis.com/Watchlist\x12Sprojects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}*\x0Awatchlists2\x09watchlist\"/\x0A\x18WatchlistUserPreferences\x12\x13\x0A\x06pinned\x18\x01 \x01(\x08B\x03\xE0A\x01\"O\x0A\x13GetWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\"\x99\x01\x0A\x15ListWatchlistsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"u\x0A\x16ListWatchlistsResponse\x12=\x0A\x0Awatchlists\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x01\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAD\x01\x0A\x16CreateWatchlistRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x19\x0A\x0Cwatchlist_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x09watchlist\x18\x03 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateWatchlistRequest\x12<\x0A\x09watchlist\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"f\x0A\x16DeleteWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x012\xBE\x08\x0A\x0DEntityService\x12\xAF\x01\x0A\x0CGetWatchlist\x12..google.cloud.chronicle.v1.GetWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x12\xC2\x01\x0A\x0EListWatchlists\x120.google.cloud.chronicle.v1.ListWatchlistsRequest\x1A1.google.cloud.chronicle.v1.ListWatchlistsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/watchlists\x12\xD9\x01\x0A\x0FCreateWatchlist\x121.google.cloud.chronicle.v1.CreateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"m\xDAA\x1Dparent,watchlist,watchlist_id\x82\xD3\xE4\x93\x02G\":/v1/{parent=projects/*/locations/*/instances/*}/watchlists:\x09watchlist\x12\xDB\x01\x0A\x0FUpdateWatchlist\x121.google.cloud.chronicle.v1.UpdateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"o\xDAA\x15watchlist,update_mask\x82\xD3\xE4\x93\x02Q2D/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}:\x09watchlist\x12\xAD\x01\x0A\x0FDeleteWatchlist\x121.google.cloud.chronicle.v1.DeleteWatchlistRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC2\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0BEntityProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php deleted file mode 100644 index 35968a37f5c2..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD7\x06\x0A(google/cloud/chronicle/v1/instance.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\x98\x01\x0A\x08Instance\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08:y\xEAAv\x0A!chronicle.googleapis.com/Instance\x12internalAddGeneratedFile( - "\x0A\xFF\x19\x0A.google/cloud/chronicle/v1/reference_list.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"]\x0A\x09ScopeInfo\x12P\x0A\x14reference_list_scope\x18\x02 \x01(\x0B2-.google.cloud.chronicle.v1.ReferenceListScopeB\x03\xE0A\x02\".\x0A\x12ReferenceListScope\x12\x18\x0A\x0Bscope_names\x18\x01 \x03(\x09B\x03\xE0A\x01\"\x93\x01\x0A\x17GetReferenceListRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12:\x0A\x04view\x18\x02 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"\xBE\x01\x0A\x19ListReferenceListsRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12:\x0A\x04view\x18\x04 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"x\x0A\x1AListReferenceListsResponse\x12A\x0A\x0Freference_lists\x18\x01 \x03(\x0B2(.google.cloud.chronicle.v1.ReferenceList\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC3\x01\x0A\x1ACreateReferenceListRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12E\x0A\x0Ereference_list\x18\x02 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12\x1E\x0A\x11reference_list_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x94\x01\x0A\x1AUpdateReferenceListRequest\x12E\x0A\x0Ereference_list\x18\x01 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\xAA\x04\x0A\x0DReferenceList\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x07entries\x18\x05 \x03(\x0B2-.google.cloud.chronicle.v1.ReferenceListEntryB\x03\xE0A\x02\x12\x12\x0A\x05rules\x18\x06 \x03(\x09B\x03\xE0A\x03\x12L\x0A\x0Bsyntax_type\x18\x08 \x01(\x0E22.google.cloud.chronicle.v1.ReferenceListSyntaxTypeB\x03\xE0A\x02\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x128\x0A\x0Ascope_info\x18\x0B \x01(\x0B2\$.google.cloud.chronicle.v1.ScopeInfo:\x8A\x01\xEAA\x86\x01\x0A&chronicle.googleapis.com/ReferenceList\x12\\projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}\"(\x0A\x12ReferenceListEntry\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x02*\xC2\x01\x0A\x17ReferenceListSyntaxType\x12*\x0A&REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED\x10\x00\x120\x0A,REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING\x10\x01\x12\$\x0A REFERENCE_LIST_SYNTAX_TYPE_REGEX\x10\x02\x12#\x0A\x1FREFERENCE_LIST_SYNTAX_TYPE_CIDR\x10\x03*u\x0A\x11ReferenceListView\x12#\x0A\x1FREFERENCE_LIST_VIEW_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19REFERENCE_LIST_VIEW_BASIC\x10\x01\x12\x1C\x0A\x18REFERENCE_LIST_VIEW_FULL\x10\x022\xF5\x07\x0A\x14ReferenceListService\x12\xBF\x01\x0A\x10GetReferenceList\x122.google.cloud.chronicle.v1.GetReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"M\xDAA\x04name\x82\xD3\xE4\x93\x02@\x12>/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}\x12\xD2\x01\x0A\x12ListReferenceLists\x124.google.cloud.chronicle.v1.ListReferenceListsRequest\x1A5.google.cloud.chronicle.v1.ListReferenceListsResponse\"O\xDAA\x06parent\x82\xD3\xE4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/instances/*}/referenceLists\x12\xF9\x01\x0A\x13CreateReferenceList\x125.google.cloud.chronicle.v1.CreateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x80\x01\xDAA'parent,reference_list,reference_list_id\x82\xD3\xE4\x93\x02P\">/v1/{parent=projects/*/locations/*/instances/*}/referenceLists:\x0Ereference_list\x12\xFB\x01\x0A\x13UpdateReferenceList\x125.google.cloud.chronicle.v1.UpdateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x82\x01\xDAA\x1Areference_list,update_mask\x82\xD3\xE4\x93\x02_2M/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}:\x0Ereference_list\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC9\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x12ReferenceListProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php deleted file mode 100644 index 752c16da4d3a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE2@\x0A\$google/cloud/chronicle/v1/rule.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\x91\x09\x0A\x04Rule\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Brevision_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x0C\x0A\x04text\x18\x04 \x01(\x09\x12\x13\x0A\x06author\x18\x05 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x08severity\x18\x06 \x01(\x0B2#.google.cloud.chronicle.v1.SeverityB\x03\xE0A\x03\x12D\x0A\x08metadata\x18\x07 \x03(\x0B2-.google.cloud.chronicle.v1.Rule.MetadataEntryB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12P\x0A\x11compilation_state\x18\x0A \x01(\x0E20.google.cloud.chronicle.v1.Rule.CompilationStateB\x03\xE0A\x03\x126\x0A\x04type\x18\x0C \x01(\x0E2#.google.cloud.chronicle.v1.RuleTypeB\x03\xE0A\x03\x12G\x0A\x0Freference_lists\x18\x0D \x03(\x09B.\xE0A\x03\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12M\x0A\x17allowed_run_frequencies\x18\x0E \x03(\x0E2'.google.cloud.chronicle.v1.RunFrequencyB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0F \x01(\x09\x12<\x0A\x05scope\x18\x10 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12V\x0A\x17compilation_diagnostics\x18\x11 \x03(\x0B20.google.cloud.chronicle.v1.CompilationDiagnosticB\x03\xE0A\x03\x12.\x0A!near_real_time_live_rule_eligible\x18\x12 \x01(\x08B\x03\xE0A\x03\x12?\x0A\x0Binputs_used\x18\x14 \x01(\x0B2%.google.cloud.chronicle.v1.InputsUsedB\x03\xE0A\x03\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"P\x0A\x10CompilationState\x12!\x0A\x1DCOMPILATION_STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02:m\xEAAj\x0A\x1Dchronicle.googleapis.com/Rule\x12Iprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}\"\xCB\x05\x0A\x0ERuleDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x0F\x0A\x07enabled\x18\x02 \x01(\x08\x12\x10\x0A\x08alerting\x18\x03 \x01(\x08\x12\x10\x0A\x08archived\x18\x04 \x01(\x08\x125\x0A\x0Carchive_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12>\x0A\x0Drun_frequency\x18\x06 \x01(\x0E2'.google.cloud.chronicle.v1.RunFrequency\x12V\x0A\x0Fexecution_state\x18\x07 \x01(\x0E28.google.cloud.chronicle.v1.RuleDeployment.ExecutionStateB\x03\xE0A\x03\x12=\x0A\x0Eproducer_rules\x18\x08 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12=\x0A\x0Econsumer_rules\x18\x09 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12F\x0A\x1Dlast_alert_status_change_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"W\x0A\x0EExecutionState\x12\x1F\x0A\x1BEXECUTION_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07DEFAULT\x10\x01\x12\x0B\x0A\x07LIMITED\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03:\x82\x01\xEAA\x7F\x0A'chronicle.googleapis.com/RuleDeployment\x12Tprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment\"\xC8\x03\x0A\x09Retrohunt\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x124\x0A\x10process_interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x02\x126\x0A\x12execution_interval\x18\x03 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12>\x0A\x05state\x18\x04 \x01(\x0E2*.google.cloud.chronicle.v1.Retrohunt.StateB\x03\xE0A\x03\x12 \x0A\x13progress_percentage\x18\x05 \x01(\x02B\x03\xE0A\x03\"P\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04:\x8A\x01\xEAA\x86\x01\x0A\"chronicle.googleapis.com/Retrohunt\x12`projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}\"~\x0A\x11CreateRuleRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x122\x0A\x04rule\x18\x02 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\"x\x0A\x0EGetRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"\xB3\x01\x0A\x10ListRulesRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\\\x0A\x11ListRulesResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"x\x0A\x11UpdateRuleRequest\x122\x0A\x04rule\x18\x01 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\\\x0A\x11DeleteRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xA9\x01\x0A\x18ListRuleRevisionsRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"d\x0A\x19ListRuleRevisionsResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x92\x01\x0A\x16CreateRetrohuntRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12<\x0A\x09retrohunt\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.RetrohuntB\x03\xE0A\x02\"O\x0A\x13GetRetrohuntRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Retrohunt\"\x8A\x01\x0A\x15ListRetrohuntsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"k\x0A\x16ListRetrohuntsResponse\x128\x0A\x0Aretrohunts\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.Retrohunt\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"Y\x0A\x18GetRuleDeploymentRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/RuleDeployment\"\x94\x01\x0A\x1AListRuleDeploymentsRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/RuleDeployment\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"{\x0A\x1BListRuleDeploymentsResponse\x12C\x0A\x10rule_deployments\x18\x01 \x03(\x0B2).google.cloud.chronicle.v1.RuleDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9C\x01\x0A\x1BUpdateRuleDeploymentRequest\x12G\x0A\x0Frule_deployment\x18\x01 \x01(\x0B2).google.cloud.chronicle.v1.RuleDeploymentB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"y\x0A\x13CompilationPosition\x12\x17\x0A\x0Astart_line\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x19\x0A\x0Cstart_column\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x15\x0A\x08end_line\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Aend_column\x18\x04 \x01(\x05B\x03\xE0A\x03\"\x96\x02\x0A\x15CompilationDiagnostic\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x08position\x18\x02 \x01(\x0B2..google.cloud.chronicle.v1.CompilationPositionB\x03\xE0A\x03\x12P\x0A\x08severity\x18\x03 \x01(\x0E29.google.cloud.chronicle.v1.CompilationDiagnostic.SeverityB\x03\xE0A\x03\x12\x10\x0A\x03uri\x18\x05 \x01(\x09B\x03\xE0A\x03\"<\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WARNING\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\" \x0A\x08Severity\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\"\x9A\x01\x0A\x11RetrohuntMetadata\x125\x0A\x09retrohunt\x18\x01 \x01(\x09B\"\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x12execution_interval\x18\x02 \x01(\x0B2\x15.google.type.Interval\x12\x1B\x0A\x13progress_percentage\x18\x03 \x01(\x02\"Z\x0A\x0AInputsUsed\x12\x15\x0A\x08uses_udm\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Buses_entity\x18\x02 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Euses_detection\x18\x03 \x01(\x08B\x03\xE0A\x01*N\x0A\x0CRunFrequency\x12\x1D\x0A\x19RUN_FREQUENCY_UNSPECIFIED\x10\x00\x12\x08\x0A\x04LIVE\x10\x01\x12\x0A\x0A\x06HOURLY\x10\x02\x12\x09\x0A\x05DAILY\x10\x03*H\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CSINGLE_EVENT\x10\x01\x12\x0F\x0A\x0BMULTI_EVENT\x10\x02*V\x0A\x08RuleView\x12\x19\x0A\x15RULE_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x1A\x0A\x16REVISION_METADATA_ONLY\x10\x032\xA9\x13\x0A\x0BRuleService\x12\xAE\x01\x0A\x0ACreateRule\x12,.google.cloud.chronicle.v1.CreateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"Q\xDAA\x0Bparent,rule\x82\xD3\xE4\x93\x02=\"5/v1/{parent=projects/*/locations/*/instances/*}/rules:\x04rule\x12\x9B\x01\x0A\x07GetRule\x12).google.cloud.chronicle.v1.GetRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xAE\x01\x0A\x09ListRules\x12+.google.cloud.chronicle.v1.ListRulesRequest\x1A,.google.cloud.chronicle.v1.ListRulesResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1/{parent=projects/*/locations/*/instances/*}/rules\x12\xB8\x01\x0A\x0AUpdateRule\x12,.google.cloud.chronicle.v1.UpdateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"[\xDAA\x10rule,update_mask\x82\xD3\xE4\x93\x02B2:/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}:\x04rule\x12\x98\x01\x0A\x0ADeleteRule\x12,.google.cloud.chronicle.v1.DeleteRuleRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xD2\x01\x0A\x11ListRuleRevisions\x123.google.cloud.chronicle.v1.ListRuleRevisionsRequest\x1A4.google.cloud.chronicle.v1.ListRuleRevisionsResponse\"R\xDAA\x04name\x82\xD3\xE4\x93\x02E\x12C/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions\x12\xEF\x01\x0A\x0FCreateRetrohunt\x121.google.cloud.chronicle.v1.CreateRetrohuntRequest\x1A\x1D.google.longrunning.Operation\"\x89\x01\xCAA\x1E\x0A\x09Retrohunt\x12\x11RetrohuntMetadata\xDAA\x10parent,retrohunt\x82\xD3\xE4\x93\x02O\"B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts:\x09retrohunt\x12\xB7\x01\x0A\x0CGetRetrohunt\x12..google.cloud.chronicle.v1.GetRetrohuntRequest\x1A\$.google.cloud.chronicle.v1.Retrohunt\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}\x12\xCA\x01\x0A\x0EListRetrohunts\x120.google.cloud.chronicle.v1.ListRetrohuntsRequest\x1A1.google.cloud.chronicle.v1.ListRetrohuntsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts\x12\xC4\x01\x0A\x11GetRuleDeployment\x123.google.cloud.chronicle.v1.GetRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}\x12\xDA\x01\x0A\x13ListRuleDeployments\x125.google.cloud.chronicle.v1.ListRuleDeploymentsRequest\x1A6.google.cloud.chronicle.v1.ListRuleDeploymentsResponse\"T\xDAA\x06parent\x82\xD3\xE4\x93\x02E\x12C/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments\x12\x83\x02\x0A\x14UpdateRuleDeployment\x126.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"\x87\x01\xDAA\x1Brule_deployment,update_mask\x82\xD3\xE4\x93\x02c2P/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}:\x0Frule_deployment\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC0\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x09RuleProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php deleted file mode 100644 index dac0cbb7ab42..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest - */ -class BulkCreateDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * @return \Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php deleted file mode 100644 index ec0e78d92832..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse - */ -class BulkCreateDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataTableRows created - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * DataTableRows created - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * DataTableRows created - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * DataTableRows created - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php deleted file mode 100644 index 6c824543b91b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.BulkGetDataTableRowsRequest - */ -class BulkGetDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * @return \Google\Cloud\Chronicle\V1\BulkGetDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\GetDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\GetDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php deleted file mode 100644 index b4bc937ab8bb..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkGetDataTableRowsResponse - */ -class BulkGetDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested data table rows. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * The requested data table rows. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * The requested data table rows. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * The requested data table rows. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php deleted file mode 100644 index 8389b6eecd77..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest - */ -class BulkReplaceDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * @return \Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php deleted file mode 100644 index 2dc0f909f77a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse - */ -class BulkReplaceDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataTableRows that replaced existing data table rows - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * DataTableRows that replaced existing data table rows - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * DataTableRows that replaced existing data table rows - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * DataTableRows that replaced existing data table rows - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php deleted file mode 100644 index a635d9e33430..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest - */ -class BulkUpdateDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * @return \Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php deleted file mode 100644 index 903503608d86..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse - */ -class BulkUpdateDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataTableRows updated - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * DataTableRows updated - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * DataTableRows updated - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * DataTableRows updated - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php deleted file mode 100644 index 0bb762683f68..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.chronicle.v1.CompilationDiagnostic - */ -class CompilationDiagnostic extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The diagnostic message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $position = null; - /** - * Output only. The severity of a rule's compilation diagnostic. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $severity = 0; - /** - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * - * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Output only. The diagnostic message. - * @type \Google\Cloud\Chronicle\V1\CompilationPosition $position - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * @type int $severity - * Output only. The severity of a rule's compilation diagnostic. - * @type string $uri - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The diagnostic message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. The diagnostic message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\CompilationPosition|null - */ - public function getPosition() - { - return $this->position; - } - - public function hasPosition() - { - return isset($this->position); - } - - public function clearPosition() - { - unset($this->position); - } - - /** - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\CompilationPosition $var - * @return $this - */ - public function setPosition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\CompilationPosition::class); - $this->position = $var; - - return $this; - } - - /** - * Output only. The severity of a rule's compilation diagnostic. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Output only. The severity of a rule's compilation diagnostic. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\CompilationDiagnostic\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * - * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * - * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php deleted file mode 100644 index 09e4fc379326..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.chronicle.v1.CompilationDiagnostic.Severity - */ -class Severity -{ - /** - * An unspecified severity level. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * A compilation warning. - * - * Generated from protobuf enum WARNING = 1; - */ - const WARNING = 1; - /** - * A compilation error. - * - * Generated from protobuf enum ERROR = 2; - */ - const ERROR = 2; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php deleted file mode 100644 index 2ab7cc676528..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.chronicle.v1.CompilationPosition - */ -class CompilationPosition extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Start line number, beginning at 1. - * - * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_line = 0; - /** - * Output only. Start column number, beginning at 1. - * - * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_column = 0; - /** - * Output only. End line number, beginning at 1. - * - * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_line = 0; - /** - * Output only. End column number, beginning at 1. - * - * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_column = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_line - * Output only. Start line number, beginning at 1. - * @type int $start_column - * Output only. Start column number, beginning at 1. - * @type int $end_line - * Output only. End line number, beginning at 1. - * @type int $end_column - * Output only. End column number, beginning at 1. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Start line number, beginning at 1. - * - * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStartLine() - { - return $this->start_line; - } - - /** - * Output only. Start line number, beginning at 1. - * - * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStartLine($var) - { - GPBUtil::checkInt32($var); - $this->start_line = $var; - - return $this; - } - - /** - * Output only. Start column number, beginning at 1. - * - * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStartColumn() - { - return $this->start_column; - } - - /** - * Output only. Start column number, beginning at 1. - * - * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStartColumn($var) - { - GPBUtil::checkInt32($var); - $this->start_column = $var; - - return $this; - } - - /** - * Output only. End line number, beginning at 1. - * - * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEndLine() - { - return $this->end_line; - } - - /** - * Output only. End line number, beginning at 1. - * - * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEndLine($var) - { - GPBUtil::checkInt32($var); - $this->end_line = $var; - - return $this; - } - - /** - * Output only. End column number, beginning at 1. - * - * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEndColumn() - { - return $this->end_column; - } - - /** - * Output only. End column number, beginning at 1. - * - * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEndColumn($var) - { - GPBUtil::checkInt32($var); - $this->end_column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php deleted file mode 100644 index 53319e2e95d3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.chronicle.v1.CreateDataAccessLabelRequest - */ -class CreateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data access label to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_label = null; - /** - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_label_id = ''; - - /** - * @param string $parent Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. Data access label to create. - * @param string $dataAccessLabelId Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * @return \Google\Cloud\Chronicle\V1\CreateDataAccessLabelRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, string $dataAccessLabelId): self - { - return (new self()) - ->setParent($parent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label - * Required. Data access label to create. - * @type string $data_access_label_id - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data access label to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null - */ - public function getDataAccessLabel() - { - return $this->data_access_label; - } - - public function hasDataAccessLabel() - { - return isset($this->data_access_label); - } - - public function clearDataAccessLabel() - { - unset($this->data_access_label); - } - - /** - * Required. Data access label to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var - * @return $this - */ - public function setDataAccessLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); - $this->data_access_label = $var; - - return $this; - } - - /** - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataAccessLabelId() - { - return $this->data_access_label_id; - } - - /** - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataAccessLabelId($var) - { - GPBUtil::checkString($var, True); - $this->data_access_label_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php deleted file mode 100644 index d4d59d290e1b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.chronicle.v1.CreateDataAccessScopeRequest - */ -class CreateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data access scope to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_scope = null; - /** - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_scope_id = ''; - - /** - * @param string $parent Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. Data access scope to create. - * @param string $dataAccessScopeId Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * @return \Google\Cloud\Chronicle\V1\CreateDataAccessScopeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, string $dataAccessScopeId): self - { - return (new self()) - ->setParent($parent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope - * Required. Data access scope to create. - * @type string $data_access_scope_id - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data access scope to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null - */ - public function getDataAccessScope() - { - return $this->data_access_scope; - } - - public function hasDataAccessScope() - { - return isset($this->data_access_scope); - } - - public function clearDataAccessScope() - { - unset($this->data_access_scope); - } - - /** - * Required. Data access scope to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var - * @return $this - */ - public function setDataAccessScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); - $this->data_access_scope = $var; - - return $this; - } - - /** - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataAccessScopeId() - { - return $this->data_access_scope_id; - } - - /** - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataAccessScopeId($var) - { - GPBUtil::checkString($var, True); - $this->data_access_scope_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php deleted file mode 100644 index 01a4b78c238a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php +++ /dev/null @@ -1,188 +0,0 @@ -google.cloud.chronicle.v1.CreateDataTableRequest - */ -class CreateDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The data table being created. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table = null; - /** - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table_id = ''; - - /** - * @param string $parent Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. The data table being created. - * @param string $dataTableId Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * @return \Google\Cloud\Chronicle\V1\CreateDataTableRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTable $dataTable, string $dataTableId): self - { - return (new self()) - ->setParent($parent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type \Google\Cloud\Chronicle\V1\DataTable $data_table - * Required. The data table being created. - * @type string $data_table_id - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The data table being created. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTable|null - */ - public function getDataTable() - { - return $this->data_table; - } - - public function hasDataTable() - { - return isset($this->data_table); - } - - public function clearDataTable() - { - unset($this->data_table); - } - - /** - * Required. The data table being created. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTable $var - * @return $this - */ - public function setDataTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); - $this->data_table = $var; - - return $this; - } - - /** - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataTableId() - { - return $this->data_table_id; - } - - /** - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataTableId($var) - { - GPBUtil::checkString($var, True); - $this->data_table_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php deleted file mode 100644 index 61d1e625e79e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.CreateDataTableRowRequest - */ -class CreateDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The data table row to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table_row = null; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. The data table row to create. - * - * @return \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow): self - { - return (new self()) - ->setParent($parent) - ->setDataTableRow($dataTableRow); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row - * Required. The data table row to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The data table row to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTableRow|null - */ - public function getDataTableRow() - { - return $this->data_table_row; - } - - public function hasDataTableRow() - { - return isset($this->data_table_row); - } - - public function clearDataTableRow() - { - unset($this->data_table_row); - } - - /** - * Required. The data table row to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTableRow $var - * @return $this - */ - public function setDataTableRow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_row = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php deleted file mode 100644 index dabeb7c2fc4b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.chronicle.v1.CreateReferenceListRequest - */ -class CreateReferenceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The reference list to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list = null; - /** - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list_id = ''; - - /** - * @param string $parent Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to create. - * @param string $referenceListId Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * @return \Google\Cloud\Chronicle\V1\CreateReferenceListRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\ReferenceList $referenceList, string $referenceListId): self - { - return (new self()) - ->setParent($parent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list - * Required. The reference list to create. - * @type string $reference_list_id - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The reference list to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\ReferenceList|null - */ - public function getReferenceList() - { - return $this->reference_list; - } - - public function hasReferenceList() - { - return isset($this->reference_list); - } - - public function clearReferenceList() - { - unset($this->reference_list); - } - - /** - * Required. The reference list to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceList $var - * @return $this - */ - public function setReferenceList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); - $this->reference_list = $var; - - return $this; - } - - /** - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getReferenceListId() - { - return $this->reference_list_id; - } - - /** - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setReferenceListId($var) - { - GPBUtil::checkString($var, True); - $this->reference_list_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php deleted file mode 100644 index 94af572d344c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.CreateRetrohuntRequest - */ -class CreateRetrohuntRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The retrohunt to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $retrohunt = null; - - /** - * @param string $parent Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt Required. The retrohunt to create. - * - * @return \Google\Cloud\Chronicle\V1\CreateRetrohuntRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt): self - { - return (new self()) - ->setParent($parent) - ->setRetrohunt($retrohunt); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt - * Required. The retrohunt to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The retrohunt to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Retrohunt|null - */ - public function getRetrohunt() - { - return $this->retrohunt; - } - - public function hasRetrohunt() - { - return isset($this->retrohunt); - } - - public function clearRetrohunt() - { - unset($this->retrohunt); - } - - /** - * Required. The retrohunt to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Retrohunt $var - * @return $this - */ - public function setRetrohunt($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Retrohunt::class); - $this->retrohunt = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php deleted file mode 100644 index 883ebb114ef8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.CreateRuleRequest - */ -class CreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The rule to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rule = null; - - /** - * @param string $parent Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to create. - * - * @return \Google\Cloud\Chronicle\V1\CreateRuleRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\Rule $rule): self - { - return (new self()) - ->setParent($parent) - ->setRule($rule); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\Rule $rule - * Required. The rule to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The rule to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Rule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * Required. The rule to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Rule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rule = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php deleted file mode 100644 index 8909973322b9..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.chronicle.v1.CreateWatchlistRequest - */ -class CreateWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $watchlist_id = ''; - /** - * Required. The watchlist to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $watchlist = null; - - /** - * @param string $parent Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to create. - * @param string $watchlistId Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * @return \Google\Cloud\Chronicle\V1\CreateWatchlistRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\Watchlist $watchlist, string $watchlistId): self - { - return (new self()) - ->setParent($parent) - ->setWatchlist($watchlist) - ->setWatchlistId($watchlistId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type string $watchlist_id - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist - * Required. The watchlist to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getWatchlistId() - { - return $this->watchlist_id; - } - - /** - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setWatchlistId($var) - { - GPBUtil::checkString($var, True); - $this->watchlist_id = $var; - - return $this; - } - - /** - * Required. The watchlist to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Watchlist|null - */ - public function getWatchlist() - { - return $this->watchlist; - } - - public function hasWatchlist() - { - return isset($this->watchlist); - } - - public function clearWatchlist() - { - unset($this->watchlist); - } - - /** - * Required. The watchlist to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Watchlist $var - * @return $this - */ - public function setWatchlist($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); - $this->watchlist = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php deleted file mode 100644 index 9eb65ff6b99b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php +++ /dev/null @@ -1,337 +0,0 @@ -google.cloud.chronicle.v1.DataAccessLabel - */ -class DataAccessLabel extends \Google\Protobuf\Internal\Message -{ - /** - * The unique resource name of the data access label. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. The short name displayed for the label as it appears on event - * data. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The time at which the data access label was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the data access label was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The user who created the data access label. - * - * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $author = ''; - /** - * Output only. The user who last updated the data access label. - * - * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_editor = ''; - /** - * Optional. A description of the data access label for a human reader. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - protected $definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $udm_query - * A UDM query over event data. - * @type string $name - * The unique resource name of the data access label. - * @type string $display_name - * Output only. The short name displayed for the label as it appears on event - * data. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the data access label was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the data access label was last updated. - * @type string $author - * Output only. The user who created the data access label. - * @type string $last_editor - * Output only. The user who last updated the data access label. - * @type string $description - * Optional. A description of the data access label for a human reader. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * A UDM query over event data. - * - * Generated from protobuf field string udm_query = 3; - * @return string - */ - public function getUdmQuery() - { - return $this->readOneof(3); - } - - public function hasUdmQuery() - { - return $this->hasOneof(3); - } - - /** - * A UDM query over event data. - * - * Generated from protobuf field string udm_query = 3; - * @param string $var - * @return $this - */ - public function setUdmQuery($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The unique resource name of the data access label. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique resource name of the data access label. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The short name displayed for the label as it appears on event - * data. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The short name displayed for the label as it appears on event - * data. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The time at which the data access label was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time at which the data access label was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time at which the data access label was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time at which the data access label was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The user who created the data access label. - * - * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAuthor() - { - return $this->author; - } - - /** - * Output only. The user who created the data access label. - * - * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkString($var, True); - $this->author = $var; - - return $this; - } - - /** - * Output only. The user who last updated the data access label. - * - * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLastEditor() - { - return $this->last_editor; - } - - /** - * Output only. The user who last updated the data access label. - * - * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLastEditor($var) - { - GPBUtil::checkString($var, True); - $this->last_editor = $var; - - return $this; - } - - /** - * Optional. A description of the data access label for a human reader. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the data access label for a human reader. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * @return string - */ - public function getDefinition() - { - return $this->whichOneof("definition"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php deleted file mode 100644 index 9f32f7c3f294..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.chronicle.v1.DataAccessLabelReference - */ -class DataAccessLabelReference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - protected $label; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_access_label - * The name of the data access label. - * @type string $log_type - * The name of the log type. - * @type string $asset_namespace - * The asset namespace configured in the forwarder - * of the customer's events. - * @type \Google\Cloud\Chronicle\V1\IngestionLabel $ingestion_label - * The ingestion label configured in the forwarder of the customer's events. - * @type string $display_name - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * The name of the data access label. - * - * Generated from protobuf field string data_access_label = 1; - * @return string - */ - public function getDataAccessLabel() - { - return $this->readOneof(1); - } - - public function hasDataAccessLabel() - { - return $this->hasOneof(1); - } - - /** - * The name of the data access label. - * - * Generated from protobuf field string data_access_label = 1; - * @param string $var - * @return $this - */ - public function setDataAccessLabel($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The name of the log type. - * - * Generated from protobuf field string log_type = 2; - * @return string - */ - public function getLogType() - { - return $this->readOneof(2); - } - - public function hasLogType() - { - return $this->hasOneof(2); - } - - /** - * The name of the log type. - * - * Generated from protobuf field string log_type = 2; - * @param string $var - * @return $this - */ - public function setLogType($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The asset namespace configured in the forwarder - * of the customer's events. - * - * Generated from protobuf field string asset_namespace = 3; - * @return string - */ - public function getAssetNamespace() - { - return $this->readOneof(3); - } - - public function hasAssetNamespace() - { - return $this->hasOneof(3); - } - - /** - * The asset namespace configured in the forwarder - * of the customer's events. - * - * Generated from protobuf field string asset_namespace = 3; - * @param string $var - * @return $this - */ - public function setAssetNamespace($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The ingestion label configured in the forwarder of the customer's events. - * - * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; - * @return \Google\Cloud\Chronicle\V1\IngestionLabel|null - */ - public function getIngestionLabel() - { - return $this->readOneof(4); - } - - public function hasIngestionLabel() - { - return $this->hasOneof(4); - } - - /** - * The ingestion label configured in the forwarder of the customer's events. - * - * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; - * @param \Google\Cloud\Chronicle\V1\IngestionLabel $var - * @return $this - */ - public function setIngestionLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\IngestionLabel::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getLabel() - { - return $this->whichOneof("label"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php deleted file mode 100644 index 687d809ead24..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php +++ /dev/null @@ -1,470 +0,0 @@ -google.cloud.chronicle.v1.DataAccessScope - */ -class DataAccessScope extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $allowed_data_access_labels; - /** - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $denied_data_access_labels; - /** - * Output only. The name to be used for display to customers of the data - * access scope. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The time at which the data access scope was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the data access scope was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The user who created the data access scope. - * - * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $author = ''; - /** - * Output only. The user who last updated the data access scope. - * - * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_editor = ''; - /** - * Optional. A description of the data access scope for a human reader. - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * - * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_all = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $allowed_data_access_labels - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $denied_data_access_labels - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * @type string $display_name - * Output only. The name to be used for display to customers of the data - * access scope. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the data access scope was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the data access scope was last updated. - * @type string $author - * Output only. The user who created the data access scope. - * @type string $last_editor - * Output only. The user who last updated the data access scope. - * @type string $description - * Optional. A description of the data access scope for a human reader. - * @type bool $allow_all - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> - */ - public function getAllowedDataAccessLabels() - { - return $this->allowed_data_access_labels; - } - - /** - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var - * @return $this - */ - public function setAllowedDataAccessLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); - $this->allowed_data_access_labels = $arr; - - return $this; - } - - /** - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> - */ - public function getDeniedDataAccessLabels() - { - return $this->denied_data_access_labels; - } - - /** - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var - * @return $this - */ - public function setDeniedDataAccessLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); - $this->denied_data_access_labels = $arr; - - return $this; - } - - /** - * Output only. The name to be used for display to customers of the data - * access scope. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The name to be used for display to customers of the data - * access scope. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The time at which the data access scope was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time at which the data access scope was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time at which the data access scope was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time at which the data access scope was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The user who created the data access scope. - * - * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAuthor() - { - return $this->author; - } - - /** - * Output only. The user who created the data access scope. - * - * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkString($var, True); - $this->author = $var; - - return $this; - } - - /** - * Output only. The user who last updated the data access scope. - * - * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLastEditor() - { - return $this->last_editor; - } - - /** - * Output only. The user who last updated the data access scope. - * - * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLastEditor($var) - { - GPBUtil::checkString($var, True); - $this->last_editor = $var; - - return $this; - } - - /** - * Optional. A description of the data access scope for a human reader. - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the data access scope for a human reader. - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * - * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowAll() - { - return $this->allow_all; - } - - /** - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * - * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowAll($var) - { - GPBUtil::checkBool($var); - $this->allow_all = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php deleted file mode 100644 index f2024c29a822..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php +++ /dev/null @@ -1,585 +0,0 @@ -google.cloud.chronicle.v1.DataTable - */ -class DataTable extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The unique display name of the data table. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Required. A user-provided description of the data table. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Output only. Table create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Table update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Immutable. Details of all the columns in the table - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $column_info; - /** - * Output only. Data table unique id - * - * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_table_uuid = ''; - /** - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * - * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $rules; - /** - * Output only. The count of rules using the data table. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule_associations_count = 0; - /** - * Optional. User-provided TTL of the data table. - * - * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $row_time_to_live = ''; - /** - * Output only. The count of rows in the data table. - * - * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $approximate_row_count = 0; - /** - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $scope_info = null; - /** - * Output only. Source of the data table update. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_source = 0; - /** - * Output only. Last update time of the TTL of the data table. - * - * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $row_time_to_live_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * @type string $display_name - * Output only. The unique display name of the data table. - * @type string $description - * Required. A user-provided description of the data table. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Table create time - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Table update time - * @type \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $column_info - * Immutable. Details of all the columns in the table - * @type string $data_table_uuid - * Output only. Data table unique id - * @type string[] $rules - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * @type int $rule_associations_count - * Output only. The count of rules using the data table. - * @type string $row_time_to_live - * Optional. User-provided TTL of the data table. - * @type int|string $approximate_row_count - * Output only. The count of rows in the data table. - * @type \Google\Cloud\Chronicle\V1\DataTableScopeInfo $scope_info - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * @type int $update_source - * Output only. Source of the data table update. - * @type \Google\Protobuf\Timestamp $row_time_to_live_update_time - * Output only. Last update time of the TTL of the data table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The unique display name of the data table. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The unique display name of the data table. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. A user-provided description of the data table. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. A user-provided description of the data table. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Table create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Table create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Table update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Table update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Immutable. Details of all the columns in the table - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableColumnInfo> - */ - public function getColumnInfo() - { - return $this->column_info; - } - - /** - * Immutable. Details of all the columns in the table - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $var - * @return $this - */ - public function setColumnInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableColumnInfo::class); - $this->column_info = $arr; - - return $this; - } - - /** - * Output only. Data table unique id - * - * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataTableUuid() - { - return $this->data_table_uuid; - } - - /** - * Output only. Data table unique id - * - * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataTableUuid($var) - { - GPBUtil::checkString($var, True); - $this->data_table_uuid = $var; - - return $this; - } - - /** - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * - * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * - * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->rules = $arr; - - return $this; - } - - /** - * Output only. The count of rules using the data table. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRuleAssociationsCount() - { - return $this->rule_associations_count; - } - - /** - * Output only. The count of rules using the data table. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRuleAssociationsCount($var) - { - GPBUtil::checkInt32($var); - $this->rule_associations_count = $var; - - return $this; - } - - /** - * Optional. User-provided TTL of the data table. - * - * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRowTimeToLive() - { - return $this->row_time_to_live; - } - - /** - * Optional. User-provided TTL of the data table. - * - * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRowTimeToLive($var) - { - GPBUtil::checkString($var, True); - $this->row_time_to_live = $var; - - return $this; - } - - /** - * Output only. The count of rows in the data table. - * - * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getApproximateRowCount() - { - return $this->approximate_row_count; - } - - /** - * Output only. The count of rows in the data table. - * - * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setApproximateRowCount($var) - { - GPBUtil::checkInt64($var); - $this->approximate_row_count = $var; - - return $this; - } - - /** - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DataTableScopeInfo|null - */ - public function getScopeInfo() - { - return $this->scope_info; - } - - public function hasScopeInfo() - { - return isset($this->scope_info); - } - - public function clearScopeInfo() - { - unset($this->scope_info); - } - - /** - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DataTableScopeInfo $var - * @return $this - */ - public function setScopeInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableScopeInfo::class); - $this->scope_info = $var; - - return $this; - } - - /** - * Output only. Source of the data table update. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getUpdateSource() - { - return $this->update_source; - } - - /** - * Output only. Source of the data table update. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setUpdateSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableUpdateSource::class); - $this->update_source = $var; - - return $this; - } - - /** - * Output only. Last update time of the TTL of the data table. - * - * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRowTimeToLiveUpdateTime() - { - return $this->row_time_to_live_update_time; - } - - public function hasRowTimeToLiveUpdateTime() - { - return isset($this->row_time_to_live_update_time); - } - - public function clearRowTimeToLiveUpdateTime() - { - unset($this->row_time_to_live_update_time); - } - - /** - * Output only. Last update time of the TTL of the data table. - * - * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRowTimeToLiveUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->row_time_to_live_update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php deleted file mode 100644 index e8d196b47d9e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php +++ /dev/null @@ -1,274 +0,0 @@ -google.cloud.chronicle.v1.DataTableColumnInfo - */ -class DataTableColumnInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Column Index. 0,1,2... - * - * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $column_index = 0; - /** - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $original_column = ''; - /** - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * - * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key_column = false; - /** - * Optional. Whether the column is a repeated values column. - * - * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $repeated_values = false; - protected $path_or_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $mapped_column_path - * Entity proto field path that the column is mapped to - * @type int $column_type - * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX - * @type int $column_index - * Required. Column Index. 0,1,2... - * @type string $original_column - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * @type bool $key_column - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * @type bool $repeated_values - * Optional. Whether the column is a repeated values column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Entity proto field path that the column is mapped to - * - * Generated from protobuf field string mapped_column_path = 3; - * @return string - */ - public function getMappedColumnPath() - { - return $this->readOneof(3); - } - - public function hasMappedColumnPath() - { - return $this->hasOneof(3); - } - - /** - * Entity proto field path that the column is mapped to - * - * Generated from protobuf field string mapped_column_path = 3; - * @param string $var - * @return $this - */ - public function setMappedColumnPath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; - * @return int - */ - public function getColumnType() - { - return $this->readOneof(4); - } - - public function hasColumnType() - { - return $this->hasOneof(4); - } - - /** - * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; - * @param int $var - * @return $this - */ - public function setColumnType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableColumnInfo\DataTableColumnType::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. Column Index. 0,1,2... - * - * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getColumnIndex() - { - return $this->column_index; - } - - /** - * Required. Column Index. 0,1,2... - * - * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setColumnIndex($var) - { - GPBUtil::checkInt32($var); - $this->column_index = $var; - - return $this; - } - - /** - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getOriginalColumn() - { - return $this->original_column; - } - - /** - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setOriginalColumn($var) - { - GPBUtil::checkString($var, True); - $this->original_column = $var; - - return $this; - } - - /** - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * - * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getKeyColumn() - { - return $this->key_column; - } - - /** - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * - * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setKeyColumn($var) - { - GPBUtil::checkBool($var); - $this->key_column = $var; - - return $this; - } - - /** - * Optional. Whether the column is a repeated values column. - * - * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getRepeatedValues() - { - return $this->repeated_values; - } - - /** - * Optional. Whether the column is a repeated values column. - * - * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setRepeatedValues($var) - { - GPBUtil::checkBool($var); - $this->repeated_values = $var; - - return $this; - } - - /** - * @return string - */ - public function getPathOrType() - { - return $this->whichOneof("path_or_type"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php deleted file mode 100644 index 66ce99ee22da..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType - */ -class DataTableColumnType -{ - /** - * The default Data Table Column Type. - * - * Generated from protobuf enum DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; - */ - const DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; - /** - * Denotes the type of the column as STRING. - * - * Generated from protobuf enum STRING = 1; - */ - const STRING = 1; - /** - * Denotes the type of the column as REGEX. - * - * Generated from protobuf enum REGEX = 2; - */ - const REGEX = 2; - /** - * Denotes the type of the column as CIDR. - * - * Generated from protobuf enum CIDR = 3; - */ - const CIDR = 3; - /** - * Denotes the type of the column as NUMBER (includes int and float). - * - * Generated from protobuf enum NUMBER = 4; - */ - const NUMBER = 4; - - private static $valueToName = [ - self::DATA_TABLE_COLUMN_TYPE_UNSPECIFIED => 'DATA_TABLE_COLUMN_TYPE_UNSPECIFIED', - self::STRING => 'STRING', - self::REGEX => 'REGEX', - self::CIDR => 'CIDR', - self::NUMBER => 'NUMBER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php deleted file mode 100644 index 23120c0eb49b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.chronicle.v1.DataTableOperationErrors - */ -class DataTableOperationErrors extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The list of errors. - * Replaces the deprecated `errors` field. - * - * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; - */ - private $rpc_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * @type \Google\Rpc\Status[] $rpc_errors - * The list of errors. - * Replaces the deprecated `errors` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The list of errors. - * Replaces the deprecated `errors` field. - * - * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; - * @return RepeatedField<\Google\Rpc\Status> - */ - public function getRpcErrors() - { - return $this->rpc_errors; - } - - /** - * The list of errors. - * Replaces the deprecated `errors` field. - * - * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; - * @param \Google\Rpc\Status[] $var - * @return $this - */ - public function setRpcErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->rpc_errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php deleted file mode 100644 index 09f30b14ac0c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.chronicle.v1.DataTableRow - */ -class DataTableRow extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Output only. DataTableRow create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. DataTableRow update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-provided TTL of the data table row. - * - * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $row_time_to_live = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * @type string[] $values - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. DataTableRow create time - * @type \Google\Protobuf\Timestamp $update_time - * Output only. DataTableRow update time - * @type string $row_time_to_live - * Optional. User-provided TTL of the data table row. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Output only. DataTableRow create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. DataTableRow create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. DataTableRow update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. DataTableRow update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. User-provided TTL of the data table row. - * - * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRowTimeToLive() - { - return $this->row_time_to_live; - } - - /** - * Optional. User-provided TTL of the data table row. - * - * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRowTimeToLive($var) - { - GPBUtil::checkString($var, True); - $this->row_time_to_live = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php deleted file mode 100644 index 71088a6ffab9..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.chronicle.v1.DataTableScopeInfo - */ -class DataTableScopeInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * - * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $data_access_scopes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $data_access_scopes - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * - * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getDataAccessScopes() - { - return $this->data_access_scopes; - } - - /** - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * - * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setDataAccessScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_access_scopes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php deleted file mode 100644 index a2d2cbf75cc5..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.DataTableUpdateSource - */ -class DataTableUpdateSource -{ - /** - * The data table is updated by the user. - * - * Generated from protobuf enum DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; - */ - const DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; - /** - * The data table is updated by the user. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * The data table is updated by the rule. - * - * Generated from protobuf enum RULE = 2; - */ - const RULE = 2; - /** - * The data table is updated by the search. - * - * Generated from protobuf enum SEARCH = 3; - */ - const SEARCH = 3; - - private static $valueToName = [ - self::DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED => 'DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED', - self::USER => 'USER', - self::RULE => 'RULE', - self::SEARCH => 'SEARCH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php deleted file mode 100644 index 31005e449a5e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataAccessLabelRequest - */ -class DeleteDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessLabelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php deleted file mode 100644 index 5d5ef83446ba..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataAccessScopeRequest - */ -class DeleteDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessScopeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php deleted file mode 100644 index 5b6d521de2f3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataTableRequest - */ -class DeleteDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param bool $force Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRequest - * - * @experimental - */ - public static function build(string $name, bool $force): self - { - return (new self()) - ->setName($name) - ->setForce($force); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * @type bool $force - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php deleted file mode 100644 index 90e6718b303a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataTableRowRequest - */ -class DeleteDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRowRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php deleted file mode 100644 index 65679e334596..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.chronicle.v1.DeleteRuleRequest - */ -class DeleteRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type bool $force - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php deleted file mode 100644 index d713acb98186..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.DeleteWatchlistRequest - */ -class DeleteWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. - * @param bool $force Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * @return \Google\Cloud\Chronicle\V1\DeleteWatchlistRequest - * - * @experimental - */ - public static function build(string $name, bool $force): self - { - return (new self()) - ->setName($name) - ->setForce($force); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @type bool $force - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php deleted file mode 100644 index 74aead7733a7..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataAccessLabelRequest - */ -class GetDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataAccessLabelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php deleted file mode 100644 index 0ee76b341d49..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataAccessScopeRequest - */ -class GetDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataAccessScopeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php deleted file mode 100644 index b00e5d52ec7d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest - */ -class GetDataTableOperationErrorsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * Please see {@see DataTableServiceClient::dataTableOperationErrorsName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataTableOperationErrorsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php deleted file mode 100644 index ab2aac02a02c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataTableRequest - */ -class GetDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataTableRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php deleted file mode 100644 index 3c1918a3f2be..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataTableRowRequest - */ -class GetDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataTableRowRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php deleted file mode 100644 index f7f10e18fe26..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetInstanceRequest - */ -class GetInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * Please see {@see InstanceServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php deleted file mode 100644 index baf589cbd38c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.chronicle.v1.GetReferenceListRequest - */ -class GetReferenceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; - */ - protected $view = 0; - - /** - * @param string $name Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * Please see {@see ReferenceListServiceClient::referenceListName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetReferenceListRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * @type int $view - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php deleted file mode 100644 index 2d46a2a1ae1f..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetRetrohuntRequest - */ -class GetRetrohuntRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * Please see {@see RuleServiceClient::retrohuntName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetRetrohuntRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php deleted file mode 100644 index c5defab4535b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetRuleDeploymentRequest - */ -class GetRuleDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * Please see {@see RuleServiceClient::ruleDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetRuleDeploymentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php deleted file mode 100644 index d43e6dff3705..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.chronicle.v1.GetRuleRequest - */ -class GetRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; - */ - protected $view = 0; - - /** - * @param string $name Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type int $view - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php deleted file mode 100644 index 056e4ed0fcf8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.chronicle.v1.GetWatchlistRequest - */ -class GetWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetWatchlistRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php deleted file mode 100644 index de4fea8fbc81..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.chronicle.v1.IngestionLabel - */ -class IngestionLabel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The key of the ingestion label. Always required. - * - * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ingestion_label_key = ''; - /** - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * - * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ingestion_label_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ingestion_label_key - * Required. The key of the ingestion label. Always required. - * @type string $ingestion_label_value - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The key of the ingestion label. Always required. - * - * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getIngestionLabelKey() - { - return $this->ingestion_label_key; - } - - /** - * Required. The key of the ingestion label. Always required. - * - * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setIngestionLabelKey($var) - { - GPBUtil::checkString($var, True); - $this->ingestion_label_key = $var; - - return $this; - } - - /** - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * - * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getIngestionLabelValue() - { - return $this->ingestion_label_value; - } - - /** - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * - * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setIngestionLabelValue($var) - { - GPBUtil::checkString($var, True); - $this->ingestion_label_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php deleted file mode 100644 index a8afa8fd340e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.InputsUsed - */ -class InputsUsed extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether the rule queries UDM events. - * - * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $uses_udm = false; - /** - * Optional. Whether the rule queries entity events. - * - * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $uses_entity = false; - /** - * Optional. Whether the rule queries detections. - * - * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $uses_detection = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $uses_udm - * Optional. Whether the rule queries UDM events. - * @type bool $uses_entity - * Optional. Whether the rule queries entity events. - * @type bool $uses_detection - * Optional. Whether the rule queries detections. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether the rule queries UDM events. - * - * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUsesUdm() - { - return $this->uses_udm; - } - - /** - * Optional. Whether the rule queries UDM events. - * - * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUsesUdm($var) - { - GPBUtil::checkBool($var); - $this->uses_udm = $var; - - return $this; - } - - /** - * Optional. Whether the rule queries entity events. - * - * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUsesEntity() - { - return $this->uses_entity; - } - - /** - * Optional. Whether the rule queries entity events. - * - * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUsesEntity($var) - { - GPBUtil::checkBool($var); - $this->uses_entity = $var; - - return $this; - } - - /** - * Optional. Whether the rule queries detections. - * - * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUsesDetection() - { - return $this->uses_detection; - } - - /** - * Optional. Whether the rule queries detections. - * - * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUsesDetection($var) - { - GPBUtil::checkBool($var); - $this->uses_detection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php deleted file mode 100644 index 4f364828a412..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.chronicle.v1.Instance - */ -class Instance extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php deleted file mode 100644 index 40f14437c42a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessLabelsRequest - */ -class ListDataAccessLabelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataAccessLabelsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php deleted file mode 100644 index 0fb2a491bf5d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessLabelsResponse - */ -class ListDataAccessLabelsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data access labels. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; - */ - private $data_access_labels; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessLabel[] $data_access_labels - * List of data access labels. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * List of data access labels. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabel> - */ - public function getDataAccessLabels() - { - return $this->data_access_labels; - } - - /** - * List of data access labels. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel[] $var - * @return $this - */ - public function setDataAccessLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); - $this->data_access_labels = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php deleted file mode 100644 index 54813ad9638e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessScopesRequest - */ -class ListDataAccessScopesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataAccessScopesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php deleted file mode 100644 index fd1d5cd91bc8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessScopesResponse - */ -class ListDataAccessScopesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data access scopes. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; - */ - private $data_access_scopes; - /** - * Whether or not global scope is granted to the user. - * - * Generated from protobuf field optional bool global_data_access_scope_granted = 3; - */ - protected $global_data_access_scope_granted = null; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessScope[] $data_access_scopes - * List of data access scopes. - * @type bool $global_data_access_scope_granted - * Whether or not global scope is granted to the user. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * List of data access scopes. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessScope> - */ - public function getDataAccessScopes() - { - return $this->data_access_scopes; - } - - /** - * List of data access scopes. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; - * @param \Google\Cloud\Chronicle\V1\DataAccessScope[] $var - * @return $this - */ - public function setDataAccessScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessScope::class); - $this->data_access_scopes = $arr; - - return $this; - } - - /** - * Whether or not global scope is granted to the user. - * - * Generated from protobuf field optional bool global_data_access_scope_granted = 3; - * @return bool - */ - public function getGlobalDataAccessScopeGranted() - { - return isset($this->global_data_access_scope_granted) ? $this->global_data_access_scope_granted : false; - } - - public function hasGlobalDataAccessScopeGranted() - { - return isset($this->global_data_access_scope_granted); - } - - public function clearGlobalDataAccessScopeGranted() - { - unset($this->global_data_access_scope_granted); - } - - /** - * Whether or not global scope is granted to the user. - * - * Generated from protobuf field optional bool global_data_access_scope_granted = 3; - * @param bool $var - * @return $this - */ - public function setGlobalDataAccessScopeGranted($var) - { - GPBUtil::checkBool($var); - $this->global_data_access_scope_granted = $var; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php deleted file mode 100644 index 3289a1b5e1cc..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.chronicle.v1.ListDataTableRowsRequest - */ -class ListDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDataTableRows` call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * @type int $page_size - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataTableRows` call. - * @type string $order_by - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * @type string $filter - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDataTableRows` call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDataTableRows` call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php deleted file mode 100644 index 7cde914b2a14..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListDataTableRowsResponse - */ -class ListDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of the data table rows returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * The list of the data table rows returned. - * @type string $next_page_token - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * The list of the data table rows returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * The list of the data table rows returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php deleted file mode 100644 index bb06c76adbf4..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.chronicle.v1.ListDataTablesRequest - */ -class ListDataTablesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataTablesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type int $page_size - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * @type string $order_by - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php deleted file mode 100644 index 51e7bfc065c6..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListDataTablesResponse - */ -class ListDataTablesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of the data tables returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; - */ - private $data_tables; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTable[] $data_tables - * The list of the data tables returned. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * The list of the data tables returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTable> - */ - public function getDataTables() - { - return $this->data_tables; - } - - /** - * The list of the data tables returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; - * @param \Google\Cloud\Chronicle\V1\DataTable[] $var - * @return $this - */ - public function setDataTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTable::class); - $this->data_tables = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php deleted file mode 100644 index f06a8a98b070..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.chronicle.v1.ListReferenceListsRequest - */ -class ListReferenceListsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; - */ - protected $view = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListReferenceListsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * @type int $view - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php deleted file mode 100644 index 9c7b02ac252a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.chronicle.v1.ListReferenceListsResponse - */ -class ListReferenceListsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The reference lists. - * Ordered in ascending alphabetical order by name. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; - */ - private $reference_lists; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ReferenceList[] $reference_lists - * The reference lists. - * Ordered in ascending alphabetical order by name. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * The reference lists. - * Ordered in ascending alphabetical order by name. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceList> - */ - public function getReferenceLists() - { - return $this->reference_lists; - } - - /** - * The reference lists. - * Ordered in ascending alphabetical order by name. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; - * @param \Google\Cloud\Chronicle\V1\ReferenceList[] $var - * @return $this - */ - public function setReferenceLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceList::class); - $this->reference_lists = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php deleted file mode 100644 index 0fb98bf934cf..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.cloud.chronicle.v1.ListRetrohuntsRequest - */ -class ListRetrohuntsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRetrohuntsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type int $page_size - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * @type string $filter - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php deleted file mode 100644 index c4dc57d829af..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRetrohuntsResponse - */ -class ListRetrohuntsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The retrohunts from the specified rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; - */ - private $retrohunts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Retrohunt[] $retrohunts - * The retrohunts from the specified rule. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The retrohunts from the specified rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Retrohunt> - */ - public function getRetrohunts() - { - return $this->retrohunts; - } - - /** - * The retrohunts from the specified rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; - * @param \Google\Cloud\Chronicle\V1\Retrohunt[] $var - * @return $this - */ - public function setRetrohunts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Retrohunt::class); - $this->retrohunts = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php deleted file mode 100644 index a9135574e7c7..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.cloud.chronicle.v1.ListRuleDeploymentsRequest - */ -class ListRuleDeploymentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRuleDeploymentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * @type int $page_size - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * @type string $filter - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php deleted file mode 100644 index b3057a270969..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRuleDeploymentsResponse - */ -class ListRuleDeploymentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The rule deployments from all rules. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; - */ - private $rule_deployments; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\RuleDeployment[] $rule_deployments - * The rule deployments from all rules. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The rule deployments from all rules. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\RuleDeployment> - */ - public function getRuleDeployments() - { - return $this->rule_deployments; - } - - /** - * The rule deployments from all rules. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; - * @param \Google\Cloud\Chronicle\V1\RuleDeployment[] $var - * @return $this - */ - public function setRuleDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\RuleDeployment::class); - $this->rule_deployments = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php deleted file mode 100644 index a22efe8c8aff..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.chronicle.v1.ListRuleRevisionsRequest - */ -class ListRuleRevisionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - */ - protected $view = 0; - - /** - * @param string $name Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRuleRevisionsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type int $page_size - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * @type int $view - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php deleted file mode 100644 index 9b6fb1ea283d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRuleRevisionsResponse - */ -class ListRuleRevisionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The revisions of the rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - */ - private $rules; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Rule[] $rules - * The revisions of the rule. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The revisions of the rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * The revisions of the rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @param \Google\Cloud\Chronicle\V1\Rule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php deleted file mode 100644 index 9a5c5ce2394c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php +++ /dev/null @@ -1,263 +0,0 @@ -google.cloud.chronicle.v1.ListRulesRequest - */ -class ListRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - */ - protected $view = 0; - /** - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRulesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * @type int $view - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * @type string $filter - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); - $this->view = $var; - - return $this; - } - - /** - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php deleted file mode 100644 index acf552de7aac..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRulesResponse - */ -class ListRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The rules from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - */ - private $rules; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Rule[] $rules - * The rules from the specified instance. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The rules from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * The rules from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @param \Google\Cloud\Chronicle\V1\Rule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php deleted file mode 100644 index 0fef99adc24d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php +++ /dev/null @@ -1,232 +0,0 @@ -google.cloud.chronicle.v1.ListWatchlistsRequest - */ -class ListWatchlistsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListWatchlistsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * @type string $page_token - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * @type string $filter - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php deleted file mode 100644 index 7c89c05776a3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListWatchlistsResponse - */ -class ListWatchlistsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The watchlists from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $watchlists; - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Watchlist[] $watchlists - * Optional. The watchlists from the specified instance. - * @type string $next_page_token - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The watchlists from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Watchlist> - */ - public function getWatchlists() - { - return $this->watchlists; - } - - /** - * Optional. The watchlists from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\Watchlist[] $var - * @return $this - */ - public function setWatchlists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Watchlist::class); - $this->watchlists = $arr; - - return $this; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php deleted file mode 100644 index fa290dd6040a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php +++ /dev/null @@ -1,409 +0,0 @@ -google.cloud.chronicle.v1.ReferenceList - */ -class ReferenceList extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The unique display name of the reference list. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The timestamp when the reference list was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_create_time = null; - /** - * Required. A user-provided description of the reference list. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private $entries; - /** - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $rules; - /** - * Required. The syntax type indicating how list entries should be validated. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $syntax_type = 0; - /** - * Output only. The count of self-authored rules using the reference list. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule_associations_count = 0; - /** - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; - */ - protected $scope_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * @type string $display_name - * Output only. The unique display name of the reference list. - * @type \Google\Protobuf\Timestamp $revision_create_time - * Output only. The timestamp when the reference list was last updated. - * @type string $description - * Required. A user-provided description of the reference list. - * @type \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $entries - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * @type string[] $rules - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * @type int $syntax_type - * Required. The syntax type indicating how list entries should be validated. - * @type int $rule_associations_count - * Output only. The count of self-authored rules using the reference list. - * @type \Google\Cloud\Chronicle\V1\ScopeInfo $scope_info - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The unique display name of the reference list. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The unique display name of the reference list. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The timestamp when the reference list was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionCreateTime() - { - return $this->revision_create_time; - } - - public function hasRevisionCreateTime() - { - return isset($this->revision_create_time); - } - - public function clearRevisionCreateTime() - { - unset($this->revision_create_time); - } - - /** - * Output only. The timestamp when the reference list was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_create_time = $var; - - return $this; - } - - /** - * Required. A user-provided description of the reference list. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. A user-provided description of the reference list. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceListEntry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceListEntry::class); - $this->entries = $arr; - - return $this; - } - - /** - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->rules = $arr; - - return $this; - } - - /** - * Required. The syntax type indicating how list entries should be validated. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSyntaxType() - { - return $this->syntax_type; - } - - /** - * Required. The syntax type indicating how list entries should be validated. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSyntaxType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListSyntaxType::class); - $this->syntax_type = $var; - - return $this; - } - - /** - * Output only. The count of self-authored rules using the reference list. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRuleAssociationsCount() - { - return $this->rule_associations_count; - } - - /** - * Output only. The count of self-authored rules using the reference list. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRuleAssociationsCount($var) - { - GPBUtil::checkInt32($var); - $this->rule_associations_count = $var; - - return $this; - } - - /** - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; - * @return \Google\Cloud\Chronicle\V1\ScopeInfo|null - */ - public function getScopeInfo() - { - return $this->scope_info; - } - - public function hasScopeInfo() - { - return isset($this->scope_info); - } - - public function clearScopeInfo() - { - unset($this->scope_info); - } - - /** - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; - * @param \Google\Cloud\Chronicle\V1\ScopeInfo $var - * @return $this - */ - public function setScopeInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ScopeInfo::class); - $this->scope_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php deleted file mode 100644 index 09d9360018ce..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListEntry - */ -class ReferenceListEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The value of the entry. Maximum length is 512 characters. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Required. The value of the entry. Maximum length is 512 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The value of the entry. Maximum length is 512 characters. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The value of the entry. Maximum length is 512 characters. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php deleted file mode 100644 index 56675595cb8a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListScope - */ -class ReferenceListScope extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * - * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $scope_names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $scope_names - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * - * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getScopeNames() - { - return $this->scope_names; - } - - /** - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * - * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setScopeNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->scope_names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php deleted file mode 100644 index 1cc19918caec..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListSyntaxType - */ -class ReferenceListSyntaxType -{ - /** - * Defaults to REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; - */ - const REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; - /** - * List contains plain text patterns. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; - */ - const REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; - /** - * List contains only Regular Expression patterns. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; - */ - const REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; - /** - * List contains only CIDR patterns. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; - */ - const REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; - - private static $valueToName = [ - self::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED => 'REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED', - self::REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING => 'REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING', - self::REFERENCE_LIST_SYNTAX_TYPE_REGEX => 'REFERENCE_LIST_SYNTAX_TYPE_REGEX', - self::REFERENCE_LIST_SYNTAX_TYPE_CIDR => 'REFERENCE_LIST_SYNTAX_TYPE_CIDR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php deleted file mode 100644 index 78d29ab7d594..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListView - */ -class ReferenceListView -{ - /** - * The default / unset value. - * The API will default to the BASIC view for ListReferenceLists. - * The API will default to the FULL view for methods that return a single - * ReferenceList resource. - * - * Generated from protobuf enum REFERENCE_LIST_VIEW_UNSPECIFIED = 0; - */ - const REFERENCE_LIST_VIEW_UNSPECIFIED = 0; - /** - * Include metadata about the ReferenceList. - * This is the default view for ListReferenceLists. - * - * Generated from protobuf enum REFERENCE_LIST_VIEW_BASIC = 1; - */ - const REFERENCE_LIST_VIEW_BASIC = 1; - /** - * Include all details about the ReferenceList: metadata, content lines, - * associated rule counts. This is the default view for GetReferenceList. - * - * Generated from protobuf enum REFERENCE_LIST_VIEW_FULL = 2; - */ - const REFERENCE_LIST_VIEW_FULL = 2; - - private static $valueToName = [ - self::REFERENCE_LIST_VIEW_UNSPECIFIED => 'REFERENCE_LIST_VIEW_UNSPECIFIED', - self::REFERENCE_LIST_VIEW_BASIC => 'REFERENCE_LIST_VIEW_BASIC', - self::REFERENCE_LIST_VIEW_FULL => 'REFERENCE_LIST_VIEW_FULL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php deleted file mode 100644 index 39703c9069fd..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.chronicle.v1.Retrohunt - */ -class Retrohunt extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The start and end time of the event time range this retrohunt - * processes. - * - * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $process_interval = null; - /** - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * - * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_interval = null; - /** - * Output only. The state of the retrohunt. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $progress_percentage = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * @type \Google\Type\Interval $process_interval - * Required. The start and end time of the event time range this retrohunt - * processes. - * @type \Google\Type\Interval $execution_interval - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * @type int $state - * Output only. The state of the retrohunt. - * @type float $progress_percentage - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The start and end time of the event time range this retrohunt - * processes. - * - * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Interval|null - */ - public function getProcessInterval() - { - return $this->process_interval; - } - - public function hasProcessInterval() - { - return isset($this->process_interval); - } - - public function clearProcessInterval() - { - unset($this->process_interval); - } - - /** - * Required. The start and end time of the event time range this retrohunt - * processes. - * - * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setProcessInterval($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->process_interval = $var; - - return $this; - } - - /** - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * - * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Type\Interval|null - */ - public function getExecutionInterval() - { - return $this->execution_interval; - } - - public function hasExecutionInterval() - { - return isset($this->execution_interval); - } - - public function clearExecutionInterval() - { - unset($this->execution_interval); - } - - /** - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * - * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setExecutionInterval($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->execution_interval = $var; - - return $this; - } - - /** - * Output only. The state of the retrohunt. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of the retrohunt. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Retrohunt\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getProgressPercentage() - { - return $this->progress_percentage; - } - - /** - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setProgressPercentage($var) - { - GPBUtil::checkFloat($var); - $this->progress_percentage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php deleted file mode 100644 index 0c54a8ff495c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.Retrohunt.State - */ -class State -{ - /** - * Unspecified or unknown retrohunt state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Running state. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * Done state. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - /** - * Cancelled state. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - /** - * Failed state. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - self::CANCELLED => 'CANCELLED', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php deleted file mode 100644 index 87deefb9bb2e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.chronicle.v1.RetrohuntMetadata - */ -class RetrohuntMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { - */ - protected $retrohunt = ''; - /** - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * - * Generated from protobuf field .google.type.Interval execution_interval = 2; - */ - protected $execution_interval = null; - /** - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 3; - */ - protected $progress_percentage = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $retrohunt - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * @type \Google\Type\Interval $execution_interval - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * @type float $progress_percentage - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getRetrohunt() - { - return $this->retrohunt; - } - - /** - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRetrohunt($var) - { - GPBUtil::checkString($var, True); - $this->retrohunt = $var; - - return $this; - } - - /** - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * - * Generated from protobuf field .google.type.Interval execution_interval = 2; - * @return \Google\Type\Interval|null - */ - public function getExecutionInterval() - { - return $this->execution_interval; - } - - public function hasExecutionInterval() - { - return isset($this->execution_interval); - } - - public function clearExecutionInterval() - { - unset($this->execution_interval); - } - - /** - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * - * Generated from protobuf field .google.type.Interval execution_interval = 2; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setExecutionInterval($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->execution_interval = $var; - - return $this; - } - - /** - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 3; - * @return float - */ - public function getProgressPercentage() - { - return $this->progress_percentage; - } - - /** - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 3; - * @param float $var - * @return $this - */ - public function setProgressPercentage($var) - { - GPBUtil::checkFloat($var); - $this->progress_percentage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php deleted file mode 100644 index d1fced9182be..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php +++ /dev/null @@ -1,810 +0,0 @@ -google.cloud.chronicle.v1.Rule - */ -class Rule extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_id = ''; - /** - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * The YARA-L content of the rule. - * Populated in FULL view. - * - * Generated from protobuf field string text = 4; - */ - protected $text = ''; - /** - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $author = ''; - /** - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $severity = null; - /** - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * - * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $metadata; - /** - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_create_time = null; - /** - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compilation_state = 0; - /** - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * - * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $reference_lists; - /** - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $allowed_run_frequencies; - /** - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string etag = 15; - */ - protected $etag = ''; - /** - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * - * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { - */ - protected $scope = ''; - /** - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $compilation_diagnostics; - /** - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * - * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $near_real_time_live_rule_eligible = false; - /** - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $inputs_used = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type string $revision_id - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * @type string $display_name - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * @type string $text - * The YARA-L content of the rule. - * Populated in FULL view. - * @type string $author - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * @type \Google\Cloud\Chronicle\V1\Severity $severity - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * @type \Google\Protobuf\Timestamp $revision_create_time - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * @type int $compilation_state - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * @type int $type - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * @type string[] $reference_lists - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * @type int[] $allowed_run_frequencies - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * @type string $etag - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * @type string $scope - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * @type \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $compilation_diagnostics - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * @type bool $near_real_time_live_rule_eligible - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * @type \Google\Cloud\Chronicle\V1\InputsUsed $inputs_used - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - - /** - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The YARA-L content of the rule. - * Populated in FULL view. - * - * Generated from protobuf field string text = 4; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The YARA-L content of the rule. - * Populated in FULL view. - * - * Generated from protobuf field string text = 4; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAuthor() - { - return $this->author; - } - - /** - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkString($var, True); - $this->author = $var; - - return $this; - } - - /** - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\Severity|null - */ - public function getSeverity() - { - return $this->severity; - } - - public function hasSeverity() - { - return isset($this->severity); - } - - public function clearSeverity() - { - unset($this->severity); - } - - /** - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\Severity $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * - * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * - * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionCreateTime() - { - return $this->revision_create_time; - } - - public function hasRevisionCreateTime() - { - return isset($this->revision_create_time); - } - - public function clearRevisionCreateTime() - { - unset($this->revision_create_time); - } - - /** - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_create_time = $var; - - return $this; - } - - /** - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCompilationState() - { - return $this->compilation_state; - } - - /** - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCompilationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Rule\CompilationState::class); - $this->compilation_state = $var; - - return $this; - } - - /** - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * - * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getReferenceLists() - { - return $this->reference_lists; - } - - /** - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * - * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setReferenceLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->reference_lists = $arr; - - return $this; - } - - /** - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getAllowedRunFrequencies() - { - return $this->allowed_run_frequencies; - } - - /** - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[] $var - * @return $this - */ - public function setAllowedRunFrequencies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\RunFrequency::class); - $this->allowed_run_frequencies = $arr; - - return $this; - } - - /** - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string etag = 15; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string etag = 15; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * - * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * - * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\CompilationDiagnostic> - */ - public function getCompilationDiagnostics() - { - return $this->compilation_diagnostics; - } - - /** - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $var - * @return $this - */ - public function setCompilationDiagnostics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CompilationDiagnostic::class); - $this->compilation_diagnostics = $arr; - - return $this; - } - - /** - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * - * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getNearRealTimeLiveRuleEligible() - { - return $this->near_real_time_live_rule_eligible; - } - - /** - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * - * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setNearRealTimeLiveRuleEligible($var) - { - GPBUtil::checkBool($var); - $this->near_real_time_live_rule_eligible = $var; - - return $this; - } - - /** - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\InputsUsed|null - */ - public function getInputsUsed() - { - return $this->inputs_used; - } - - public function hasInputsUsed() - { - return isset($this->inputs_used); - } - - public function clearInputsUsed() - { - unset($this->inputs_used); - } - - /** - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\InputsUsed $var - * @return $this - */ - public function setInputsUsed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\InputsUsed::class); - $this->inputs_used = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php deleted file mode 100644 index fde2594a8645..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.chronicle.v1.Rule.CompilationState - */ -class CompilationState -{ - /** - * The compilation state is unspecified/unknown. - * - * Generated from protobuf enum COMPILATION_STATE_UNSPECIFIED = 0; - */ - const COMPILATION_STATE_UNSPECIFIED = 0; - /** - * The Rule can successfully compile. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The Rule cannot successfully compile. - * This is possible if a backwards-incompatible change was made to the - * compiler. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - - private static $valueToName = [ - self::COMPILATION_STATE_UNSPECIFIED => 'COMPILATION_STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php deleted file mode 100644 index 59c5d3f3033c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php +++ /dev/null @@ -1,477 +0,0 @@ -google.cloud.chronicle.v1.RuleDeployment - */ -class RuleDeployment extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Whether the rule is currently deployed continuously against incoming data. - * - * Generated from protobuf field bool enabled = 2; - */ - protected $enabled = false; - /** - * Whether detections resulting from this deployment should be considered - * alerts. - * - * Generated from protobuf field bool alerting = 3; - */ - protected $alerting = false; - /** - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * - * Generated from protobuf field bool archived = 4; - */ - protected $archived = false; - /** - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $archive_time = null; - /** - * The run frequency of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; - */ - protected $run_frequency = 0; - /** - * Output only. The execution state of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_state = 0; - /** - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $producer_rules; - /** - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $consumer_rules; - /** - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * - * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_alert_status_change_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * @type bool $enabled - * Whether the rule is currently deployed continuously against incoming data. - * @type bool $alerting - * Whether detections resulting from this deployment should be considered - * alerts. - * @type bool $archived - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * @type \Google\Protobuf\Timestamp $archive_time - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * @type int $run_frequency - * The run frequency of the rule deployment. - * @type int $execution_state - * Output only. The execution state of the rule deployment. - * @type string[] $producer_rules - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type string[] $consumer_rules - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type \Google\Protobuf\Timestamp $last_alert_status_change_time - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether the rule is currently deployed continuously against incoming data. - * - * Generated from protobuf field bool enabled = 2; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the rule is currently deployed continuously against incoming data. - * - * Generated from protobuf field bool enabled = 2; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Whether detections resulting from this deployment should be considered - * alerts. - * - * Generated from protobuf field bool alerting = 3; - * @return bool - */ - public function getAlerting() - { - return $this->alerting; - } - - /** - * Whether detections resulting from this deployment should be considered - * alerts. - * - * Generated from protobuf field bool alerting = 3; - * @param bool $var - * @return $this - */ - public function setAlerting($var) - { - GPBUtil::checkBool($var); - $this->alerting = $var; - - return $this; - } - - /** - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * - * Generated from protobuf field bool archived = 4; - * @return bool - */ - public function getArchived() - { - return $this->archived; - } - - /** - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * - * Generated from protobuf field bool archived = 4; - * @param bool $var - * @return $this - */ - public function setArchived($var) - { - GPBUtil::checkBool($var); - $this->archived = $var; - - return $this; - } - - /** - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getArchiveTime() - { - return $this->archive_time; - } - - public function hasArchiveTime() - { - return isset($this->archive_time); - } - - public function clearArchiveTime() - { - unset($this->archive_time); - } - - /** - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setArchiveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->archive_time = $var; - - return $this; - } - - /** - * The run frequency of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; - * @return int - */ - public function getRunFrequency() - { - return $this->run_frequency; - } - - /** - * The run frequency of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; - * @param int $var - * @return $this - */ - public function setRunFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RunFrequency::class); - $this->run_frequency = $var; - - return $this; - } - - /** - * Output only. The execution state of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getExecutionState() - { - return $this->execution_state; - } - - /** - * Output only. The execution state of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setExecutionState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleDeployment\ExecutionState::class); - $this->execution_state = $var; - - return $this; - } - - /** - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getProducerRules() - { - return $this->producer_rules; - } - - /** - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setProducerRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->producer_rules = $arr; - - return $this; - } - - /** - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getConsumerRules() - { - return $this->consumer_rules; - } - - /** - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setConsumerRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->consumer_rules = $arr; - - return $this; - } - - /** - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * - * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastAlertStatusChangeTime() - { - return $this->last_alert_status_change_time; - } - - public function hasLastAlertStatusChangeTime() - { - return isset($this->last_alert_status_change_time); - } - - public function clearLastAlertStatusChangeTime() - { - unset($this->last_alert_status_change_time); - } - - /** - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * - * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastAlertStatusChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_alert_status_change_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php deleted file mode 100644 index c942861abbcc..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.chronicle.v1.RuleDeployment.ExecutionState - */ -class ExecutionState -{ - /** - * Unspecified or unknown execution state. - * - * Generated from protobuf enum EXECUTION_STATE_UNSPECIFIED = 0; - */ - const EXECUTION_STATE_UNSPECIFIED = 0; - /** - * Default execution state. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * Rules in limited state may not have their executions guaranteed. - * - * Generated from protobuf enum LIMITED = 2; - */ - const LIMITED = 2; - /** - * Paused rules are not executed at all. - * - * Generated from protobuf enum PAUSED = 3; - */ - const PAUSED = 3; - - private static $valueToName = [ - self::EXECUTION_STATE_UNSPECIFIED => 'EXECUTION_STATE_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::LIMITED => 'LIMITED', - self::PAUSED => 'PAUSED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php deleted file mode 100644 index fd4d0dbae098..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.chronicle.v1.RuleType - */ -class RuleType -{ - /** - * The rule type is unspecified/unknown. - * - * Generated from protobuf enum RULE_TYPE_UNSPECIFIED = 0; - */ - const RULE_TYPE_UNSPECIFIED = 0; - /** - * Rule checks for the existence of a single event. - * - * Generated from protobuf enum SINGLE_EVENT = 1; - */ - const SINGLE_EVENT = 1; - /** - * Rule checks for correlation between multiple events - * - * Generated from protobuf enum MULTI_EVENT = 2; - */ - const MULTI_EVENT = 2; - - private static $valueToName = [ - self::RULE_TYPE_UNSPECIFIED => 'RULE_TYPE_UNSPECIFIED', - self::SINGLE_EVENT => 'SINGLE_EVENT', - self::MULTI_EVENT => 'MULTI_EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php deleted file mode 100644 index a79782aed652..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.chronicle.v1.RuleView - */ -class RuleView -{ - /** - * The default/unset value. - * The API will default to the BASIC view for ListRules/ListRuleRevisions. - * The API will default to the FULL view for GetRule. - * - * Generated from protobuf enum RULE_VIEW_UNSPECIFIED = 0; - */ - const RULE_VIEW_UNSPECIFIED = 0; - /** - * Include basic metadata about the rule, but not the full contents. - * Returned fields include: revision_id, revision_create_time, display_name, - * author, severity, type, allowed_run_frequency, - * near_real_time_live_rule_eligible, etag, and scope. - * This is the default value for ListRules and ListRuleRevisions. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include all fields. - * This is the default value for GetRule. - * - * Generated from protobuf enum FULL = 2; - */ - const FULL = 2; - /** - * Include basic metadata about the rule's revision only. - * Returned fields include: revision_id and revision_create_time. - * - * Generated from protobuf enum REVISION_METADATA_ONLY = 3; - */ - const REVISION_METADATA_ONLY = 3; - - private static $valueToName = [ - self::RULE_VIEW_UNSPECIFIED => 'RULE_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => 'FULL', - self::REVISION_METADATA_ONLY => 'REVISION_METADATA_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php deleted file mode 100644 index 0540b9c3cfd8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.chronicle.v1.RunFrequency - */ -class RunFrequency -{ - /** - * The run frequency is unspecified/unknown. - * - * Generated from protobuf enum RUN_FREQUENCY_UNSPECIFIED = 0; - */ - const RUN_FREQUENCY_UNSPECIFIED = 0; - /** - * Executes in real time. - * - * Generated from protobuf enum LIVE = 1; - */ - const LIVE = 1; - /** - * Executes once per hour. - * - * Generated from protobuf enum HOURLY = 2; - */ - const HOURLY = 2; - /** - * Executes once per day. - * - * Generated from protobuf enum DAILY = 3; - */ - const DAILY = 3; - - private static $valueToName = [ - self::RUN_FREQUENCY_UNSPECIFIED => 'RUN_FREQUENCY_UNSPECIFIED', - self::LIVE => 'LIVE', - self::HOURLY => 'HOURLY', - self::DAILY => 'DAILY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php deleted file mode 100644 index 69d47b86337b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.chronicle.v1.ScopeInfo - */ -class ScopeInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list_scope = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ReferenceListScope $reference_list_scope - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\ReferenceListScope|null - */ - public function getReferenceListScope() - { - return $this->reference_list_scope; - } - - public function hasReferenceListScope() - { - return isset($this->reference_list_scope); - } - - public function clearReferenceListScope() - { - unset($this->reference_list_scope); - } - - /** - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceListScope $var - * @return $this - */ - public function setReferenceListScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceListScope::class); - $this->reference_list_scope = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php deleted file mode 100644 index 8d2c048917ac..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.chronicle.v1.Severity - */ -class Severity extends \Google\Protobuf\Internal\Message -{ - /** - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php deleted file mode 100644 index 6830fde1824e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataAccessLabelRequest - */ -class UpdateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_label = null; - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. The data access label to update. - * - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessLabelRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAccessLabel($dataAccessLabel) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null - */ - public function getDataAccessLabel() - { - return $this->data_access_label; - } - - public function hasDataAccessLabel() - { - return isset($this->data_access_label); - } - - public function clearDataAccessLabel() - { - unset($this->data_access_label); - } - - /** - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var - * @return $this - */ - public function setDataAccessLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); - $this->data_access_label = $var; - - return $this; - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php deleted file mode 100644 index b332994c240e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php +++ /dev/null @@ -1,172 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataAccessScopeRequest - */ -class UpdateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_scope = null; - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. The data access scope to update. - * - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessScopeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAccessScope($dataAccessScope) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null - */ - public function getDataAccessScope() - { - return $this->data_access_scope; - } - - public function hasDataAccessScope() - { - return isset($this->data_access_scope); - } - - public function clearDataAccessScope() - { - unset($this->data_access_scope); - } - - /** - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var - * @return $this - */ - public function setDataAccessScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); - $this->data_access_scope = $var; - - return $this; - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php deleted file mode 100644 index db7d985e7a3d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataTableRequest - */ -class UpdateDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table = null; - /** - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataTable $dataTable, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataTable($dataTable) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTable $data_table - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTable|null - */ - public function getDataTable() - { - return $this->data_table; - } - - public function hasDataTable() - { - return isset($this->data_table); - } - - public function clearDataTable() - { - unset($this->data_table); - } - - /** - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTable $var - * @return $this - */ - public function setDataTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); - $this->data_table = $var; - - return $this; - } - - /** - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php deleted file mode 100644 index 9f1bc32f4b5b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataTableRowRequest - */ -class UpdateDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table_row = null; - /** - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataTableRow($dataTableRow) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTableRow|null - */ - public function getDataTableRow() - { - return $this->data_table_row; - } - - public function hasDataTableRow() - { - return isset($this->data_table_row); - } - - public function clearDataTableRow() - { - unset($this->data_table_row); - } - - /** - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTableRow $var - * @return $this - */ - public function setDataTableRow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_row = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php deleted file mode 100644 index f38d1db1fad1..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.chronicle.v1.UpdateReferenceListRequest - */ -class UpdateReferenceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list = null; - /** - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to update. - * - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * @return \Google\Cloud\Chronicle\V1\UpdateReferenceListRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\ReferenceList $referenceList, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setReferenceList($referenceList) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\ReferenceList|null - */ - public function getReferenceList() - { - return $this->reference_list; - } - - public function hasReferenceList() - { - return isset($this->reference_list); - } - - public function clearReferenceList() - { - unset($this->reference_list); - } - - /** - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceList $var - * @return $this - */ - public function setReferenceList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); - $this->reference_list = $var; - - return $this; - } - - /** - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php deleted file mode 100644 index b6628f53c50e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.chronicle.v1.UpdateRuleDeploymentRequest - */ -class UpdateRuleDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rule_deployment = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment Required. The rule deployment to update. - * - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\Chronicle\V1\UpdateRuleDeploymentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\RuleDeployment $rule_deployment - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\RuleDeployment|null - */ - public function getRuleDeployment() - { - return $this->rule_deployment; - } - - public function hasRuleDeployment() - { - return isset($this->rule_deployment); - } - - public function clearRuleDeployment() - { - unset($this->rule_deployment); - } - - /** - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\RuleDeployment $var - * @return $this - */ - public function setRuleDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\RuleDeployment::class); - $this->rule_deployment = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php deleted file mode 100644 index 4d51451d9e75..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.chronicle.v1.UpdateRuleRequest - */ -class UpdateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rule = null; - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to update. - * - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * @return \Google\Cloud\Chronicle\V1\UpdateRuleRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\Rule $rule, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRule($rule) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Rule $rule - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Rule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Rule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rule = $var; - - return $this; - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php deleted file mode 100644 index 9afffa4ab421..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.chronicle.v1.UpdateWatchlistRequest - */ -class UpdateWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $watchlist = null; - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to update. - * - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * - * @return \Google\Cloud\Chronicle\V1\UpdateWatchlistRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\Watchlist $watchlist, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setWatchlist($watchlist) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Watchlist|null - */ - public function getWatchlist() - { - return $this->watchlist; - } - - public function hasWatchlist() - { - return isset($this->watchlist); - } - - public function clearWatchlist() - { - unset($this->watchlist); - } - - /** - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Watchlist $var - * @return $this - */ - public function setWatchlist($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); - $this->watchlist = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php deleted file mode 100644 index 2c3553e82f3e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php +++ /dev/null @@ -1,414 +0,0 @@ -google.cloud.chronicle.v1.Watchlist - */ -class Watchlist extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description of the watchlist. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * - * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $multiplying_factor = 0.0; - /** - * Required. Mechanism to populate entities in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_population_mechanism = null; - /** - * Output only. Entity count in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $entity_count = null; - /** - * Output only. Time the watchlist was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time the watchlist was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User preferences for watchlist configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $watchlist_user_preferences = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @type string $display_name - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * @type string $description - * Optional. Description of the watchlist. - * @type float $multiplying_factor - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $entity_population_mechanism - * Required. Mechanism to populate entities in the watchlist. - * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $entity_count - * Output only. Entity count in the watchlist. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the watchlist was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the watchlist was last updated. - * @type \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $watchlist_user_preferences - * Optional. User preferences for watchlist configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the watchlist. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the watchlist. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * - * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getMultiplyingFactor() - { - return $this->multiplying_factor; - } - - /** - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * - * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setMultiplyingFactor($var) - { - GPBUtil::checkFloat($var); - $this->multiplying_factor = $var; - - return $this; - } - - /** - * Required. Mechanism to populate entities in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism|null - */ - public function getEntityPopulationMechanism() - { - return $this->entity_population_mechanism; - } - - public function hasEntityPopulationMechanism() - { - return isset($this->entity_population_mechanism); - } - - public function clearEntityPopulationMechanism() - { - unset($this->entity_population_mechanism); - } - - /** - * Required. Mechanism to populate entities in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $var - * @return $this - */ - public function setEntityPopulationMechanism($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism::class); - $this->entity_population_mechanism = $var; - - return $this; - } - - /** - * Output only. Entity count in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityCount|null - */ - public function getEntityCount() - { - return $this->entity_count; - } - - public function hasEntityCount() - { - return isset($this->entity_count); - } - - public function clearEntityCount() - { - unset($this->entity_count); - } - - /** - * Output only. Entity count in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $var - * @return $this - */ - public function setEntityCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityCount::class); - $this->entity_count = $var; - - return $this; - } - - /** - * Output only. Time the watchlist was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time the watchlist was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time the watchlist was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time the watchlist was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. User preferences for watchlist configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\WatchlistUserPreferences|null - */ - public function getWatchlistUserPreferences() - { - return $this->watchlist_user_preferences; - } - - public function hasWatchlistUserPreferences() - { - return isset($this->watchlist_user_preferences); - } - - public function clearWatchlistUserPreferences() - { - unset($this->watchlist_user_preferences); - } - - /** - * Optional. User preferences for watchlist configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $var - * @return $this - */ - public function setWatchlistUserPreferences($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\WatchlistUserPreferences::class); - $this->watchlist_user_preferences = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php deleted file mode 100644 index 6ed43d57e34a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.Watchlist.EntityCount - */ -class EntityCount extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Count of user type entities in the watchlist. - * - * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user = 0; - /** - * Output only. Count of asset type entities in the watchlist. - * - * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $asset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $user - * Output only. Count of user type entities in the watchlist. - * @type int $asset - * Output only. Count of asset type entities in the watchlist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Count of user type entities in the watchlist. - * - * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getUser() - { - return $this->user; - } - - /** - * Output only. Count of user type entities in the watchlist. - * - * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkInt32($var); - $this->user = $var; - - return $this; - } - - /** - * Output only. Count of asset type entities in the watchlist. - * - * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAsset() - { - return $this->asset; - } - - /** - * Output only. Count of asset type entities in the watchlist. - * - * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkInt32($var); - $this->asset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php deleted file mode 100644 index 1d821fb12d88..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism - */ -class EntityPopulationMechanism extends \Google\Protobuf\Internal\Message -{ - protected $mechanism; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $manual - * Optional. Entities are added manually. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Entities are added manually. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual|null - */ - public function getManual() - { - return $this->readOneof(1); - } - - public function hasManual() - { - return $this->hasOneof(1); - } - - /** - * Optional. Entities are added manually. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $var - * @return $this - */ - public function setManual($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getMechanism() - { - return $this->whichOneof("mechanism"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php deleted file mode 100644 index 610033c25683..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual - */ -class Manual extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php deleted file mode 100644 index 1e28b313f6fe..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.WatchlistUserPreferences - */ -class WatchlistUserPreferences extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether the watchlist is pinned on the dashboard. - * - * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $pinned = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $pinned - * Optional. Whether the watchlist is pinned on the dashboard. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether the watchlist is pinned on the dashboard. - * - * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getPinned() - { - return $this->pinned; - } - - /** - * Optional. Whether the watchlist is pinned on the dashboard. - * - * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setPinned($var) - { - GPBUtil::checkBool($var); - $this->pinned = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php deleted file mode 100644 index 0623874acf9e..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - - // Call the API and handle any network failures. - try { - /** @var DataAccessLabel $response */ - $response = $dataAccessControlServiceClient->createDataAccessLabel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $dataAccessLabelId = '[DATA_ACCESS_LABEL_ID]'; - - create_data_access_label_sample($formattedParent, $dataAccessLabelId); -} -// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php deleted file mode 100644 index 5219ceb6ae38..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php +++ /dev/null @@ -1,105 +0,0 @@ -setName($formattedDataAccessScopeName); - $request = (new CreateDataAccessScopeRequest()) - ->setParent($formattedParent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - - // Call the API and handle any network failures. - try { - /** @var DataAccessScope $response */ - $response = $dataAccessControlServiceClient->createDataAccessScope($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - $dataAccessScopeId = '[DATA_ACCESS_SCOPE_ID]'; - - create_data_access_scope_sample( - $formattedParent, - $formattedDataAccessScopeName, - $dataAccessScopeId - ); -} -// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php deleted file mode 100644 index 3c885880892f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataAccessControlServiceClient->deleteDataAccessLabel($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessLabelName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_LABEL]' - ); - - delete_data_access_label_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php deleted file mode 100644 index 41f166b0bf41..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataAccessControlServiceClient->deleteDataAccessScope($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - - delete_data_access_scope_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php deleted file mode 100644 index 7b8c83109598..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAccessLabel $response */ - $response = $dataAccessControlServiceClient->getDataAccessLabel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessLabelName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_LABEL]' - ); - - get_data_access_label_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php deleted file mode 100644 index e434c9be6db8..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAccessScope $response */ - $response = $dataAccessControlServiceClient->getDataAccessScope($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - - get_data_access_scope_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php deleted file mode 100644 index f831204ae17d..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAccessControlServiceClient->listDataAccessLabels($request); - - /** @var DataAccessLabel $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_data_access_labels_sample($formattedParent); -} -// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessLabels_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php deleted file mode 100644 index ac4cfa39ba9e..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAccessControlServiceClient->listDataAccessScopes($request); - - /** @var DataAccessScope $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_data_access_scopes_sample($formattedParent); -} -// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessScopes_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php deleted file mode 100644 index e949373ca7f3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php +++ /dev/null @@ -1,59 +0,0 @@ -setDataAccessLabel($dataAccessLabel); - - // Call the API and handle any network failures. - try { - /** @var DataAccessLabel $response */ - $response = $dataAccessControlServiceClient->updateDataAccessLabel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php deleted file mode 100644 index 33d0d8a4424b..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedDataAccessScopeName); - $request = (new UpdateDataAccessScopeRequest()) - ->setDataAccessScope($dataAccessScope); - - // Call the API and handle any network failures. - try { - /** @var DataAccessScope $response */ - $response = $dataAccessControlServiceClient->updateDataAccessScope($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - - update_data_access_scope_sample($formattedDataAccessScopeName); -} -// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php deleted file mode 100644 index 1f64d05306a3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php +++ /dev/null @@ -1,108 +0,0 @@ -setValues($requestsDataTableRowValues); - $createDataTableRowRequest = (new CreateDataTableRowRequest()) - ->setParent($formattedRequestsParent) - ->setDataTableRow($requestsDataTableRow); - $requests = [$createDataTableRowRequest,]; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkCreateDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkCreateDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $formattedRequestsParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $requestsDataTableRowValuesElement = '[VALUES]'; - - bulk_create_data_table_rows_sample( - $formattedParent, - $formattedRequestsParent, - $requestsDataTableRowValuesElement - ); -} -// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php deleted file mode 100644 index 5dff1680a8d2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($formattedRequestsName); - $requests = [$getDataTableRowRequest,]; - $request = (new BulkGetDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkGetDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkGetDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $formattedRequestsName = DataTableServiceClient::dataTableRowName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]', - '[DATA_TABLE_ROW]' - ); - - bulk_get_data_table_rows_sample($formattedParent, $formattedRequestsName); -} -// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php deleted file mode 100644 index 719f12db7676..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php +++ /dev/null @@ -1,108 +0,0 @@ -setValues($requestsDataTableRowValues); - $createDataTableRowRequest = (new CreateDataTableRowRequest()) - ->setParent($formattedRequestsParent) - ->setDataTableRow($requestsDataTableRow); - $requests = [$createDataTableRowRequest,]; - $request = (new BulkReplaceDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkReplaceDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkReplaceDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $formattedRequestsParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $requestsDataTableRowValuesElement = '[VALUES]'; - - bulk_replace_data_table_rows_sample( - $formattedParent, - $formattedRequestsParent, - $requestsDataTableRowValuesElement - ); -} -// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php deleted file mode 100644 index c5b35718149f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php +++ /dev/null @@ -1,92 +0,0 @@ -setValues($requestsDataTableRowValues); - $updateDataTableRowRequest = (new UpdateDataTableRowRequest()) - ->setDataTableRow($requestsDataTableRow); - $requests = [$updateDataTableRowRequest,]; - $request = (new BulkUpdateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkUpdateDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkUpdateDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $requestsDataTableRowValuesElement = '[VALUES]'; - - bulk_update_data_table_rows_sample($formattedParent, $requestsDataTableRowValuesElement); -} -// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php deleted file mode 100644 index bca1084349da..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php +++ /dev/null @@ -1,87 +0,0 @@ -setDescription($dataTableDescription); - $request = (new CreateDataTableRequest()) - ->setParent($formattedParent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - - // Call the API and handle any network failures. - try { - /** @var DataTable $response */ - $response = $dataTableServiceClient->createDataTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataTableDescription = '[DESCRIPTION]'; - $dataTableId = '[DATA_TABLE_ID]'; - - create_data_table_sample($formattedParent, $dataTableDescription, $dataTableId); -} -// [END chronicle_v1_generated_DataTableService_CreateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php deleted file mode 100644 index 4c2f774cc155..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php +++ /dev/null @@ -1,87 +0,0 @@ -setValues($dataTableRowValues); - $request = (new CreateDataTableRowRequest()) - ->setParent($formattedParent) - ->setDataTableRow($dataTableRow); - - // Call the API and handle any network failures. - try { - /** @var DataTableRow $response */ - $response = $dataTableServiceClient->createDataTableRow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $dataTableRowValuesElement = '[VALUES]'; - - create_data_table_row_sample($formattedParent, $dataTableRowValuesElement); -} -// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php deleted file mode 100644 index 28c77cdb6435..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataTableServiceClient->deleteDataTable($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - - delete_data_table_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_DeleteDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php deleted file mode 100644 index 82188421d34a..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataTableServiceClient->deleteDataTableRow($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableRowName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]', - '[DATA_TABLE_ROW]' - ); - - delete_data_table_row_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php deleted file mode 100644 index f8c92cf8d5be..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataTable $response */ - $response = $dataTableServiceClient->getDataTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - - get_data_table_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_GetDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php deleted file mode 100644 index 354a4397517f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataTableOperationErrors $response */ - $response = $dataTableServiceClient->getDataTableOperationErrors($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableOperationErrorsName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE_OPERATION_ERRORS]' - ); - - get_data_table_operation_errors_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php deleted file mode 100644 index 90790e1fd6b3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataTableRow $response */ - $response = $dataTableServiceClient->getDataTableRow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableRowName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]', - '[DATA_TABLE_ROW]' - ); - - get_data_table_row_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_GetDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php deleted file mode 100644 index d38cc698f7fd..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataTableServiceClient->listDataTableRows($request); - - /** @var DataTableRow $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - - list_data_table_rows_sample($formattedParent); -} -// [END chronicle_v1_generated_DataTableService_ListDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php deleted file mode 100644 index 87d6c459c2f2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataTableServiceClient->listDataTables($request); - - /** @var DataTable $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - list_data_tables_sample($formattedParent); -} -// [END chronicle_v1_generated_DataTableService_ListDataTables_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php deleted file mode 100644 index 56d2a5d3e41c..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php +++ /dev/null @@ -1,72 +0,0 @@ -setDescription($dataTableDescription); - $request = (new UpdateDataTableRequest()) - ->setDataTable($dataTable); - - // Call the API and handle any network failures. - try { - /** @var DataTable $response */ - $response = $dataTableServiceClient->updateDataTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $dataTableDescription = '[DESCRIPTION]'; - - update_data_table_sample($dataTableDescription); -} -// [END chronicle_v1_generated_DataTableService_UpdateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php deleted file mode 100644 index a3b430d80898..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php +++ /dev/null @@ -1,74 +0,0 @@ -setValues($dataTableRowValues); - $request = (new UpdateDataTableRowRequest()) - ->setDataTableRow($dataTableRow); - - // Call the API and handle any network failures. - try { - /** @var DataTableRow $response */ - $response = $dataTableServiceClient->updateDataTableRow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $dataTableRowValuesElement = '[VALUES]'; - - update_data_table_row_sample($dataTableRowValuesElement); -} -// [END chronicle_v1_generated_DataTableService_UpdateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php deleted file mode 100644 index fc91d0f75173..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php +++ /dev/null @@ -1,83 +0,0 @@ -setDisplayName($watchlistDisplayName) - ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - - // Call the API and handle any network failures. - try { - /** @var Watchlist $response */ - $response = $entityServiceClient->createWatchlist($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlistDisplayName = '[DISPLAY_NAME]'; - - create_watchlist_sample($formattedParent, $watchlistDisplayName); -} -// [END chronicle_v1_generated_EntityService_CreateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php deleted file mode 100644 index a4f794c71488..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $entityServiceClient->deleteWatchlist($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EntityServiceClient::watchlistName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[WATCHLIST]' - ); - - delete_watchlist_sample($formattedName); -} -// [END chronicle_v1_generated_EntityService_DeleteWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php deleted file mode 100644 index f2c0679734af..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Watchlist $response */ - $response = $entityServiceClient->getWatchlist($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EntityServiceClient::watchlistName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[WATCHLIST]' - ); - - get_watchlist_sample($formattedName); -} -// [END chronicle_v1_generated_EntityService_GetWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php deleted file mode 100644 index b3db33e4e1d2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $entityServiceClient->listWatchlists($request); - - /** @var Watchlist $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - list_watchlists_sample($formattedParent); -} -// [END chronicle_v1_generated_EntityService_ListWatchlists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php deleted file mode 100644 index 193fe9ee02c9..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php +++ /dev/null @@ -1,77 +0,0 @@ -setDisplayName($watchlistDisplayName) - ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new UpdateWatchlistRequest()) - ->setWatchlist($watchlist); - - // Call the API and handle any network failures. - try { - /** @var Watchlist $response */ - $response = $entityServiceClient->updateWatchlist($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $watchlistDisplayName = '[DISPLAY_NAME]'; - - update_watchlist_sample($watchlistDisplayName); -} -// [END chronicle_v1_generated_EntityService_UpdateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php b/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php deleted file mode 100644 index 3f58906ea662..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Instance $response */ - $response = $instanceServiceClient->getInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = InstanceServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - get_instance_sample($formattedName); -} -// [END chronicle_v1_generated_InstanceService_GetInstance_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php deleted file mode 100644 index 064b32ca29d0..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php +++ /dev/null @@ -1,111 +0,0 @@ -setValue($referenceListEntriesValue); - $referenceListEntries = [$referenceListEntry,]; - $referenceList = (new ReferenceList()) - ->setDescription($referenceListDescription) - ->setEntries($referenceListEntries) - ->setSyntaxType($referenceListSyntaxType); - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - - // Call the API and handle any network failures. - try { - /** @var ReferenceList $response */ - $response = $referenceListServiceClient->createReferenceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReferenceListServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $referenceListDescription = '[DESCRIPTION]'; - $referenceListEntriesValue = '[VALUE]'; - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceListId = '[REFERENCE_LIST_ID]'; - - create_reference_list_sample( - $formattedParent, - $referenceListDescription, - $referenceListEntriesValue, - $referenceListSyntaxType, - $referenceListId - ); -} -// [END chronicle_v1_generated_ReferenceListService_CreateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php deleted file mode 100644 index 5e6d4986fbfb..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ReferenceList $response */ - $response = $referenceListServiceClient->getReferenceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReferenceListServiceClient::referenceListName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[REFERENCE_LIST]' - ); - - get_reference_list_sample($formattedName); -} -// [END chronicle_v1_generated_ReferenceListService_GetReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php deleted file mode 100644 index 5fef5d03cbeb..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $referenceListServiceClient->listReferenceLists($request); - - /** @var ReferenceList $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReferenceListServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_reference_lists_sample($formattedParent); -} -// [END chronicle_v1_generated_ReferenceListService_ListReferenceLists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php deleted file mode 100644 index 2ea81ccc24e2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php +++ /dev/null @@ -1,90 +0,0 @@ -setValue($referenceListEntriesValue); - $referenceListEntries = [$referenceListEntry,]; - $referenceList = (new ReferenceList()) - ->setDescription($referenceListDescription) - ->setEntries($referenceListEntries) - ->setSyntaxType($referenceListSyntaxType); - $request = (new UpdateReferenceListRequest()) - ->setReferenceList($referenceList); - - // Call the API and handle any network failures. - try { - /** @var ReferenceList $response */ - $response = $referenceListServiceClient->updateReferenceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $referenceListDescription = '[DESCRIPTION]'; - $referenceListEntriesValue = '[VALUE]'; - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - - update_reference_list_sample( - $referenceListDescription, - $referenceListEntriesValue, - $referenceListSyntaxType - ); -} -// [END chronicle_v1_generated_ReferenceListService_UpdateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php deleted file mode 100644 index 72fe02a04c79..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php +++ /dev/null @@ -1,90 +0,0 @@ -setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $ruleServiceClient->createRetrohunt($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Retrohunt $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - create_retrohunt_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_CreateRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php deleted file mode 100644 index 4e49df99d1e9..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setRule($rule); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $ruleServiceClient->createRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - create_rule_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_CreateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php deleted file mode 100644 index 229fd626bf85..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $ruleServiceClient->deleteRule($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - delete_rule_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_DeleteRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php deleted file mode 100644 index 9a17dfe2f0fc..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Retrohunt $response */ - $response = $ruleServiceClient->getRetrohunt($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::retrohuntName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[RULE]', - '[RETROHUNT]' - ); - - get_retrohunt_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_GetRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php deleted file mode 100644 index 9b7b735b3cbb..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $ruleServiceClient->getRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - get_rule_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_GetRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php deleted file mode 100644 index 16ac2aee8b32..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var RuleDeployment $response */ - $response = $ruleServiceClient->getRuleDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[RULE]' - ); - - get_rule_deployment_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_GetRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php deleted file mode 100644 index c20092aee588..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRetrohunts($request); - - /** @var Retrohunt $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - list_retrohunts_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_ListRetrohunts_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php deleted file mode 100644 index 0a63256b173c..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRuleDeployments($request); - - /** @var RuleDeployment $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - list_rule_deployments_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_ListRuleDeployments_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php deleted file mode 100644 index 44ffc527c875..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRuleRevisions($request); - - /** @var Rule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - list_rule_revisions_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_ListRuleRevisions_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php deleted file mode 100644 index aa9cb76ebdd3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRules($request); - - /** @var Rule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - list_rules_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_ListRules_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php deleted file mode 100644 index 5462edfd5766..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php +++ /dev/null @@ -1,59 +0,0 @@ -setRule($rule); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $ruleServiceClient->updateRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chronicle_v1_generated_RuleService_UpdateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php deleted file mode 100644 index 8d9d5600aec3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($ruleDeploymentName); - $updateMask = new FieldMask(); - $request = (new UpdateRuleDeploymentRequest()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var RuleDeployment $response */ - $response = $ruleServiceClient->updateRuleDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $ruleDeploymentName = '[NAME]'; - - update_rule_deployment_sample($ruleDeploymentName); -} -// [END chronicle_v1_generated_RuleService_UpdateRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php deleted file mode 100644 index 11a4d52eccf8..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php +++ /dev/null @@ -1,572 +0,0 @@ - createDataAccessLabelAsync(CreateDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataAccessScopeAsync(CreateDataAccessScopeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAccessLabelAsync(DeleteDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAccessScopeAsync(DeleteDataAccessScopeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAccessLabelAsync(GetDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAccessScopeAsync(GetDataAccessScopeRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAccessLabelsAsync(ListDataAccessLabelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAccessScopesAsync(ListDataAccessScopesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAccessLabelAsync(UpdateDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAccessScopeAsync(UpdateDataAccessScopeRequest $request, array $optionalArgs = []) - */ -final class DataAccessControlServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataAccessControlService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/data_access_control_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_access_control_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_access_control_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_access_control_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_label resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessLabel - * - * @return string The formatted data_access_label resource. - */ - public static function dataAccessLabelName(string $project, string $location, string $instance, string $dataAccessLabel): string - { - return self::getPathTemplate('dataAccessLabel')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_label' => $dataAccessLabel, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_scope resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessScope - * - * @return string The formatted data_access_scope resource. - */ - public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string - { - return self::getPathTemplate('dataAccessScope')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_scope' => $dataAccessScope, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataAccessLabel: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label} - * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\DataAccessControlServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataAccessControlServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a data access label. - * Data access labels are applied to incoming event data and selected in data - * access scopes (another resource), and only users with scopes containing the - * label can see data with that label. Currently, the data access label - * resource only includes custom labels, which are labels that correspond - * to UDM queries over event data. - * - * The async variant is - * {@see DataAccessControlServiceClient::createDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/create_data_access_label.php - * - * @param CreateDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessLabel - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataAccessLabel(CreateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel - { - return $this->startApiCall('CreateDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Creates a data access scope. - * Data access scope is a combination of allowed and denied labels attached - * to a permission group. If a scope has allowed labels A and B and denied - * labels C and D, then the group of people attached to the scope - * will have permissions to see all events labeled with A or B (or both) and - * not labeled with either C or D. - * - * The async variant is - * {@see DataAccessControlServiceClient::createDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/create_data_access_scope.php - * - * @param CreateDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessScope - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataAccessScope(CreateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope - { - return $this->startApiCall('CreateDataAccessScope', $request, $callOptions)->wait(); - } - - /** - * Deletes a data access label. When a label is deleted, new - * data that enters in the system will not receive the label, but the label - * will not be removed from old data that still refers to it. - * - * The async variant is - * {@see DataAccessControlServiceClient::deleteDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/delete_data_access_label.php - * - * @param DeleteDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataAccessLabel(DeleteDataAccessLabelRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Deletes a data access scope. - * - * The async variant is - * {@see DataAccessControlServiceClient::deleteDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php - * - * @param DeleteDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataAccessScope(DeleteDataAccessScopeRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataAccessScope', $request, $callOptions)->wait(); - } - - /** - * Gets a data access label. - * - * The async variant is - * {@see DataAccessControlServiceClient::getDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/get_data_access_label.php - * - * @param GetDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessLabel - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataAccessLabel(GetDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel - { - return $this->startApiCall('GetDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Retrieves an existing data access scope. - * - * The async variant is - * {@see DataAccessControlServiceClient::getDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/get_data_access_scope.php - * - * @param GetDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessScope - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataAccessScope(GetDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope - { - return $this->startApiCall('GetDataAccessScope', $request, $callOptions)->wait(); - } - - /** - * Lists all data access labels for the customer. - * - * The async variant is - * {@see DataAccessControlServiceClient::listDataAccessLabelsAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/list_data_access_labels.php - * - * @param ListDataAccessLabelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataAccessLabels(ListDataAccessLabelsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAccessLabels', $request, $callOptions); - } - - /** - * Lists all existing data access scopes for the customer. - * - * The async variant is - * {@see DataAccessControlServiceClient::listDataAccessScopesAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php - * - * @param ListDataAccessScopesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataAccessScopes(ListDataAccessScopesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAccessScopes', $request, $callOptions); - } - - /** - * Updates a data access label. - * - * The async variant is - * {@see DataAccessControlServiceClient::updateDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/update_data_access_label.php - * - * @param UpdateDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessLabel - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataAccessLabel(UpdateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel - { - return $this->startApiCall('UpdateDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Updates a data access scope. - * - * The async variant is - * {@see DataAccessControlServiceClient::updateDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/update_data_access_scope.php - * - * @param UpdateDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessScope - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataAccessScope(UpdateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope - { - return $this->startApiCall('UpdateDataAccessScope', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php deleted file mode 100644 index 3a2425a3b967..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php +++ /dev/null @@ -1,747 +0,0 @@ - bulkCreateDataTableRowsAsync(BulkCreateDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface bulkGetDataTableRowsAsync(BulkGetDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface bulkReplaceDataTableRowsAsync(BulkReplaceDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface bulkUpdateDataTableRowsAsync(BulkUpdateDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataTableAsync(CreateDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataTableRowAsync(CreateDataTableRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataTableAsync(DeleteDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataTableRowAsync(DeleteDataTableRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataTableAsync(GetDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataTableOperationErrorsAsync(GetDataTableOperationErrorsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataTableRowAsync(GetDataTableRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataTableRowsAsync(ListDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataTablesAsync(ListDataTablesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataTableAsync(UpdateDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataTableRowAsync(UpdateDataTableRowRequest $request, array $optionalArgs = []) - */ -final class DataTableServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataTableService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chronicle', - 'https://www.googleapis.com/auth/chronicle.readonly', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/data_table_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_table_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_table_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_table_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_scope resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessScope - * - * @return string The formatted data_access_scope resource. - */ - public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string - { - return self::getPathTemplate('dataAccessScope')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_scope' => $dataAccessScope, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_table - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataTable - * - * @return string The formatted data_table resource. - */ - public static function dataTableName(string $project, string $location, string $instance, string $dataTable): string - { - return self::getPathTemplate('dataTable')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_table' => $dataTable, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_table_operation_errors resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataTableOperationErrors - * - * @return string The formatted data_table_operation_errors resource. - */ - public static function dataTableOperationErrorsName(string $project, string $location, string $instance, string $dataTableOperationErrors): string - { - return self::getPathTemplate('dataTableOperationErrors')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_table_operation_errors' => $dataTableOperationErrors, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_table_row resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataTable - * @param string $dataTableRow - * - * @return string The formatted data_table_row resource. - */ - public static function dataTableRowName(string $project, string $location, string $instance, string $dataTable, string $dataTableRow): string - { - return self::getPathTemplate('dataTableRow')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_table' => $dataTable, - 'data_table_row' => $dataTableRow, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} - * - dataTable: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - dataTableOperationErrors: projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - dataTableRow: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\DataTableServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataTableServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create data table rows in bulk. - * - * The async variant is - * {@see DataTableServiceClient::bulkCreateDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php - * - * @param BulkCreateDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkCreateDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkCreateDataTableRows(BulkCreateDataTableRowsRequest $request, array $callOptions = []): BulkCreateDataTableRowsResponse - { - return $this->startApiCall('BulkCreateDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Get data table rows in bulk. - * - * The async variant is {@see DataTableServiceClient::bulkGetDataTableRowsAsync()} - * . - * - * @example samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php - * - * @param BulkGetDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkGetDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkGetDataTableRows(BulkGetDataTableRowsRequest $request, array $callOptions = []): BulkGetDataTableRowsResponse - { - return $this->startApiCall('BulkGetDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Replace all existing data table rows with new data table rows. - * - * The async variant is - * {@see DataTableServiceClient::bulkReplaceDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php - * - * @param BulkReplaceDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkReplaceDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest $request, array $callOptions = []): BulkReplaceDataTableRowsResponse - { - return $this->startApiCall('BulkReplaceDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Update data table rows in bulk. - * - * The async variant is - * {@see DataTableServiceClient::bulkUpdateDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php - * - * @param BulkUpdateDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkUpdateDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest $request, array $callOptions = []): BulkUpdateDataTableRowsResponse - { - return $this->startApiCall('BulkUpdateDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Create a new data table. - * - * The async variant is {@see DataTableServiceClient::createDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/create_data_table.php - * - * @param CreateDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTable - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataTable(CreateDataTableRequest $request, array $callOptions = []): DataTable - { - return $this->startApiCall('CreateDataTable', $request, $callOptions)->wait(); - } - - /** - * Create a new data table row. - * - * The async variant is {@see DataTableServiceClient::createDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/create_data_table_row.php - * - * @param CreateDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableRow - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataTableRow(CreateDataTableRowRequest $request, array $callOptions = []): DataTableRow - { - return $this->startApiCall('CreateDataTableRow', $request, $callOptions)->wait(); - } - - /** - * Delete data table. - * - * The async variant is {@see DataTableServiceClient::deleteDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/delete_data_table.php - * - * @param DeleteDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataTable(DeleteDataTableRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataTable', $request, $callOptions)->wait(); - } - - /** - * Delete data table row. - * - * The async variant is {@see DataTableServiceClient::deleteDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/delete_data_table_row.php - * - * @param DeleteDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataTableRow(DeleteDataTableRowRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataTableRow', $request, $callOptions)->wait(); - } - - /** - * Get data table info. - * - * The async variant is {@see DataTableServiceClient::getDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/get_data_table.php - * - * @param GetDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTable - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataTable(GetDataTableRequest $request, array $callOptions = []): DataTable - { - return $this->startApiCall('GetDataTable', $request, $callOptions)->wait(); - } - - /** - * Get the error for a data table operation. - * - * The async variant is - * {@see DataTableServiceClient::getDataTableOperationErrorsAsync()} . - * - * @example samples/V1/DataTableServiceClient/get_data_table_operation_errors.php - * - * @param GetDataTableOperationErrorsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableOperationErrors - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataTableOperationErrors(GetDataTableOperationErrorsRequest $request, array $callOptions = []): DataTableOperationErrors - { - return $this->startApiCall('GetDataTableOperationErrors', $request, $callOptions)->wait(); - } - - /** - * Get data table row - * - * The async variant is {@see DataTableServiceClient::getDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/get_data_table_row.php - * - * @param GetDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableRow - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataTableRow(GetDataTableRowRequest $request, array $callOptions = []): DataTableRow - { - return $this->startApiCall('GetDataTableRow', $request, $callOptions)->wait(); - } - - /** - * List data table rows. - * - * The async variant is {@see DataTableServiceClient::listDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/list_data_table_rows.php - * - * @param ListDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataTableRows(ListDataTableRowsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataTableRows', $request, $callOptions); - } - - /** - * List data tables. - * - * The async variant is {@see DataTableServiceClient::listDataTablesAsync()} . - * - * @example samples/V1/DataTableServiceClient/list_data_tables.php - * - * @param ListDataTablesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataTables(ListDataTablesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataTables', $request, $callOptions); - } - - /** - * Update data table. - * - * The async variant is {@see DataTableServiceClient::updateDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/update_data_table.php - * - * @param UpdateDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTable - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataTable(UpdateDataTableRequest $request, array $callOptions = []): DataTable - { - return $this->startApiCall('UpdateDataTable', $request, $callOptions)->wait(); - } - - /** - * Update data table row - * - * The async variant is {@see DataTableServiceClient::updateDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/update_data_table_row.php - * - * @param UpdateDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableRow - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataTableRow(UpdateDataTableRowRequest $request, array $callOptions = []): DataTableRow - { - return $this->startApiCall('UpdateDataTableRow', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php deleted file mode 100644 index 0e4473f59298..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php +++ /dev/null @@ -1,389 +0,0 @@ - createWatchlistAsync(CreateWatchlistRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWatchlistAsync(DeleteWatchlistRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWatchlistAsync(GetWatchlistRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWatchlistsAsync(ListWatchlistsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWatchlistAsync(UpdateWatchlistRequest $request, array $optionalArgs = []) - */ -final class EntityServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.EntityService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/entity_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/entity_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/entity_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/entity_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a watchlist - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $watchlist - * - * @return string The formatted watchlist resource. - */ - public static function watchlistName(string $project, string $location, string $instance, string $watchlist): string - { - return self::getPathTemplate('watchlist')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'watchlist' => $watchlist, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - watchlist: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\EntityServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new EntityServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a watchlist for the given instance. - * Note that there can be at most 200 watchlists per instance. - * - * The async variant is {@see EntityServiceClient::createWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/create_watchlist.php - * - * @param CreateWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Watchlist - * - * @throws ApiException Thrown if the API call fails. - */ - public function createWatchlist(CreateWatchlistRequest $request, array $callOptions = []): Watchlist - { - return $this->startApiCall('CreateWatchlist', $request, $callOptions)->wait(); - } - - /** - * Deletes the watchlist for the given instance. - * - * The async variant is {@see EntityServiceClient::deleteWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/delete_watchlist.php - * - * @param DeleteWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteWatchlist(DeleteWatchlistRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWatchlist', $request, $callOptions)->wait(); - } - - /** - * Gets watchlist details for the given watchlist ID. - * - * The async variant is {@see EntityServiceClient::getWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/get_watchlist.php - * - * @param GetWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Watchlist - * - * @throws ApiException Thrown if the API call fails. - */ - public function getWatchlist(GetWatchlistRequest $request, array $callOptions = []): Watchlist - { - return $this->startApiCall('GetWatchlist', $request, $callOptions)->wait(); - } - - /** - * Lists all watchlists for the given instance. - * - * The async variant is {@see EntityServiceClient::listWatchlistsAsync()} . - * - * @example samples/V1/EntityServiceClient/list_watchlists.php - * - * @param ListWatchlistsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listWatchlists(ListWatchlistsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWatchlists', $request, $callOptions); - } - - /** - * Updates the watchlist for the given instance. - * - * The async variant is {@see EntityServiceClient::updateWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/update_watchlist.php - * - * @param UpdateWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Watchlist - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateWatchlist(UpdateWatchlistRequest $request, array $callOptions = []): Watchlist - { - return $this->startApiCall('UpdateWatchlist', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php deleted file mode 100644 index da3746e28c93..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php +++ /dev/null @@ -1,255 +0,0 @@ - getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - */ -final class InstanceServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.InstanceService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/instance_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/instance_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/instance_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/instance_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\InstanceServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new InstanceServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Gets a Instance. - * - * The async variant is {@see InstanceServiceClient::getInstanceAsync()} . - * - * @example samples/V1/InstanceServiceClient/get_instance.php - * - * @param GetInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Instance - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance - { - return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php deleted file mode 100644 index 3f922d8c579f..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php +++ /dev/null @@ -1,366 +0,0 @@ - createReferenceListAsync(CreateReferenceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReferenceListAsync(GetReferenceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReferenceListsAsync(ListReferenceListsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReferenceListAsync(UpdateReferenceListRequest $request, array $optionalArgs = []) - */ -final class ReferenceListServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.ReferenceListService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/reference_list_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/reference_list_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/reference_list_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/reference_list_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * reference_list resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $referenceList - * - * @return string The formatted reference_list resource. - */ - public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string - { - return self::getPathTemplate('referenceList')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'reference_list' => $referenceList, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\ReferenceListServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ReferenceListServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a new reference list. - * - * The async variant is - * {@see ReferenceListServiceClient::createReferenceListAsync()} . - * - * @example samples/V1/ReferenceListServiceClient/create_reference_list.php - * - * @param CreateReferenceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReferenceList - * - * @throws ApiException Thrown if the API call fails. - */ - public function createReferenceList(CreateReferenceListRequest $request, array $callOptions = []): ReferenceList - { - return $this->startApiCall('CreateReferenceList', $request, $callOptions)->wait(); - } - - /** - * Gets a single reference list. - * - * The async variant is {@see ReferenceListServiceClient::getReferenceListAsync()} - * . - * - * @example samples/V1/ReferenceListServiceClient/get_reference_list.php - * - * @param GetReferenceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReferenceList - * - * @throws ApiException Thrown if the API call fails. - */ - public function getReferenceList(GetReferenceListRequest $request, array $callOptions = []): ReferenceList - { - return $this->startApiCall('GetReferenceList', $request, $callOptions)->wait(); - } - - /** - * Lists a collection of reference lists. - * - * The async variant is - * {@see ReferenceListServiceClient::listReferenceListsAsync()} . - * - * @example samples/V1/ReferenceListServiceClient/list_reference_lists.php - * - * @param ListReferenceListsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReferenceLists(ListReferenceListsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReferenceLists', $request, $callOptions); - } - - /** - * Updates an existing reference list. - * - * The async variant is - * {@see ReferenceListServiceClient::updateReferenceListAsync()} . - * - * @example samples/V1/ReferenceListServiceClient/update_reference_list.php - * - * @param UpdateReferenceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReferenceList - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateReferenceList(UpdateReferenceListRequest $request, array $callOptions = []): ReferenceList - { - return $this->startApiCall('UpdateReferenceList', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php deleted file mode 100644 index bdbeb342276e..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php +++ /dev/null @@ -1,733 +0,0 @@ - createRetrohuntAsync(CreateRetrohuntRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRuleAsync(CreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRuleAsync(DeleteRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRetrohuntAsync(GetRetrohuntRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuleAsync(GetRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuleDeploymentAsync(GetRuleDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRetrohuntsAsync(ListRetrohuntsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRuleDeploymentsAsync(ListRuleDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRuleRevisionsAsync(ListRuleRevisionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRulesAsync(ListRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRuleAsync(UpdateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRuleDeploymentAsync(UpdateRuleDeploymentRequest $request, array $optionalArgs = []) - */ -final class RuleServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.RuleService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/rule_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/rule_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/rule_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/rule_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_scope resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessScope - * - * @return string The formatted data_access_scope resource. - */ - public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string - { - return self::getPathTemplate('dataAccessScope')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_scope' => $dataAccessScope, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * reference_list resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $referenceList - * - * @return string The formatted reference_list resource. - */ - public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string - { - return self::getPathTemplate('referenceList')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'reference_list' => $referenceList, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a retrohunt - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $rule - * @param string $retrohunt - * - * @return string The formatted retrohunt resource. - */ - public static function retrohuntName(string $project, string $location, string $instance, string $rule, string $retrohunt): string - { - return self::getPathTemplate('retrohunt')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'rule' => $rule, - 'retrohunt' => $retrohunt, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a rule - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $rule - * - * @return string The formatted rule resource. - */ - public static function ruleName(string $project, string $location, string $instance, string $rule): string - { - return self::getPathTemplate('rule')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'rule' => $rule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * rule_deployment resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $rule - * - * @return string The formatted rule_deployment resource. - */ - public static function ruleDeploymentName(string $project, string $location, string $instance, string $rule): string - { - return self::getPathTemplate('ruleDeployment')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'rule' => $rule, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} - * - retrohunt: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt} - * - rule: projects/{project}/locations/{location}/instances/{instance}/rules/{rule} - * - ruleDeployment: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\RuleServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new RuleServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create a Retrohunt. - * - * The async variant is {@see RuleServiceClient::createRetrohuntAsync()} . - * - * @example samples/V1/RuleServiceClient/create_retrohunt.php - * - * @param CreateRetrohuntRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRetrohunt(CreateRetrohuntRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRetrohunt', $request, $callOptions)->wait(); - } - - /** - * Creates a new Rule. - * - * The async variant is {@see RuleServiceClient::createRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/create_rule.php - * - * @param CreateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRule(CreateRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('CreateRule', $request, $callOptions)->wait(); - } - - /** - * Deletes a Rule. - * - * The async variant is {@see RuleServiceClient::deleteRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/delete_rule.php - * - * @param DeleteRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteRule(DeleteRuleRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteRule', $request, $callOptions)->wait(); - } - - /** - * Get a Retrohunt. - * - * The async variant is {@see RuleServiceClient::getRetrohuntAsync()} . - * - * @example samples/V1/RuleServiceClient/get_retrohunt.php - * - * @param GetRetrohuntRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Retrohunt - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRetrohunt(GetRetrohuntRequest $request, array $callOptions = []): Retrohunt - { - return $this->startApiCall('GetRetrohunt', $request, $callOptions)->wait(); - } - - /** - * Gets a Rule. - * - * The async variant is {@see RuleServiceClient::getRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/get_rule.php - * - * @param GetRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRule(GetRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('GetRule', $request, $callOptions)->wait(); - } - - /** - * Gets a RuleDeployment. - * - * The async variant is {@see RuleServiceClient::getRuleDeploymentAsync()} . - * - * @example samples/V1/RuleServiceClient/get_rule_deployment.php - * - * @param GetRuleDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RuleDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRuleDeployment(GetRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment - { - return $this->startApiCall('GetRuleDeployment', $request, $callOptions)->wait(); - } - - /** - * List Retrohunts. - * - * The async variant is {@see RuleServiceClient::listRetrohuntsAsync()} . - * - * @example samples/V1/RuleServiceClient/list_retrohunts.php - * - * @param ListRetrohuntsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRetrohunts(ListRetrohuntsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRetrohunts', $request, $callOptions); - } - - /** - * Lists RuleDeployments across all Rules. - * - * The async variant is {@see RuleServiceClient::listRuleDeploymentsAsync()} . - * - * @example samples/V1/RuleServiceClient/list_rule_deployments.php - * - * @param ListRuleDeploymentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRuleDeployments(ListRuleDeploymentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRuleDeployments', $request, $callOptions); - } - - /** - * Lists all revisions of the rule. - * - * The async variant is {@see RuleServiceClient::listRuleRevisionsAsync()} . - * - * @example samples/V1/RuleServiceClient/list_rule_revisions.php - * - * @param ListRuleRevisionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRuleRevisions(ListRuleRevisionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRuleRevisions', $request, $callOptions); - } - - /** - * Lists Rules. - * - * The async variant is {@see RuleServiceClient::listRulesAsync()} . - * - * @example samples/V1/RuleServiceClient/list_rules.php - * - * @param ListRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRules(ListRulesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRules', $request, $callOptions); - } - - /** - * Updates a Rule. - * - * The async variant is {@see RuleServiceClient::updateRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/update_rule.php - * - * @param UpdateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRule(UpdateRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('UpdateRule', $request, $callOptions)->wait(); - } - - /** - * Updates a RuleDeployment. - * Failures are not necessarily atomic. If there is a request to update - * multiple fields, and any update to a single field fails, an error will be - * returned, but other fields may remain successfully updated. - * - * The async variant is {@see RuleServiceClient::updateRuleDeploymentAsync()} . - * - * @example samples/V1/RuleServiceClient/update_rule_deployment.php - * - * @param UpdateRuleDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RuleDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRuleDeployment(UpdateRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment - { - return $this->startApiCall('UpdateRuleDeployment', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 90cfa612edbc..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,429 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.chronicle.v1", - "libraryPackage": "Google\\Cloud\\Chronicle\\V1", - "services": { - "DashboardQueryService": { - "clients": { - "grpc": { - "libraryClient": "DashboardQueryServiceGapicClient", - "rpcs": { - "ExecuteDashboardQuery": { - "methods": [ - "executeDashboardQuery" - ] - }, - "GetDashboardQuery": { - "methods": [ - "getDashboardQuery" - ] - } - } - } - } - }, - "DashboardChartService": { - "clients": { - "grpc": { - "libraryClient": "DashboardChartServiceGapicClient", - "rpcs": { - "BatchGetDashboardCharts": { - "methods": [ - "batchGetDashboardCharts" - ] - }, - "GetDashboardChart": { - "methods": [ - "getDashboardChart" - ] - } - } - } - } - }, - "DataAccessControlService": { - "clients": { - "grpc": { - "libraryClient": "DataAccessControlServiceGapicClient", - "rpcs": { - "CreateDataAccessLabel": { - "methods": [ - "createDataAccessLabel" - ] - }, - "CreateDataAccessScope": { - "methods": [ - "createDataAccessScope" - ] - }, - "DeleteDataAccessLabel": { - "methods": [ - "deleteDataAccessLabel" - ] - }, - "DeleteDataAccessScope": { - "methods": [ - "deleteDataAccessScope" - ] - }, - "GetDataAccessLabel": { - "methods": [ - "getDataAccessLabel" - ] - }, - "GetDataAccessScope": { - "methods": [ - "getDataAccessScope" - ] - }, - "ListDataAccessLabels": { - "methods": [ - "listDataAccessLabels" - ] - }, - "ListDataAccessScopes": { - "methods": [ - "listDataAccessScopes" - ] - }, - "UpdateDataAccessLabel": { - "methods": [ - "updateDataAccessLabel" - ] - }, - "UpdateDataAccessScope": { - "methods": [ - "updateDataAccessScope" - ] - } - } - } - } - }, - "DataTableService": { - "clients": { - "grpc": { - "libraryClient": "DataTableServiceGapicClient", - "rpcs": { - "BulkCreateDataTableRows": { - "methods": [ - "bulkCreateDataTableRows" - ] - }, - "BulkGetDataTableRows": { - "methods": [ - "bulkGetDataTableRows" - ] - }, - "BulkReplaceDataTableRows": { - "methods": [ - "bulkReplaceDataTableRows" - ] - }, - "BulkUpdateDataTableRows": { - "methods": [ - "bulkUpdateDataTableRows" - ] - }, - "CreateDataTable": { - "methods": [ - "createDataTable" - ] - }, - "CreateDataTableRow": { - "methods": [ - "createDataTableRow" - ] - }, - "DeleteDataTable": { - "methods": [ - "deleteDataTable" - ] - }, - "DeleteDataTableRow": { - "methods": [ - "deleteDataTableRow" - ] - }, - "GetDataTable": { - "methods": [ - "getDataTable" - ] - }, - "GetDataTableOperationErrors": { - "methods": [ - "getDataTableOperationErrors" - ] - }, - "GetDataTableRow": { - "methods": [ - "getDataTableRow" - ] - }, - "ListDataTableRows": { - "methods": [ - "listDataTableRows" - ] - }, - "ListDataTables": { - "methods": [ - "listDataTables" - ] - }, - "UpdateDataTable": { - "methods": [ - "updateDataTable" - ] - }, - "UpdateDataTableRow": { - "methods": [ - "updateDataTableRow" - ] - } - } - } - } - }, - "EntityService": { - "clients": { - "grpc": { - "libraryClient": "EntityServiceGapicClient", - "rpcs": { - "CreateWatchlist": { - "methods": [ - "createWatchlist" - ] - }, - "DeleteWatchlist": { - "methods": [ - "deleteWatchlist" - ] - }, - "GetWatchlist": { - "methods": [ - "getWatchlist" - ] - }, - "ListWatchlists": { - "methods": [ - "listWatchlists" - ] - }, - "UpdateWatchlist": { - "methods": [ - "updateWatchlist" - ] - } - } - } - } - }, - "NativeDashboardService": { - "clients": { - "grpc": { - "libraryClient": "NativeDashboardServiceGapicClient", - "rpcs": { - "AddChart": { - "methods": [ - "addChart" - ] - }, - "CreateNativeDashboard": { - "methods": [ - "createNativeDashboard" - ] - }, - "DeleteNativeDashboard": { - "methods": [ - "deleteNativeDashboard" - ] - }, - "DuplicateChart": { - "methods": [ - "duplicateChart" - ] - }, - "DuplicateNativeDashboard": { - "methods": [ - "duplicateNativeDashboard" - ] - }, - "EditChart": { - "methods": [ - "editChart" - ] - }, - "ExportNativeDashboards": { - "methods": [ - "exportNativeDashboards" - ] - }, - "GetNativeDashboard": { - "methods": [ - "getNativeDashboard" - ] - }, - "ImportNativeDashboards": { - "methods": [ - "importNativeDashboards" - ] - }, - "ListNativeDashboards": { - "methods": [ - "listNativeDashboards" - ] - }, - "RemoveChart": { - "methods": [ - "removeChart" - ] - }, - "UpdateNativeDashboard": { - "methods": [ - "updateNativeDashboard" - ] - } - } - } - } - }, - "FeaturedContentNativeDashboardService": { - "clients": { - "grpc": { - "libraryClient": "FeaturedContentNativeDashboardServiceGapicClient", - "rpcs": { - "GetFeaturedContentNativeDashboard": { - "methods": [ - "getFeaturedContentNativeDashboard" - ] - }, - "InstallFeaturedContentNativeDashboard": { - "methods": [ - "installFeaturedContentNativeDashboard" - ] - }, - "ListFeaturedContentNativeDashboards": { - "methods": [ - "listFeaturedContentNativeDashboards" - ] - } - } - } - } - }, - "InstanceService": { - "clients": { - "grpc": { - "libraryClient": "InstanceServiceGapicClient", - "rpcs": { - "GetInstance": { - "methods": [ - "getInstance" - ] - } - } - } - } - }, - "ReferenceListService": { - "clients": { - "grpc": { - "libraryClient": "ReferenceListServiceGapicClient", - "rpcs": { - "CreateReferenceList": { - "methods": [ - "createReferenceList" - ] - }, - "GetReferenceList": { - "methods": [ - "getReferenceList" - ] - }, - "ListReferenceLists": { - "methods": [ - "listReferenceLists" - ] - }, - "UpdateReferenceList": { - "methods": [ - "updateReferenceList" - ] - } - } - } - } - }, - "RuleService": { - "clients": { - "grpc": { - "libraryClient": "RuleServiceGapicClient", - "rpcs": { - "CreateRetrohunt": { - "methods": [ - "createRetrohunt" - ] - }, - "CreateRule": { - "methods": [ - "createRule" - ] - }, - "DeleteRule": { - "methods": [ - "deleteRule" - ] - }, - "GetRetrohunt": { - "methods": [ - "getRetrohunt" - ] - }, - "GetRule": { - "methods": [ - "getRule" - ] - }, - "GetRuleDeployment": { - "methods": [ - "getRuleDeployment" - ] - }, - "ListRetrohunts": { - "methods": [ - "listRetrohunts" - ] - }, - "ListRuleDeployments": { - "methods": [ - "listRuleDeployments" - ] - }, - "ListRuleRevisions": { - "methods": [ - "listRuleRevisions" - ] - }, - "ListRules": { - "methods": [ - "listRules" - ] - }, - "UpdateRule": { - "methods": [ - "updateRule" - ] - }, - "UpdateRuleDeployment": { - "methods": [ - "updateRuleDeployment" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json deleted file mode 100644 index 93ed52f8b477..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.DataAccessControlService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "CreateDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "GetDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataAccessLabels": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataAccessScopes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "UpdateDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php deleted file mode 100644 index c8a4082ca4c9..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php +++ /dev/null @@ -1,171 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataAccessControlService' => [ - 'CreateDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAccessLabels' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAccessLabels', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessLabelsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAccessScopes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAccessScopes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessScopesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', - 'headerParams' => [ - [ - 'keyName' => 'data_access_label.name', - 'fieldAccessors' => [ - 'getDataAccessLabel', - 'getName', - ], - ], - ], - ], - 'UpdateDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', - 'headerParams' => [ - [ - 'keyName' => 'data_access_scope.name', - 'fieldAccessors' => [ - 'getDataAccessScope', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dataAccessLabel' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}', - 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php deleted file mode 100644 index 5541511b522c..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php +++ /dev/null @@ -1,198 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataAccessControlService' => [ - 'CreateDataAccessLabel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', - 'body' => 'data_access_label', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_access_label_id', - ], - ], - 'CreateDataAccessScope' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', - 'body' => 'data_access_scope', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_access_scope_id', - ], - ], - 'DeleteDataAccessLabel' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAccessScope' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessLabel' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessScope' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAccessLabels' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAccessScopes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataAccessLabel' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}', - 'body' => 'data_access_label', - 'placeholders' => [ - 'data_access_label.name' => [ - 'getters' => [ - 'getDataAccessLabel', - 'getName', - ], - ], - ], - ], - 'UpdateDataAccessScope' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}', - 'body' => 'data_access_scope', - 'placeholders' => [ - 'data_access_scope.name' => [ - 'getters' => [ - 'getDataAccessScope', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json deleted file mode 100644 index 6919c5f205c8..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.DataTableService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_4_codes": [ - "UNAVAILABLE" - ], - "no_retry_5_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_4_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - }, - "no_retry_5_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "BulkCreateDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "BulkGetDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "BulkReplaceDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "BulkUpdateDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "CreateDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "CreateDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "GetDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "GetDataTableOperationErrors": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "GetDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "ListDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "ListDataTables": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "UpdateDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "UpdateDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php deleted file mode 100644 index 8e920d69d520..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php +++ /dev/null @@ -1,233 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataTableService' => [ - 'BulkCreateDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BulkGetDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkGetDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BulkReplaceDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BulkUpdateDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableOperationErrors' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableOperationErrors', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataTableRows' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataTableRows', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataTables' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataTables', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTablesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', - 'headerParams' => [ - [ - 'keyName' => 'data_table.name', - 'fieldAccessors' => [ - 'getDataTable', - 'getName', - ], - ], - ], - ], - 'UpdateDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', - 'headerParams' => [ - [ - 'keyName' => 'data_table_row.name', - 'fieldAccessors' => [ - 'getDataTableRow', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', - 'dataTable' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}', - 'dataTableOperationErrors' => 'projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}', - 'dataTableRow' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php deleted file mode 100644 index b16af4a2aa89..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php +++ /dev/null @@ -1,254 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataTableService' => [ - 'BulkCreateDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BulkGetDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BulkReplaceDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BulkUpdateDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataTable' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', - 'body' => 'data_table', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_table_id', - ], - ], - 'CreateDataTableRow' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', - 'body' => 'data_table_row', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataTable' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataTableRow' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTable' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableOperationErrors' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableRow' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataTableRows' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataTables' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataTable' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}', - 'body' => 'data_table', - 'placeholders' => [ - 'data_table.name' => [ - 'getters' => [ - 'getDataTable', - 'getName', - ], - ], - ], - ], - 'UpdateDataTableRow' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', - 'body' => 'data_table_row', - 'placeholders' => [ - 'data_table_row.name' => [ - 'getters' => [ - 'getDataTableRow', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json deleted file mode 100644 index 393bd5ff80f5..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.EntityService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_codes": [ - "UNAVAILABLE" - ], - "no_retry_4_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 90000, - "initial_rpc_timeout_millis": 90000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 90000, - "total_timeout_millis": 90000 - }, - "no_retry_4_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 90000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 90000, - "total_timeout_millis": 90000 - } - }, - "methods": { - "CreateWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "DeleteWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "GetWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListWatchlists": { - "timeout_millis": 90000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php deleted file mode 100644 index 3e621e9503b3..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php +++ /dev/null @@ -1,101 +0,0 @@ - [ - 'google.cloud.chronicle.v1.EntityService' => [ - 'CreateWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListWatchlists' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWatchlists', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListWatchlistsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', - 'headerParams' => [ - [ - 'keyName' => 'watchlist.name', - 'fieldAccessors' => [ - 'getWatchlist', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'watchlist' => 'projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php deleted file mode 100644 index eebd35bba736..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php +++ /dev/null @@ -1,134 +0,0 @@ - [ - 'google.cloud.chronicle.v1.EntityService' => [ - 'CreateWatchlist' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', - 'body' => 'watchlist', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteWatchlist' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWatchlist' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListWatchlists' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateWatchlist' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}', - 'body' => 'watchlist', - 'placeholders' => [ - 'watchlist.name' => [ - 'getters' => [ - 'getWatchlist', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json deleted file mode 100644 index 5de3bac58b09..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.InstanceService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetInstance": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php deleted file mode 100644 index 7f7d60f75b19..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php +++ /dev/null @@ -1,43 +0,0 @@ - [ - 'google.cloud.chronicle.v1.InstanceService' => [ - 'GetInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Instance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php deleted file mode 100644 index d4685582daa0..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php +++ /dev/null @@ -1,87 +0,0 @@ - [ - 'google.cloud.chronicle.v1.InstanceService' => [ - 'GetInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json deleted file mode 100644 index 731c05c97068..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.ReferenceListService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateReferenceList": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "GetReferenceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListReferenceLists": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateReferenceList": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php deleted file mode 100644 index 388793580afd..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php +++ /dev/null @@ -1,89 +0,0 @@ - [ - 'google.cloud.chronicle.v1.ReferenceListService' => [ - 'CreateReferenceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetReferenceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListReferenceLists' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReferenceLists', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListReferenceListsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateReferenceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', - 'headerParams' => [ - [ - 'keyName' => 'reference_list.name', - 'fieldAccessors' => [ - 'getReferenceList', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php deleted file mode 100644 index 9763cbfd0f4d..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php +++ /dev/null @@ -1,126 +0,0 @@ - [ - 'google.cloud.chronicle.v1.ReferenceListService' => [ - 'CreateReferenceList' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', - 'body' => 'reference_list', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'reference_list_id', - ], - ], - 'GetReferenceList' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListReferenceLists' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateReferenceList' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}', - 'body' => 'reference_list', - 'placeholders' => [ - 'reference_list.name' => [ - 'getters' => [ - 'getReferenceList', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json deleted file mode 100644 index 8bed0b79f6bd..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.RuleService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "retry_policy_3_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [], - "no_retry_3_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "retry_policy_3_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 600000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_3_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "CreateRetrohunt": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" - }, - "CreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "GetRetrohunt": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRuleDeployment": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "ListRetrohunts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRuleDeployments": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "ListRuleRevisions": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "ListRules": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "UpdateRule": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" - }, - "UpdateRuleDeployment": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php deleted file mode 100644 index 94e1a30f30f7..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php +++ /dev/null @@ -1,221 +0,0 @@ - [ - 'google.cloud.chronicle.v1.RuleService' => [ - 'CreateRetrohunt' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Chronicle\V1\Retrohunt', - 'metadataReturnType' => '\Google\Cloud\Chronicle\V1\RetrohuntMetadata', - 'initialPollDelayMillis' => '1000', - 'pollDelayMultiplier' => '2.0', - 'maxPollDelayMillis' => '10000', - 'totalPollTimeoutMillis' => '900000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRetrohunt' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Retrohunt', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRuleDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRetrohunts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRetrohunts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRetrohuntsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleDeployments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRuleDeployments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleDeploymentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleRevisions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleRevisionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRules' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRulesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'rule.name', - 'fieldAccessors' => [ - 'getRule', - 'getName', - ], - ], - ], - ], - 'UpdateRuleDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', - 'headerParams' => [ - [ - 'keyName' => 'rule_deployment.name', - 'fieldAccessors' => [ - 'getRuleDeployment', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', - 'retrohunt' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}', - 'rule' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}', - 'ruleDeployment' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php deleted file mode 100644 index 0da0c5c50559..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php +++ /dev/null @@ -1,217 +0,0 @@ - [ - 'google.cloud.chronicle.v1.RuleService' => [ - 'CreateRetrohunt' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', - 'body' => 'retrohunt', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRule' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', - 'body' => 'rule', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteRule' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRetrohunt' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRule' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRuleDeployment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRetrohunts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleDeployments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleRevisions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRules' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateRule' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}', - 'body' => 'rule', - 'placeholders' => [ - 'rule.name' => [ - 'getters' => [ - 'getRule', - 'getName', - ], - ], - ], - ], - 'UpdateRuleDeployment' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}', - 'body' => 'rule_deployment', - 'placeholders' => [ - 'rule_deployment.name' => [ - 'getters' => [ - 'getRuleDeployment', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php deleted file mode 100644 index bc7163b93a3f..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php +++ /dev/null @@ -1,866 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataAccessControlServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataAccessControlServiceClient($options); - } - - /** @test */ - public function createDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessLabel = new DataAccessLabel(); - $dataAccessLabelId = 'dataAccessLabelId-1688134612'; - $request = (new CreateDataAccessLabelRequest()) - ->setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - $response = $gapicClient->createDataAccessLabel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabel(); - $this->assertProtobufEquals($dataAccessLabel, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabelId(); - $this->assertProtobufEquals($dataAccessLabelId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessLabel = new DataAccessLabel(); - $dataAccessLabelId = 'dataAccessLabelId-1688134612'; - $request = (new CreateDataAccessLabelRequest()) - ->setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - try { - $gapicClient->createDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $allowAll = false; - $expectedResponse = new DataAccessScope(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $expectedResponse->setAllowAll($allowAll); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $dataAccessScopeId = 'dataAccessScopeId-216227636'; - $request = (new CreateDataAccessScopeRequest()) - ->setParent($formattedParent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - $response = $gapicClient->createDataAccessScope($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAccessScope(); - $this->assertProtobufEquals($dataAccessScope, $actualValue); - $actualValue = $actualRequestObject->getDataAccessScopeId(); - $this->assertProtobufEquals($dataAccessScopeId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $dataAccessScopeId = 'dataAccessScopeId-216227636'; - $request = (new CreateDataAccessScopeRequest()) - ->setParent($formattedParent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - try { - $gapicClient->createDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new DeleteDataAccessLabelRequest()) - ->setName($formattedName); - $gapicClient->deleteDataAccessLabel($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new DeleteDataAccessLabelRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new DeleteDataAccessScopeRequest()) - ->setName($formattedName); - $gapicClient->deleteDataAccessScope($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new DeleteDataAccessScopeRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new GetDataAccessLabelRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAccessLabel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new GetDataAccessLabelRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $allowAll = false; - $expectedResponse = new DataAccessScope(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $expectedResponse->setAllowAll($allowAll); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new GetDataAccessScopeRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAccessScope($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new GetDataAccessScopeRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessLabelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAccessLabelsElement = new DataAccessLabel(); - $dataAccessLabels = [ - $dataAccessLabelsElement, - ]; - $expectedResponse = new ListDataAccessLabelsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAccessLabels($dataAccessLabels); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessLabelsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAccessLabels($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAccessLabels()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessLabels', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessLabelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessLabelsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAccessLabels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessScopesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $globalDataAccessScopeGranted = true; - $nextPageToken = ''; - $dataAccessScopesElement = new DataAccessScope(); - $dataAccessScopes = [ - $dataAccessScopesElement, - ]; - $expectedResponse = new ListDataAccessScopesResponse(); - $expectedResponse->setGlobalDataAccessScopeGranted($globalDataAccessScopeGranted); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAccessScopes($dataAccessScopes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessScopesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAccessScopes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAccessScopes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessScopes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessScopesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessScopesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAccessScopes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $dataAccessLabel = new DataAccessLabel(); - $request = (new UpdateDataAccessLabelRequest()) - ->setDataAccessLabel($dataAccessLabel); - $response = $gapicClient->updateDataAccessLabel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getDataAccessLabel(); - $this->assertProtobufEquals($dataAccessLabel, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataAccessLabel = new DataAccessLabel(); - $request = (new UpdateDataAccessLabelRequest()) - ->setDataAccessLabel($dataAccessLabel); - try { - $gapicClient->updateDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $allowAll = false; - $expectedResponse = new DataAccessScope(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $expectedResponse->setAllowAll($allowAll); - $transport->addResponse($expectedResponse); - // Mock request - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $request = (new UpdateDataAccessScopeRequest()) - ->setDataAccessScope($dataAccessScope); - $response = $gapicClient->updateDataAccessScope($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getDataAccessScope(); - $this->assertProtobufEquals($dataAccessScope, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $request = (new UpdateDataAccessScopeRequest()) - ->setDataAccessScope($dataAccessScope); - try { - $gapicClient->updateDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessLabelAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessLabel = new DataAccessLabel(); - $dataAccessLabelId = 'dataAccessLabelId-1688134612'; - $request = (new CreateDataAccessLabelRequest()) - ->setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - $response = $gapicClient->createDataAccessLabelAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabel(); - $this->assertProtobufEquals($dataAccessLabel, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabelId(); - $this->assertProtobufEquals($dataAccessLabelId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php deleted file mode 100644 index 125ba2f76d68..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php +++ /dev/null @@ -1,1178 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataTableServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataTableServiceClient($options); - } - - /** @test */ - public function bulkCreateDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkCreateDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkCreateDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkCreateDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkCreateDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkGetDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkGetDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkGetDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkGetDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkGetDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkGetDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkGetDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkGetDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkReplaceDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkReplaceDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkReplaceDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkReplaceDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkReplaceDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkReplaceDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkReplaceDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkReplaceDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkUpdateDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkUpdateDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkUpdateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkUpdateDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkUpdateDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkUpdateDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkUpdateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkUpdateDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $dataTableUuid = 'dataTableUuid-1818199743'; - $ruleAssociationsCount = 1522562875; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $approximateRowCount = 297926913; - $expectedResponse = new DataTable(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDataTableUuid($dataTableUuid); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $expectedResponse->setApproximateRowCount($approximateRowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $dataTableId = 'dataTableId-319210463'; - $request = (new CreateDataTableRequest()) - ->setParent($formattedParent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - $response = $gapicClient->createDataTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataTable(); - $this->assertProtobufEquals($dataTable, $actualValue); - $actualValue = $actualRequestObject->getDataTableId(); - $this->assertProtobufEquals($dataTableId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $dataTableId = 'dataTableId-319210463'; - $request = (new CreateDataTableRequest()) - ->setParent($formattedParent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - try { - $gapicClient->createDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $expectedResponse = new DataTableRow(); - $expectedResponse->setName($name); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new CreateDataTableRowRequest()) - ->setParent($formattedParent) - ->setDataTableRow($dataTableRow); - $response = $gapicClient->createDataTableRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataTableRow(); - $this->assertProtobufEquals($dataTableRow, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new CreateDataTableRowRequest()) - ->setParent($formattedParent) - ->setDataTableRow($dataTableRow); - try { - $gapicClient->createDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new DeleteDataTableRequest()) - ->setName($formattedName); - $gapicClient->deleteDataTable($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new DeleteDataTableRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new DeleteDataTableRowRequest()) - ->setName($formattedName); - $gapicClient->deleteDataTableRow($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new DeleteDataTableRowRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $dataTableUuid = 'dataTableUuid-1818199743'; - $ruleAssociationsCount = 1522562875; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $approximateRowCount = 297926913; - $expectedResponse = new DataTable(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDataTableUuid($dataTableUuid); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $expectedResponse->setApproximateRowCount($approximateRowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new GetDataTableRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new GetDataTableRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableOperationErrorsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new DataTableOperationErrors(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); - $request = (new GetDataTableOperationErrorsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataTableOperationErrors($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableOperationErrors', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableOperationErrorsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); - $request = (new GetDataTableOperationErrorsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataTableOperationErrors($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $expectedResponse = new DataTableRow(); - $expectedResponse->setName($name2); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new GetDataTableRowRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataTableRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new GetDataTableRowRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataTableRowsElement = new DataTableRow(); - $dataTableRows = [ - $dataTableRowsElement, - ]; - $expectedResponse = new ListDataTableRowsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataTableRows($dataTableRows); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new ListDataTableRowsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataTableRows($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataTableRows()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new ListDataTableRowsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTablesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataTablesElement = new DataTable(); - $dataTables = [ - $dataTablesElement, - ]; - $expectedResponse = new ListDataTablesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataTables($dataTables); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataTablesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataTables($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataTables()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTables', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTablesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataTablesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataTables($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $dataTableUuid = 'dataTableUuid-1818199743'; - $ruleAssociationsCount = 1522562875; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $approximateRowCount = 297926913; - $expectedResponse = new DataTable(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDataTableUuid($dataTableUuid); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $expectedResponse->setApproximateRowCount($approximateRowCount); - $transport->addResponse($expectedResponse); - // Mock request - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $request = (new UpdateDataTableRequest()) - ->setDataTable($dataTable); - $response = $gapicClient->updateDataTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getDataTable(); - $this->assertProtobufEquals($dataTable, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $request = (new UpdateDataTableRequest()) - ->setDataTable($dataTable); - try { - $gapicClient->updateDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $expectedResponse = new DataTableRow(); - $expectedResponse->setName($name); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $transport->addResponse($expectedResponse); - // Mock request - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new UpdateDataTableRowRequest()) - ->setDataTableRow($dataTableRow); - $response = $gapicClient->updateDataTableRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getDataTableRow(); - $this->assertProtobufEquals($dataTableRow, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new UpdateDataTableRowRequest()) - ->setDataTableRow($dataTableRow); - try { - $gapicClient->updateDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkCreateDataTableRowsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkCreateDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkCreateDataTableRowsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php deleted file mode 100644 index ae91a174beb0..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php +++ /dev/null @@ -1,477 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EntityServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EntityServiceClient($options); - } - - /** @test */ - public function createWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - $response = $gapicClient->createWatchlist($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWatchlist(); - $this->assertProtobufEquals($watchlist, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - try { - $gapicClient->createWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new DeleteWatchlistRequest()) - ->setName($formattedName); - $gapicClient->deleteWatchlist($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/DeleteWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new DeleteWatchlistRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new GetWatchlistRequest()) - ->setName($formattedName); - $response = $gapicClient->getWatchlist($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/GetWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new GetWatchlistRequest()) - ->setName($formattedName); - try { - $gapicClient->getWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWatchlistsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $watchlistsElement = new Watchlist(); - $watchlists = [ - $watchlistsElement, - ]; - $expectedResponse = new ListWatchlistsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWatchlists($watchlists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListWatchlistsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWatchlists($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWatchlists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/ListWatchlists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWatchlistsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListWatchlistsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWatchlists($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new UpdateWatchlistRequest()) - ->setWatchlist($watchlist); - $response = $gapicClient->updateWatchlist($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/UpdateWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getWatchlist(); - $this->assertProtobufEquals($watchlist, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new UpdateWatchlistRequest()) - ->setWatchlist($watchlist); - try { - $gapicClient->updateWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWatchlistAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - $response = $gapicClient->createWatchlistAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWatchlist(); - $this->assertProtobufEquals($watchlist, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php deleted file mode 100644 index 24e45ff2e5ba..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php +++ /dev/null @@ -1,155 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return InstanceServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new InstanceServiceClient($options); - } - - /** @test */ - public function getInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - try { - $gapicClient->getInstance($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getInstanceAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php deleted file mode 100644 index 42584fb06abd..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php +++ /dev/null @@ -1,434 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ReferenceListServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ReferenceListServiceClient($options); - } - - /** @test */ - public function createReferenceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $referenceListId = 'referenceListId-1667170456'; - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - $response = $gapicClient->createReferenceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReferenceList(); - $this->assertProtobufEquals($referenceList, $actualValue); - $actualValue = $actualRequestObject->getReferenceListId(); - $this->assertProtobufEquals($referenceListId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReferenceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $referenceListId = 'referenceListId-1667170456'; - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - try { - $gapicClient->createReferenceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReferenceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); - $request = (new GetReferenceListRequest()) - ->setName($formattedName); - $response = $gapicClient->getReferenceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/GetReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReferenceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); - $request = (new GetReferenceListRequest()) - ->setName($formattedName); - try { - $gapicClient->getReferenceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReferenceListsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $referenceListsElement = new ReferenceList(); - $referenceLists = [ - $referenceListsElement, - ]; - $expectedResponse = new ListReferenceListsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReferenceLists($referenceLists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListReferenceListsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReferenceLists($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReferenceLists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/ListReferenceLists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReferenceListsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListReferenceListsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReferenceLists($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReferenceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $request = (new UpdateReferenceListRequest()) - ->setReferenceList($referenceList); - $response = $gapicClient->updateReferenceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/UpdateReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getReferenceList(); - $this->assertProtobufEquals($referenceList, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReferenceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $request = (new UpdateReferenceListRequest()) - ->setReferenceList($referenceList); - try { - $gapicClient->updateReferenceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReferenceListAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $referenceListId = 'referenceListId-1667170456'; - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - $response = $gapicClient->createReferenceListAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReferenceList(); - $this->assertProtobufEquals($referenceList, $actualValue); - $actualValue = $actualRequestObject->getReferenceListId(); - $this->assertProtobufEquals($referenceListId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php deleted file mode 100644 index 157ee8fd1f14..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php +++ /dev/null @@ -1,1100 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RuleServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RuleServiceClient($options); - } - - /** @test */ - public function createRetrohuntTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRetrohuntTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $progressPercentage = 4432484; - $expectedResponse = new Retrohunt(); - $expectedResponse->setName($name); - $expectedResponse->setProgressPercentage($progressPercentage); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRetrohuntTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $retrohunt = new Retrohunt(); - $retrohuntProcessInterval = new Interval(); - $retrohunt->setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - $response = $gapicClient->createRetrohunt($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRetrohunt(); - $this->assertProtobufEquals($retrohunt, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRetrohuntExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRetrohuntTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $retrohunt = new Retrohunt(); - $retrohuntProcessInterval = new Interval(); - $retrohunt->setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - $response = $gapicClient->createRetrohunt($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $revisionId = 'revisionId513861631'; - $displayName = 'displayName1615086568'; - $text = 'text3556653'; - $author = 'author-1406328437'; - $etag = 'etag3123477'; - $scope = 'scope109264468'; - $nearRealTimeLiveRuleEligible = false; - $expectedResponse = new Rule(); - $expectedResponse->setName($name); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setText($text); - $expectedResponse->setAuthor($author); - $expectedResponse->setEtag($etag); - $expectedResponse->setScope($scope); - $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $rule = new Rule(); - $request = (new CreateRuleRequest()) - ->setParent($formattedParent) - ->setRule($rule); - $response = $gapicClient->createRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRule(); - $this->assertProtobufEquals($rule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $rule = new Rule(); - $request = (new CreateRuleRequest()) - ->setParent($formattedParent) - ->setRule($rule); - try { - $gapicClient->createRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new DeleteRuleRequest()) - ->setName($formattedName); - $gapicClient->deleteRule($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/DeleteRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new DeleteRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRetrohuntTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $progressPercentage = 4432484; - $expectedResponse = new Retrohunt(); - $expectedResponse->setName($name2); - $expectedResponse->setProgressPercentage($progressPercentage); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); - $request = (new GetRetrohuntRequest()) - ->setName($formattedName); - $response = $gapicClient->getRetrohunt($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRetrohunt', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRetrohuntExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); - $request = (new GetRetrohuntRequest()) - ->setName($formattedName); - try { - $gapicClient->getRetrohunt($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $revisionId = 'revisionId513861631'; - $displayName = 'displayName1615086568'; - $text = 'text3556653'; - $author = 'author-1406328437'; - $etag = 'etag3123477'; - $scope = 'scope109264468'; - $nearRealTimeLiveRuleEligible = false; - $expectedResponse = new Rule(); - $expectedResponse->setName($name2); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setText($text); - $expectedResponse->setAuthor($author); - $expectedResponse->setEtag($etag); - $expectedResponse->setScope($scope); - $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleRequest()) - ->setName($formattedName); - $response = $gapicClient->getRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->getRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $enabled = false; - $alerting = true; - $archived = true; - $expectedResponse = new RuleDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setEnabled($enabled); - $expectedResponse->setAlerting($alerting); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->getRuleDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRuleDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->getRuleDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRetrohuntsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $retrohuntsElement = new Retrohunt(); - $retrohunts = [ - $retrohuntsElement, - ]; - $expectedResponse = new ListRetrohuntsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRetrohunts($retrohunts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRetrohuntsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRetrohunts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRetrohunts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRetrohunts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRetrohuntsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRetrohuntsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRetrohunts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleDeploymentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $ruleDeploymentsElement = new RuleDeployment(); - $ruleDeployments = [ - $ruleDeploymentsElement, - ]; - $expectedResponse = new ListRuleDeploymentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRuleDeployments($ruleDeployments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleDeploymentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRuleDeployments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRuleDeployments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleDeployments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleDeploymentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleDeploymentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRuleDeployments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleRevisionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rulesElement = new Rule(); - $rules = [ - $rulesElement, - ]; - $expectedResponse = new ListRuleRevisionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRules($rules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleRevisionsRequest()) - ->setName($formattedName); - $response = $gapicClient->listRuleRevisions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleRevisions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleRevisionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleRevisionsRequest()) - ->setName($formattedName); - try { - $gapicClient->listRuleRevisions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rulesElement = new Rule(); - $rules = [ - $rulesElement, - ]; - $expectedResponse = new ListRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRules($rules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListRulesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRules($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListRulesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $revisionId = 'revisionId513861631'; - $displayName = 'displayName1615086568'; - $text = 'text3556653'; - $author = 'author-1406328437'; - $etag = 'etag3123477'; - $scope = 'scope109264468'; - $nearRealTimeLiveRuleEligible = false; - $expectedResponse = new Rule(); - $expectedResponse->setName($name); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setText($text); - $expectedResponse->setAuthor($author); - $expectedResponse->setEtag($etag); - $expectedResponse->setScope($scope); - $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); - $transport->addResponse($expectedResponse); - // Mock request - $rule = new Rule(); - $request = (new UpdateRuleRequest()) - ->setRule($rule); - $response = $gapicClient->updateRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getRule(); - $this->assertProtobufEquals($rule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $rule = new Rule(); - $request = (new UpdateRuleRequest()) - ->setRule($rule); - try { - $gapicClient->updateRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $enabled = false; - $alerting = true; - $archived = true; - $expectedResponse = new RuleDeployment(); - $expectedResponse->setName($name); - $expectedResponse->setEnabled($enabled); - $expectedResponse->setAlerting($alerting); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $ruleDeployment = new RuleDeployment(); - $ruleDeploymentName = 'ruleDeploymentName648362252'; - $ruleDeployment->setName($ruleDeploymentName); - $updateMask = new FieldMask(); - $request = (new UpdateRuleDeploymentRequest()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateRuleDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRuleDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getRuleDeployment(); - $this->assertProtobufEquals($ruleDeployment, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $ruleDeployment = new RuleDeployment(); - $ruleDeploymentName = 'ruleDeploymentName648362252'; - $ruleDeployment->setName($ruleDeploymentName); - $updateMask = new FieldMask(); - $request = (new UpdateRuleDeploymentRequest()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateRuleDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRetrohuntAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRetrohuntTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $progressPercentage = 4432484; - $expectedResponse = new Retrohunt(); - $expectedResponse->setName($name); - $expectedResponse->setProgressPercentage($progressPercentage); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRetrohuntTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $retrohunt = new Retrohunt(); - $retrohuntProcessInterval = new Interval(); - $retrohunt->setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - $response = $gapicClient->createRetrohuntAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRetrohunt(); - $this->assertProtobufEquals($retrohunt, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} From 27a46130fea05200ec8d2ed398506e5cf0bdc091 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 30 Apr 2026 17:13:54 +0000 Subject: [PATCH 3/4] feat: Adding Client Libraries for BigQueryExportService PiperOrigin-RevId: 908082452 Source-Link: https://github.com/googleapis/googleapis/commit/2638026851b9110c280d75338581a752a4271340 Source-Link: https://github.com/googleapis/googleapis-gen/commit/62936673bdee50eeded2ff18b7a96ea8b7ec6d60 Copy-Tag: eyJwIjoiQ2hyb25pY2xlLy5Pd2xCb3QueWFtbCIsImgiOiI2MjkzNjY3M2JkZWU1MGVlZGVkMmZmMThiN2E5NmVhOGI3ZWM2ZDYwIn0= --- .../Cloud/Chronicle/V1/BigQueryExport.php | 30 + .../Cloud/Chronicle/V1/DashboardChart.php | 29 + .../Cloud/Chronicle/V1/DashboardQuery.php | 32 + .../Cloud/Chronicle/V1/DataAccessControl.php | 31 + .../Google/Cloud/Chronicle/V1/DataTable.php | 32 + .../Google/Cloud/Chronicle/V1/Entity.php | 31 + .../Chronicle/V1/FeaturedContentMetadata.php | 26 + .../V1/FeaturedContentNativeDashboard.php | 30 + .../Google/Cloud/Chronicle/V1/Instance.php | 28 + .../Cloud/Chronicle/V1/NativeDashboard.php | 34 + .../Cloud/Chronicle/V1/ReferenceList.php | 30 + .../Google/Cloud/Chronicle/V1/Rule.php | 33 + .../Cloud/Chronicle/V1/AddChartRequest.php | 227 ++++ .../Cloud/Chronicle/V1/AddChartResponse.php | 121 ++ .../Chronicle/V1/AdvancedFilterConfig.php | 339 +++++ .../V1/AdvancedFilterConfig/ManualOptions.php | 71 + .../V1/AdvancedFilterConfig/QueryOptions.php | 184 +++ .../V1/AdvancedFilterConfig/ValueSource.php | 111 ++ .../Google/Cloud/Chronicle/V1/AxisType.php | 63 + .../V1/BatchGetDashboardChartsRequest.php | 138 ++ .../V1/BatchGetDashboardChartsResponse.php | 67 + .../Cloud/Chronicle/V1/BigQueryExport.php | 369 ++++++ .../Chronicle/V1/BigQueryExportPackage.php | 61 + .../V1/BulkCreateDataTableRowsRequest.php | 137 ++ .../V1/BulkCreateDataTableRowsResponse.php | 67 + .../V1/BulkGetDataTableRowsRequest.php | 132 ++ .../V1/BulkGetDataTableRowsResponse.php | 67 + .../V1/BulkReplaceDataTableRowsRequest.php | 142 ++ .../V1/BulkReplaceDataTableRowsResponse.php | 67 + .../V1/BulkUpdateDataTableRowsRequest.php | 132 ++ .../V1/BulkUpdateDataTableRowsResponse.php | 67 + .../src/Google/Cloud/Chronicle/V1/Button.php | 185 +++ .../Cloud/Chronicle/V1/Button/Properties.php | 85 ++ .../Google/Cloud/Chronicle/V1/ButtonStyle.php | 58 + .../Cloud/Chronicle/V1/ColumnMetadata.php | 383 ++++++ .../Chronicle/V1/CompilationDiagnostic.php | 193 +++ .../V1/CompilationDiagnostic/Severity.php | 61 + .../Chronicle/V1/CompilationPosition.php | 170 +++ .../V1/CreateDataAccessLabelRequest.php | 183 +++ .../V1/CreateDataAccessScopeRequest.php | 178 +++ .../Chronicle/V1/CreateDataTableRequest.php | 188 +++ .../V1/CreateDataTableRowRequest.php | 137 ++ .../V1/CreateNativeDashboardRequest.php | 132 ++ .../V1/CreateReferenceListRequest.php | 193 +++ .../Chronicle/V1/CreateRetrohuntRequest.php | 137 ++ .../Cloud/Chronicle/V1/CreateRuleRequest.php | 132 ++ .../Chronicle/V1/CreateWatchlistRequest.php | 184 +++ .../Cloud/Chronicle/V1/DashboardAccess.php | 61 + .../Cloud/Chronicle/V1/DashboardChart.php | 431 ++++++ .../V1/DashboardChart/ChartDatasource.php | 101 ++ .../V1/DashboardChart/DrillDownConfig.php | 101 ++ .../DrillDownConfig/DrillDown.php | 176 +++ .../DrillDown/CustomDrillDownSettings.php | 213 +++ .../DrillDownExternalLink.php | 101 ++ .../DrillDownFilter.php | 67 + .../DrillDownDashboardFilter.php | 105 ++ .../DrillDownQuery.php | 67 + .../DrillDown/DefaultDrillDownSettings.php | 67 + .../V1/DashboardChart/Visualization.php | 533 ++++++++ .../V1/DashboardChart/Visualization/Axis.php | 181 +++ .../Visualization/ColumnDef.php | 101 ++ .../ColumnRenderTypeSettings.php | 102 ++ .../Visualization/ColumnTooltipSettings.php | 135 ++ .../Visualization/GoogleMapsConfig.php | 203 +++ .../GoogleMapsConfig/DataSettings.php | 135 ++ .../GoogleMapsConfig/MapPosition.php | 177 +++ .../GoogleMapsConfig/PointSettings.php | 105 ++ .../DashboardChart/Visualization/Legend.php | 328 +++++ .../DashboardChart/Visualization/Series.php | 627 +++++++++ .../Visualization/Series/AreaStyle.php | 271 ++++ .../Visualization/Series/ChartSliceColor.php | 111 ++ .../Visualization/Series/DataLabel.php | 67 + .../Visualization/Series/Encode.php | 161 +++ .../Visualization/Series/GaugeConfig.php | 155 +++ .../Visualization/Series/GaugeValue.php | 101 ++ .../Visualization/Series/ItemColors.php | 67 + .../Visualization/Series/ItemStyle.php | 135 ++ .../Series/MetricTrendConfig.php | 177 +++ .../Series/UserSelectedValues.php | 101 ++ .../Visualization/TableConfig.php | 135 ++ .../DashboardChart/Visualization/Tooltip.php | 85 ++ .../Visualization/VisualMap.php | 106 ++ .../VisualMap/VisualMapPiece.php | 194 +++ .../Chronicle/V1/DashboardDefinition.php | 136 ++ .../V1/DashboardDefinition/ChartConfig.php | 131 ++ .../ChartConfig/ChartLayout.php | 161 +++ .../Cloud/Chronicle/V1/DashboardFilter.php | 410 ++++++ .../Cloud/Chronicle/V1/DashboardQuery.php | 221 ++++ .../Chronicle/V1/DashboardQuery/Input.php | 108 ++ .../V1/DashboardQuery/Input/RelativeTime.php | 87 ++ .../Cloud/Chronicle/V1/DashboardType.php | 86 ++ .../Cloud/Chronicle/V1/DashboardUserData.php | 111 ++ .../Cloud/Chronicle/V1/DataAccessLabel.php | 337 +++++ .../Chronicle/V1/DataAccessLabelReference.php | 227 ++++ .../Cloud/Chronicle/V1/DataAccessScope.php | 470 +++++++ .../Google/Cloud/Chronicle/V1/DataSource.php | 143 ++ .../Chronicle/V1/DataSourceExportSettings.php | 217 +++ .../Google/Cloud/Chronicle/V1/DataTable.php | 585 ++++++++ .../Chronicle/V1/DataTableColumnInfo.php | 274 ++++ .../DataTableColumnType.php | 76 ++ .../Chronicle/V1/DataTableOperationErrors.php | 113 ++ .../Cloud/Chronicle/V1/DataTableRow.php | 235 ++++ .../Cloud/Chronicle/V1/DataTableScopeInfo.php | 79 ++ .../Chronicle/V1/DataTableUpdateSource.php | 68 + .../V1/DeleteDataAccessLabelRequest.php | 91 ++ .../V1/DeleteDataAccessScopeRequest.php | 91 ++ .../Chronicle/V1/DeleteDataTableRequest.php | 137 ++ .../V1/DeleteDataTableRowRequest.php | 91 ++ .../V1/DeleteNativeDashboardRequest.php | 91 ++ .../Cloud/Chronicle/V1/DeleteRuleRequest.php | 151 +++ .../Chronicle/V1/DeleteWatchlistRequest.php | 137 ++ .../Chronicle/V1/DuplicateChartRequest.php | 125 ++ .../Chronicle/V1/DuplicateChartResponse.php | 121 ++ .../V1/DuplicateNativeDashboardRequest.php | 142 ++ .../Cloud/Chronicle/V1/EditChartRequest.php | 318 +++++ .../Cloud/Chronicle/V1/EditChartResponse.php | 121 ++ .../V1/ExecuteDashboardQueryRequest.php | 257 ++++ .../V1/ExecuteDashboardQueryResponse.php | 261 ++++ .../ColumnData.php | 143 ++ .../ColumnType.php | 108 ++ .../ColumnType/PBList.php | 60 + .../ColumnValue.php | 410 ++++++ .../ColumnValue/ValueMetadata.php | 140 ++ .../V1/ExportNativeDashboardsRequest.php | 122 ++ .../V1/ExportNativeDashboardsResponse.php | 75 ++ .../Chronicle/V1/FeaturedContentMetadata.php | 445 +++++++ .../ContentSourceType.php | 68 + .../V1/FeaturedContentNativeDashboard.php | 163 +++ .../Cloud/Chronicle/V1/FilterOperator.php | 139 ++ .../Chronicle/V1/FilterOperatorAndValues.php | 107 ++ .../Chronicle/V1/GetBigQueryExportRequest.php | 91 ++ .../Chronicle/V1/GetDashboardChartRequest.php | 91 ++ .../Chronicle/V1/GetDashboardQueryRequest.php | 91 ++ .../V1/GetDataAccessLabelRequest.php | 91 ++ .../V1/GetDataAccessScopeRequest.php | 91 ++ .../V1/GetDataTableOperationErrorsRequest.php | 91 ++ .../Chronicle/V1/GetDataTableRequest.php | 91 ++ .../Chronicle/V1/GetDataTableRowRequest.php | 91 ++ ...tFeaturedContentNativeDashboardRequest.php | 91 ++ .../Cloud/Chronicle/V1/GetInstanceRequest.php | 91 ++ .../V1/GetNativeDashboardRequest.php | 129 ++ .../Chronicle/V1/GetReferenceListRequest.php | 129 ++ .../Chronicle/V1/GetRetrohuntRequest.php | 91 ++ .../Chronicle/V1/GetRuleDeploymentRequest.php | 91 ++ .../Cloud/Chronicle/V1/GetRuleRequest.php | 129 ++ .../Chronicle/V1/GetWatchlistRequest.php | 96 ++ .../Cloud/Chronicle/V1/ImportExportStatus.php | 111 ++ .../V1/ImportNativeDashboardsInlineSource.php | 67 + .../V1/ImportNativeDashboardsRequest.php | 132 ++ .../V1/ImportNativeDashboardsResponse.php | 91 ++ .../Google/Cloud/Chronicle/V1/InAppLink.php | 135 ++ .../Cloud/Chronicle/V1/IngestionLabel.php | 109 ++ .../Cloud/Chronicle/V1/InlineDestination.php | 67 + .../Google/Cloud/Chronicle/V1/InputsUsed.php | 137 ++ ...lFeaturedContentNativeDashboardRequest.php | 135 ++ ...FeaturedContentNativeDashboardResponse.php | 75 ++ .../Google/Cloud/Chronicle/V1/Instance.php | 71 + .../Cloud/Chronicle/V1/LanguageFeature.php | 70 + .../Chronicle/V1/LatestExportJobState.php | 61 + .../Google/Cloud/Chronicle/V1/LegendAlign.php | 58 + .../Cloud/Chronicle/V1/LegendOrient.php | 53 + .../V1/ListDataAccessLabelsRequest.php | 220 +++ .../V1/ListDataAccessLabelsResponse.php | 105 ++ .../V1/ListDataAccessScopesRequest.php | 220 +++ .../V1/ListDataAccessScopesResponse.php | 149 +++ .../Chronicle/V1/ListDataTableRowsRequest.php | 247 ++++ .../V1/ListDataTableRowsResponse.php | 105 ++ .../Chronicle/V1/ListDataTablesRequest.php | 220 +++ .../Chronicle/V1/ListDataTablesResponse.php | 105 ++ ...FeaturedContentNativeDashboardsRequest.php | 277 ++++ ...eaturedContentNativeDashboardsResponse.php | 109 ++ .../V1/ListNativeDashboardsRequest.php | 208 +++ .../V1/ListNativeDashboardsResponse.php | 105 ++ .../V1/ListReferenceListsRequest.php | 221 ++++ .../V1/ListReferenceListsResponse.php | 109 ++ .../Chronicle/V1/ListRetrohuntsRequest.php | 225 ++++ .../Chronicle/V1/ListRetrohuntsResponse.php | 105 ++ .../V1/ListRuleDeploymentsRequest.php | 230 ++++ .../V1/ListRuleDeploymentsResponse.php | 105 ++ .../Chronicle/V1/ListRuleRevisionsRequest.php | 221 ++++ .../V1/ListRuleRevisionsResponse.php | 105 ++ .../Cloud/Chronicle/V1/ListRulesRequest.php | 263 ++++ .../Cloud/Chronicle/V1/ListRulesResponse.php | 105 ++ .../Chronicle/V1/ListWatchlistsRequest.php | 232 ++++ .../Chronicle/V1/ListWatchlistsResponse.php | 105 ++ .../Google/Cloud/Chronicle/V1/Markdown.php | 111 ++ .../V1/Markdown/MarkdownProperties.php | 67 + .../Cloud/Chronicle/V1/MetricDisplayTrend.php | 68 + .../Cloud/Chronicle/V1/MetricFormat.php | 61 + .../Cloud/Chronicle/V1/MetricTrendType.php | 61 + .../Cloud/Chronicle/V1/NativeDashboard.php | 493 +++++++ .../Chronicle/V1/NativeDashboardView.php | 62 + .../NativeDashboardWithChartsAndQueries.php | 145 ++ .../Google/Cloud/Chronicle/V1/PlotMode.php | 68 + .../Cloud/Chronicle/V1/PointSizeType.php | 61 + .../V1/ProvisionBigQueryExportRequest.php | 86 ++ .../Cloud/Chronicle/V1/QueryRuntimeError.php | 203 +++ .../V1/QueryRuntimeError/ErrorSeverity.php | 61 + .../V1/QueryRuntimeError/MetadataKey.php | 54 + .../QueryRuntimeErrorMetadata.php | 101 ++ .../V1/QueryRuntimeError/WarningReason.php | 68 + .../Cloud/Chronicle/V1/ReferenceList.php | 409 ++++++ .../Cloud/Chronicle/V1/ReferenceListEntry.php | 67 + .../Cloud/Chronicle/V1/ReferenceListScope.php | 75 ++ .../Chronicle/V1/ReferenceListSyntaxType.php | 68 + .../Cloud/Chronicle/V1/ReferenceListView.php | 67 + .../Cloud/Chronicle/V1/RemoveChartRequest.php | 125 ++ .../Google/Cloud/Chronicle/V1/RenderType.php | 68 + .../Google/Cloud/Chronicle/V1/Retrohunt.php | 255 ++++ .../Cloud/Chronicle/V1/Retrohunt/State.php | 75 ++ .../Cloud/Chronicle/V1/RetrohuntMetadata.php | 157 +++ .../src/Google/Cloud/Chronicle/V1/Rule.php | 810 ++++++++++++ .../Chronicle/V1/Rule/CompilationState.php | 63 + .../Cloud/Chronicle/V1/RuleDeployment.php | 477 +++++++ .../V1/RuleDeployment/ExecutionState.php | 72 + .../Google/Cloud/Chronicle/V1/RuleType.php | 62 + .../Google/Cloud/Chronicle/V1/RuleView.php | 77 ++ .../Cloud/Chronicle/V1/RunFrequency.php | 69 + .../Google/Cloud/Chronicle/V1/ScopeInfo.php | 81 ++ .../Chronicle/V1/SeriesStackStrategy.php | 63 + .../Google/Cloud/Chronicle/V1/SeriesType.php | 84 ++ .../Google/Cloud/Chronicle/V1/Severity.php | 71 + .../Google/Cloud/Chronicle/V1/TileType.php | 69 + .../Google/Cloud/Chronicle/V1/TimeUnit.php | 82 ++ .../Cloud/Chronicle/V1/TimestampMetadata.php | 203 +++ .../Cloud/Chronicle/V1/ToolTipTrigger.php | 58 + .../V1/UpdateBigQueryExportRequest.php | 146 ++ .../V1/UpdateDataAccessLabelRequest.php | 167 +++ .../V1/UpdateDataAccessScopeRequest.php | 172 +++ .../Chronicle/V1/UpdateDataTableRequest.php | 161 +++ .../V1/UpdateDataTableRowRequest.php | 156 +++ .../V1/UpdateNativeDashboardRequest.php | 197 +++ .../V1/UpdateReferenceListRequest.php | 167 +++ .../V1/UpdateRuleDeploymentRequest.php | 152 +++ .../Cloud/Chronicle/V1/UpdateRuleRequest.php | 157 +++ .../Chronicle/V1/UpdateWatchlistRequest.php | 152 +++ .../Cloud/Chronicle/V1/VisualMapType.php | 62 + .../Google/Cloud/Chronicle/V1/Watchlist.php | 414 ++++++ .../Chronicle/V1/Watchlist/EntityCount.php | 101 ++ .../Watchlist/EntityPopulationMechanism.php | 75 ++ .../EntityPopulationMechanism/Manual.php | 33 + .../Chronicle/V1/WatchlistUserPreferences.php | 67 + .../get_big_query_export.php | 77 ++ .../provision_big_query_export.php | 78 ++ .../update_big_query_export.php | 59 + .../batch_get_dashboard_charts.php | 91 ++ .../get_dashboard_chart.php | 78 ++ .../execute_dashboard_query.php | 85 ++ .../get_dashboard_query.php | 78 ++ .../create_data_access_label.php | 89 ++ .../create_data_access_scope.php | 105 ++ .../delete_data_access_label.php | 78 ++ .../delete_data_access_scope.php | 76 ++ .../get_data_access_label.php | 78 ++ .../get_data_access_scope.php | 78 ++ .../list_data_access_labels.php | 81 ++ .../list_data_access_scopes.php | 81 ++ .../update_data_access_label.php | 59 + .../update_data_access_scope.php | 79 ++ .../bulk_create_data_table_rows.php | 108 ++ .../bulk_get_data_table_rows.php | 96 ++ .../bulk_replace_data_table_rows.php | 108 ++ .../bulk_update_data_table_rows.php | 92 ++ .../create_data_table.php | 87 ++ .../create_data_table_row.php | 87 ++ .../delete_data_table.php | 76 ++ .../delete_data_table_row.php | 77 ++ .../DataTableServiceClient/get_data_table.php | 78 ++ .../get_data_table_operation_errors.php | 78 ++ .../get_data_table_row.php | 79 ++ .../list_data_table_rows.php | 83 ++ .../list_data_tables.php | 77 ++ .../update_data_table.php | 72 + .../update_data_table_row.php | 74 ++ .../EntityServiceClient/create_watchlist.php | 83 ++ .../EntityServiceClient/delete_watchlist.php | 76 ++ .../V1/EntityServiceClient/get_watchlist.php | 79 ++ .../EntityServiceClient/list_watchlists.php | 77 ++ .../EntityServiceClient/update_watchlist.php | 77 ++ .../get_featured_content_native_dashboard.php | 80 ++ ...tall_featured_content_native_dashboard.php | 80 ++ ...ist_featured_content_native_dashboards.php | 84 ++ .../V1/InstanceServiceClient/get_instance.php | 73 + .../add_chart.php | 90 ++ .../create_native_dashboard.php | 83 ++ .../delete_native_dashboard.php | 76 ++ .../duplicate_chart.php | 87 ++ .../duplicate_native_dashboard.php | 85 ++ .../edit_chart.php | 81 ++ .../export_native_dashboards.php | 80 ++ .../get_native_dashboard.php | 78 ++ .../import_native_dashboards.php | 82 ++ .../list_native_dashboards.php | 81 ++ .../remove_chart.php | 87 ++ .../update_native_dashboard.php | 75 ++ .../create_reference_list.php | 111 ++ .../get_reference_list.php | 78 ++ .../list_reference_lists.php | 82 ++ .../update_reference_list.php | 90 ++ .../V1/RuleServiceClient/create_retrohunt.php | 90 ++ .../V1/RuleServiceClient/create_rule.php | 74 ++ .../V1/RuleServiceClient/delete_rule.php | 73 + .../V1/RuleServiceClient/get_retrohunt.php | 79 ++ .../samples/V1/RuleServiceClient/get_rule.php | 73 + .../RuleServiceClient/get_rule_deployment.php | 78 ++ .../V1/RuleServiceClient/list_retrohunts.php | 78 ++ .../list_rule_deployments.php | 79 ++ .../RuleServiceClient/list_rule_revisions.php | 78 ++ .../V1/RuleServiceClient/list_rules.php | 78 ++ .../V1/RuleServiceClient/update_rule.php | 59 + .../update_rule_deployment.php | 83 ++ .../V1/Client/BigQueryExportServiceClient.php | 338 +++++ .../V1/Client/DashboardChartServiceClient.php | 310 +++++ .../V1/Client/DashboardQueryServiceClient.php | 332 +++++ .../Client/DataAccessControlServiceClient.php | 572 ++++++++ .../src/V1/Client/DataTableServiceClient.php | 747 +++++++++++ .../v1/src/V1/Client/EntityServiceClient.php | 389 ++++++ ...redContentNativeDashboardServiceClient.php | 431 ++++++ .../src/V1/Client/InstanceServiceClient.php | 255 ++++ .../Client/NativeDashboardServiceClient.php | 644 +++++++++ .../V1/Client/ReferenceListServiceClient.php | 366 +++++ .../v1/src/V1/Client/RuleServiceClient.php | 733 ++++++++++ .../Chronicle/v1/src/V1/gapic_metadata.json | 453 +++++++ ...ig_query_export_service_client_config.json | 49 + ...query_export_service_descriptor_config.php | 69 + ...uery_export_service_rest_client_config.php | 112 ++ ...dashboard_chart_service_client_config.json | 44 + ...hboard_chart_service_descriptor_config.php | 56 + ...board_chart_service_rest_client_config.php | 98 ++ ...dashboard_query_service_client_config.json | 54 + ...hboard_query_service_descriptor_config.php | 57 + ...board_query_service_rest_client_config.php | 99 ++ ..._access_control_service_client_config.json | 94 ++ ...cess_control_service_descriptor_config.php | 171 +++ ...ess_control_service_rest_client_config.php | 198 +++ .../data_table_service_client_config.json | 119 ++ .../data_table_service_descriptor_config.php | 233 ++++ .../data_table_service_rest_client_config.php | 254 ++++ .../entity_service_client_config.json | 69 + .../entity_service_descriptor_config.php | 101 ++ .../entity_service_rest_client_config.php | 134 ++ ...ative_dashboard_service_client_config.json | 59 + ...ve_dashboard_service_descriptor_config.php | 80 ++ ...e_dashboard_service_rest_client_config.php | 110 ++ .../instance_service_client_config.json | 39 + .../instance_service_descriptor_config.php | 43 + .../instance_service_rest_client_config.php | 87 ++ ...ative_dashboard_service_client_config.json | 104 ++ ...ve_dashboard_service_descriptor_config.php | 187 +++ ...e_dashboard_service_rest_client_config.php | 221 ++++ .../reference_list_service_client_config.json | 64 + ...ference_list_service_descriptor_config.php | 89 ++ ...erence_list_service_rest_client_config.php | 126 ++ .../resources/rule_service_client_config.json | 126 ++ .../rule_service_descriptor_config.php | 221 ++++ .../rule_service_rest_client_config.php | 217 +++ .../BigQueryExportServiceClientTest.php | 293 ++++ .../DashboardChartServiceClientTest.php | 241 ++++ .../DashboardQueryServiceClientTest.php | 246 ++++ .../DataAccessControlServiceClientTest.php | 866 ++++++++++++ .../V1/Client/DataTableServiceClientTest.php | 1178 +++++++++++++++++ .../V1/Client/EntityServiceClientTest.php | 477 +++++++ ...ontentNativeDashboardServiceClientTest.php | 295 +++++ .../V1/Client/InstanceServiceClientTest.php | 155 +++ .../NativeDashboardServiceClientTest.php | 1021 ++++++++++++++ .../Client/ReferenceListServiceClientTest.php | 434 ++++++ .../Unit/V1/Client/RuleServiceClientTest.php | 1100 +++++++++++++++ 367 files changed, 56057 insertions(+) create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/BigQueryExport.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/NativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExport.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExportPackage.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSourceExportSettings.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetBigQueryExportRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LatestExportJobState.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ProvisionBigQueryExportRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateBigQueryExportRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php create mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/get_big_query_export.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/update_big_query_export.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php create mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/BigQueryExportServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php create mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php create mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/BigQueryExport.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/BigQueryExport.php new file mode 100644 index 000000000000..5fc67fbcca61 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/BigQueryExport.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\x9C\x17\x0A0google/cloud/chronicle/v1/big_query_export.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xF9\x05\x0A\x0EBigQueryExport\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Bprovisioned\x18\x02 \x01(\x08B\x03\xE0A\x03\x12W\x0A\x18big_query_export_package\x18\x03 \x01(\x0E20.google.cloud.chronicle.v1.BigQueryExportPackageB\x03\xE0A\x03\x12W\x0A\x15entity_graph_settings\x18\x04 \x01(\x0B23.google.cloud.chronicle.v1.DataSourceExportSettingsB\x03\xE0A\x01\x12V\x0A\x14ioc_matches_settings\x18\x05 \x01(\x0B23.google.cloud.chronicle.v1.DataSourceExportSettingsB\x03\xE0A\x01\x12Z\x0A\x18rule_detections_settings\x18\x06 \x01(\x0B23.google.cloud.chronicle.v1.DataSourceExportSettingsB\x03\xE0A\x01\x12`\x0A\x1Eudm_events_aggregates_settings\x18\x07 \x01(\x0B23.google.cloud.chronicle.v1.DataSourceExportSettingsB\x03\xE0A\x01\x12U\x0A\x13udm_events_settings\x18\x08 \x01(\x0B23.google.cloud.chronicle.v1.DataSourceExportSettingsB\x03\xE0A\x01:\x9A\x01\xEAA\x96\x01\x0A'chronicle.googleapis.com/BigQueryExport\x12Kprojects/{project}/locations/{location}/instances/{instance}/bigQueryExport*\x0EbigQueryExport2\x0EbigQueryExport\"\xFC\x01\x0A\x18DataSourceExportSettings\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x02\x12\x1B\x0A\x0Eretention_days\x18\x02 \x01(\x05B\x03\xE0A\x02\x12U\x0A\x17latest_export_job_state\x18\x03 \x01(\x0E2/.google.cloud.chronicle.v1.LatestExportJobStateB\x03\xE0A\x03\x12<\x0A\x13data_freshness_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdata_volume\x18\x05 \x01(\x03B\x03\xE0A\x03\"Y\x0A\x18GetBigQueryExportRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/BigQueryExport\"\x9D\x01\x0A\x1BUpdateBigQueryExportRequest\x12H\x0A\x10big_query_export\x18\x01 \x01(\x0B2).google.cloud.chronicle.v1.BigQueryExportB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"a\x0A\x1EProvisionBigQueryExportRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/BigQueryExport*\x8C\x01\x0A\x15BigQueryExportPackage\x12(\x0A\$BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED\x10\x00\x12\"\x0A\x1EBIG_QUERY_EXPORT_PACKAGE_BYOBQ\x10\x01\x12%\x0A!BIG_QUERY_EXPORT_PACKAGE_ADVANCED\x10\x02*\x88\x01\x0A\x14LatestExportJobState\x12'\x0A#LATEST_EXPORT_JOB_STATE_UNSPECIFIED\x10\x00\x12#\x0A\x1FLATEST_EXPORT_JOB_STATE_SUCCESS\x10\x01\x12\"\x0A\x1ELATEST_EXPORT_JOB_STATE_FAILED\x10\x022\xEC\x06\x0A\x15BigQueryExportService\x12\xC0\x01\x0A\x11GetBigQueryExport\x123.google.cloud.chronicle.v1.GetBigQueryExportRequest\x1A).google.cloud.chronicle.v1.BigQueryExport\"K\xDAA\x04name\x82\xD3\xE4\x93\x02>\x12internalAddGeneratedFile( + "\x0A\xD4Y\x0A/google/cloud/chronicle/v1/dashboard_chart.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A/google/cloud/chronicle/v1/dashboard_query.proto\"\xFD=\x0A\x0EDashboardChart\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12J\x0A\x10native_dashboard\x18\x04 \x01(\x09B0\xE0A\x03\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12;\x0A\x09tile_type\x18\x07 \x01(\x0E2#.google.cloud.chronicle.v1.TileTypeB\x03\xE0A\x01\x12X\x0A\x10chart_datasource\x18\x05 \x01(\x0B29.google.cloud.chronicle.v1.DashboardChart.ChartDatasourceB\x03\xE0A\x01\x12S\x0A\x0Dvisualization\x18\x06 \x01(\x0B27.google.cloud.chronicle.v1.DashboardChart.VisualizationB\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11drill_down_config\x18\x09 \x01(\x0B29.google.cloud.chronicle.v1.DashboardChart.DrillDownConfigB\x03\xE0A\x01\x12\x13\x0A\x06tokens\x18\x0A \x03(\x09B\x03\xE0A\x01\x1A\x95\x01\x0A\x0FChartDatasource\x12E\x0A\x0Fdashboard_query\x18\x01 \x01(\x09B,\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\x12;\x0A\x0Cdata_sources\x18\x03 \x03(\x0E2%.google.cloud.chronicle.v1.DataSource\x1A\x8C+\x0A\x0DVisualization\x12L\x0A\x06x_axes\x18\x07 \x03(\x0B2<.google.cloud.chronicle.v1.DashboardChart.Visualization.Axis\x12L\x0A\x06y_axes\x18\x08 \x03(\x0B2<.google.cloud.chronicle.v1.DashboardChart.Visualization.Axis\x12N\x0A\x06series\x18\x03 \x03(\x0B2>.google.cloud.chronicle.v1.DashboardChart.Visualization.Series\x12P\x0A\x07tooltip\x18\x04 \x01(\x0B2?.google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip\x12O\x0A\x07legends\x18\x09 \x03(\x0B2>.google.cloud.chronicle.v1.DashboardChart.Visualization.Legend\x12V\x0A\x0Bcolumn_defs\x18\x0A \x03(\x0B2A.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef\x12^\x0A\x0Ctable_config\x18\x12 \x01(\x0B2C.google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfigB\x03\xE0A\x01\x121\x0A\x06button\x18\x0B \x01(\x0B2!.google.cloud.chronicle.v1.Button\x12:\x0A\x08markdown\x18\x11 \x01(\x0B2#.google.cloud.chronicle.v1.MarkdownB\x03\xE0A\x01\x12\x1A\x0A\x0Dseries_column\x18\x0C \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dgrouping_type\x18\x0D \x01(\x09B\x03\xE0A\x01\x12i\x0A\x12google_maps_config\x18\x0E \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfigB\x03\xE0A\x01\x12'\x0A\x1Athreshold_coloring_enabled\x18\x0F \x01(\x08B\x03\xE0A\x01\x12[\x0A\x0Bvisual_maps\x18\x10 \x03(\x0B2A.google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMapB\x03\xE0A\x01\x1A\x88\x01\x0A\x04Axis\x126\x0A\x09axis_type\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.AxisType\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x10\x0A\x03min\x18\x06 \x01(\x05H\x00\x88\x01\x01\x12\x10\x0A\x03max\x18\x07 \x01(\x05H\x01\x88\x01\x01B\x06\x0A\x04_minB\x06\x0A\x04_max\x1A\xC1\x12\x0A\x06Series\x12:\x0A\x0Bseries_type\x18\x08 \x01(\x0E2%.google.cloud.chronicle.v1.SeriesType\x12\x13\x0A\x0Bseries_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bshow_symbol\x18\x04 \x01(\x08\x12\x17\x0A\x0Fshow_background\x18\x05 \x01(\x08\x12\x0D\x0A\x05stack\x18\x06 \x01(\x09\x12M\x0A\x15series_stack_strategy\x18\x09 \x01(\x0E2..google.cloud.chronicle.v1.SeriesStackStrategy\x12U\x0A\x06encode\x18\x0A \x01(\x0B2E.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode\x12\x0D\x0A\x05label\x18\x0B \x01(\x09\x12\x0D\x0A\x05field\x18\x0C \x01(\x09\x12a\x0A\x0Adata_label\x18\x0D \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabelB\x03\xE0A\x01\x12\x13\x0A\x06radius\x18\x0E \x03(\x09B\x03\xE0A\x01\x12a\x0A\x0Aitem_style\x18\x0F \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyleB\x03\xE0A\x01\x12 \x0A\x13series_unique_value\x18\x10 \x01(\x09B\x03\xE0A\x01\x12a\x0A\x0Aarea_style\x18\x11 \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyleB\x03\xE0A\x01\x12c\x0A\x0Bitem_colors\x18\x12 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColorsB\x03\xE0A\x01\x12e\x0A\x0Cgauge_config\x18\x13 \x01(\x0B2J.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfigB\x03\xE0A\x01\x12r\x0A\x13metric_trend_config\x18\x14 \x01(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfigB\x03\xE0A\x01\x1A@\x0A\x06Encode\x12\x09\x0A\x01x\x18\x01 \x01(\x09\x12\x09\x0A\x01y\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\x12\x11\x0A\x09item_name\x18\x04 \x01(\x09\x1A\x1E\x0A\x09DataLabel\x12\x11\x0A\x04show\x18\x01 \x01(\x08B\x03\xE0A\x01\x1AU\x0A\x09ItemStyle\x12\x19\x0A\x0Cborder_width\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x19\x0A\x0Cborder_color\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\xBB\x01\x0A\x09AreaStyle\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06origin\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bshadow_blur\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x19\x0A\x0Cshadow_color\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fshadow_offset_x\x18\x05 \x01(\x05B\x03\xE0A\x01\x12\x1C\x0A\x0Fshadow_offset_y\x18\x06 \x01(\x05B\x03\xE0A\x01\x12\x14\x0A\x07opacity\x18\x07 \x01(\x05B\x03\xE0A\x01\x1A<\x0A\x12UserSelectedValues\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05label\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\x8A\x01\x0A\x0FChartSliceColor\x12\x10\x0A\x03key\x18\x01 \x01(\x09B\x03\xE0A\x01\x12e\x0A\x05value\x18\x02 \x01(\x0B2Q.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValuesB\x03\xE0A\x01\x1Aq\x0A\x0AItemColors\x12c\x0A\x06colors\x18\x01 \x03(\x0B2N.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColorB\x03\xE0A\x01\x1A4\x0A\x0AGaugeValue\x12\x12\x0A\x05value\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\xC0\x02\x0A\x0BGaugeConfig\x12b\x0A\x0Abase_value\x18\x01 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x12c\x0A\x0Blimit_value\x18\x02 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x12h\x0A\x10threshold_values\x18\x03 \x03(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x1A\x96\x02\x0A\x11MetricTrendConfig\x12C\x0A\x0Dmetric_format\x18\x01 \x01(\x0E2'.google.cloud.chronicle.v1.MetricFormatB\x03\xE0A\x01\x12\x1E\x0A\x11show_metric_trend\x18\x05 \x01(\x08B\x03\xE0A\x01\x12P\x0A\x14metric_display_trend\x18\x03 \x01(\x0E2-.google.cloud.chronicle.v1.MetricDisplayTrendB\x03\xE0A\x01\x12J\x0A\x11metric_trend_type\x18\x04 \x01(\x0E2*.google.cloud.chronicle.v1.MetricTrendTypeB\x03\xE0A\x01\x1A[\x0A\x07Tooltip\x12\x0C\x0A\x04show\x18\x01 \x01(\x08\x12B\x0A\x0Ftooltip_trigger\x18\x03 \x01(\x0E2).google.cloud.chronicle.v1.ToolTipTrigger\x1A\x87\x02\x0A\x06Legend\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0C\x0A\x04show\x18\x02 \x01(\x08\x12\x0F\x0A\x07z_level\x18\x03 \x01(\x05\x12\x09\x0A\x01z\x18\x04 \x01(\x05\x12\x0C\x0A\x04left\x18\x05 \x01(\x05\x12\x0B\x0A\x03top\x18\x06 \x01(\x05\x12\x0D\x0A\x05right\x18\x07 \x01(\x05\x12\x0E\x0A\x06bottom\x18\x08 \x01(\x05\x12>\x0A\x0Dlegend_orient\x18\x0C \x01(\x0E2'.google.cloud.chronicle.v1.LegendOrient\x12<\x0A\x0Clegend_align\x18\x0D \x01(\x0E2&.google.cloud.chronicle.v1.LegendAlign\x12\x0F\x0A\x07padding\x18\x0B \x03(\x05\x1A*\x0A\x09ColumnDef\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x0E\x0A\x06header\x18\x02 \x01(\x09\x1Av\x0A\x18ColumnRenderTypeSettings\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x12column_render_type\x18\x02 \x01(\x0E2%.google.cloud.chronicle.v1.RenderTypeB\x03\xE0A\x01\x1Am\x0A\x15ColumnTooltipSettings\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12 \x0A\x13header_tooltip_text\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11cell_tooltip_text\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\x9D\x02\x0A\x0BTableConfig\x12\x1D\x0A\x10enable_text_wrap\x18\x01 \x01(\x08B\x03\xE0A\x01\x12z\x0A\x1Bcolumn_render_type_settings\x18\x02 \x03(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettingsB\x03\xE0A\x01\x12s\x0A\x17column_tooltip_settings\x18\x03 \x03(\x0B2M.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettingsB\x03\xE0A\x01\x1A\xFD\x05\x0A\x10GoogleMapsConfig\x12q\x0A\x0Ddata_settings\x18\x01 \x01(\x0B2U.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettingsB\x03\xE0A\x01\x12;\x0A\x09plot_mode\x18\x02 \x01(\x0E2#.google.cloud.chronicle.v1.PlotModeB\x03\xE0A\x01\x12o\x0A\x0Cmap_position\x18\x03 \x01(\x0B2T.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPositionB\x03\xE0A\x01\x12s\x0A\x0Epoint_settings\x18\x04 \x01(\x0B2V.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettingsB\x03\xE0A\x01\x1Af\x0A\x0CDataSettings\x12\x1C\x0A\x0Flatitude_column\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10longitude_column\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ccount_column\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A~\x0A\x0BMapPosition\x12\x15\x0A\x08fit_data\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Elatitude_value\x18\x05 \x01(\x01B\x03\xE0A\x01\x12\x1C\x0A\x0Flongitude_value\x18\x06 \x01(\x01B\x03\xE0A\x01\x12\x1D\x0A\x10zoom_scale_value\x18\x07 \x01(\x01B\x03\xE0A\x01\x1Ak\x0A\x0DPointSettings\x12F\x0A\x0Fpoint_size_type\x18\x01 \x01(\x0E2(.google.cloud.chronicle.v1.PointSizeTypeB\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\xB2\x02\x0A\x09VisualMap\x12F\x0A\x0Fvisual_map_type\x18\x01 \x01(\x0E2(.google.cloud.chronicle.v1.VisualMapTypeB\x03\xE0A\x01\x12e\x0A\x06pieces\x18\x02 \x03(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPieceB\x03\xE0A\x01\x1Av\x0A\x0EVisualMapPiece\x12\x15\x0A\x03min\x18\x01 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x15\x0A\x03max\x18\x02 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x12\x0A\x05color\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05label\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04_minB\x06\x0A\x04_max\x1A\xED\x0B\x0A\x0FDrillDownConfig\x12b\x0A\x10left_drill_downs\x18\x01 \x03(\x0B2C.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDownB\x03\xE0A\x02\x12c\x0A\x11right_drill_downs\x18\x02 \x03(\x0B2C.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDownB\x03\xE0A\x02\x1A\x90\x0A\x0A\x09DrillDown\x12x\x0A\x10default_settings\x18\x03 \x01(\x0B2\\.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettingsH\x00\x12v\x0A\x0Fcustom_settings\x18\x04 \x01(\x0B2[.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettingsH\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x1A0\x0A\x18DefaultDrillDownSettings\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x02\x1A\xA6\x07\x0A\x17CustomDrillDownSettings\x12{\x0A\x05query\x18\x03 \x01(\x0B2j.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQueryH\x00\x12}\x0A\x06filter\x18\x04 \x01(\x0B2k.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilterH\x00\x12\x8A\x01\x0A\x0Dexternal_link\x18\x05 \x01(\x0B2q.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLinkH\x00\x12\x14\x0A\x07new_tab\x18\x01 \x01(\x08B\x03\xE0A\x02\x12\x1E\x0A\x11left_click_column\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0EDrillDownQuery\x12\x12\x0A\x05query\x18\x01 \x01(\x09B\x03\xE0A\x02\x1A\xD5\x02\x0A\x0FDrillDownFilter\x12\xA5\x01\x0A\x11dashboard_filters\x18\x01 \x03(\x0B2\x84\x01.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilterB\x03\xE0A\x02\x1A\x99\x01\x0A\x18DrillDownDashboardFilter\x12 \x0A\x13dashboard_filter_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12[\x0A\x1Afilter_operator_and_values\x18\x02 \x03(\x0B22.google.cloud.chronicle.v1.FilterOperatorAndValuesB\x03\xE0A\x02\x1AD\x0A\x15DrillDownExternalLink\x12\x11\x0A\x04link\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06actionB\x0A\x0A\x08settings:\xA4\x01\xEAA\xA0\x01\x0A'chronicle.googleapis.com/DashboardChart\x12Tprojects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}*\x0FdashboardCharts2\x0EdashboardChart\"\x90\x02\x0A\x06Button\x12\x12\x0A\x05label\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09hyperlink\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x14\x0A\x07new_tab\x18\x04 \x01(\x08B\x03\xE0A\x01\x12E\x0A\x0Aproperties\x18\x05 \x01(\x0B2,.google.cloud.chronicle.v1.Button.PropertiesB\x03\xE0A\x01\x1Ac\x0A\x0AProperties\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12A\x0A\x0Cbutton_style\x18\x02 \x01(\x0E2&.google.cloud.chronicle.v1.ButtonStyleB\x03\xE0A\x01\"\xA6\x01\x0A\x08Markdown\x12\x14\x0A\x07content\x18\x01 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x0Aproperties\x18\x02 \x01(\x0B26.google.cloud.chronicle.v1.Markdown.MarkdownPropertiesB\x03\xE0A\x01\x1A3\x0A\x12MarkdownProperties\x12\x1D\x0A\x10background_color\x18\x03 \x01(\x09B\x03\xE0A\x01\"Y\x0A\x18GetDashboardChartRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA1\x01\x0A\x1EBatchGetDashboardChartsRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/DashboardChart\x12>\x0A\x05names\x18\x02 \x03(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"f\x0A\x1FBatchGetDashboardChartsResponse\x12C\x0A\x10dashboard_charts\x18\x01 \x03(\x0B2).google.cloud.chronicle.v1.DashboardChart*p\x0A\x08TileType\x12\x19\x0A\x15TILE_TYPE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17TILE_TYPE_VISUALIZATION\x10\x01\x12\x14\x0A\x10TILE_TYPE_BUTTON\x10\x02\x12\x16\x0A\x12TILE_TYPE_MARKDOWN\x10\x03*t\x0A\x0ARenderType\x12\x1B\x0A\x17RENDER_TYPE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10RENDER_TYPE_TEXT\x10\x01\x12\x14\x0A\x10RENDER_TYPE_ICON\x10\x02\x12\x1D\x0A\x19RENDER_TYPE_ICON_AND_TEXT\x10\x03*Q\x0A\x08AxisType\x12\x19\x0A\x15AXIS_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05VALUE\x10\x01\x12\x0C\x0A\x08CATEGORY\x10\x02\x12\x08\x0A\x04TIME\x10\x03\x12\x07\x0A\x03LOG\x10\x04*t\x0A\x0ASeriesType\x12\x1B\x0A\x17SERIES_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04LINE\x10\x01\x12\x07\x0A\x03BAR\x10\x02\x12\x07\x0A\x03PIE\x10\x03\x12\x08\x0A\x04TEXT\x10\x04\x12\x07\x0A\x03MAP\x10\x05\x12\x09\x0A\x05GAUGE\x10\x06\x12\x0F\x0A\x0BSCATTERPLOT\x10\x07*o\x0A\x13SeriesStackStrategy\x12%\x0A!SERIES_STACK_STRATEGY_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08SAMESIGN\x10\x01\x12\x07\x0A\x03ALL\x10\x02\x12\x0C\x0A\x08POSITIVE\x10\x03\x12\x0C\x0A\x08NEGATIVE\x10\x04*\x7F\x0A\x0EToolTipTrigger\x12\x1F\x0A\x1BTOOLTIP_TRIGGER_UNSPECIFIED\x10\x00\x12\x18\x0A\x14TOOLTIP_TRIGGER_NONE\x10\x01\x12\x18\x0A\x14TOOLTIP_TRIGGER_ITEM\x10\x02\x12\x18\x0A\x14TOOLTIP_TRIGGER_AXIS\x10\x03*K\x0A\x0CLegendOrient\x12\x1D\x0A\x19LEGEND_ORIENT_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08VERTICAL\x10\x01\x12\x0E\x0A\x0AHORIZONTAL\x10\x02*J\x0A\x0BLegendAlign\x12\x1C\x0A\x18LEGEND_ALIGN_UNSPECIFIED\x10\x00\x12\x08\x0A\x04AUTO\x10\x01\x12\x08\x0A\x04LEFT\x10\x02\x12\x09\x0A\x05RIGHT\x10\x03*}\x0A\x0BButtonStyle\x12\x1C\x0A\x18BUTTON_STYLE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BUTTON_STYLE_FILLED\x10\x01\x12\x19\x0A\x15BUTTON_STYLE_OUTLINED\x10\x02\x12\x1C\x0A\x18BUTTON_STYLE_TRANSPARENT\x10\x03*f\x0A\x08PlotMode\x12\x19\x0A\x15PLOT_MODE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10PLOT_MODE_POINTS\x10\x01\x12\x15\x0A\x11PLOT_MODE_HEATMAP\x10\x02\x12\x12\x0A\x0EPLOT_MODE_BOTH\x10\x03*u\x0A\x0DPointSizeType\x12\x1F\x0A\x1BPOINT_SIZE_TYPE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15POINT_SIZE_TYPE_FIXED\x10\x01\x12(\x0A\$POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE\x10\x02*e\x0A\x0CMetricFormat\x12\x1D\x0A\x19METRIC_FORMAT_UNSPECIFIED\x10\x00\x12\x18\x0A\x14METRIC_FORMAT_NUMBER\x10\x01\x12\x1C\x0A\x18METRIC_FORMAT_PLAIN_TEXT\x10\x02*\xC0\x01\x0A\x12MetricDisplayTrend\x12\$\x0A METRIC_DISPLAY_TREND_UNSPECIFIED\x10\x00\x12'\x0A#METRIC_DISPLAY_TREND_ABSOLUTE_VALUE\x10\x02\x12#\x0A\x1FMETRIC_DISPLAY_TREND_PERCENTAGE\x10\x03\x126\x0A2METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE\x10\x04*r\x0A\x0FMetricTrendType\x12!\x0A\x1DMETRIC_TREND_TYPE_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19METRIC_TREND_TYPE_REGULAR\x10\x01\x12\x1D\x0A\x19METRIC_TREND_TYPE_INVERSE\x10\x02*O\x0A\x0DVisualMapType\x12\x1F\x0A\x1BVISUAL_MAP_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ACONTINUOUS\x10\x01\x12\x0D\x0A\x09PIECEWISE\x10\x022\xFE\x04\x0A\x15DashboardChartService\x12\xC3\x01\x0A\x11GetDashboardChart\x123.google.cloud.chronicle.v1.GetDashboardChartRequest\x1A).google.cloud.chronicle.v1.DashboardChart\"N\xDAA\x04name\x82\xD3\xE4\x93\x02A\x12?/v1/{name=projects/*/locations/*/instances/*/dashboardCharts/*}\x12\xF1\x01\x0A\x17BatchGetDashboardCharts\x129.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest\x1A:.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse\"_\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02J\x12H/v1/{parent=projects/*/locations/*/instances/*}/dashboardCharts:batchGet\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCA\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x13DashboardChartProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php new file mode 100644 index 000000000000..e7f520233eec --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\xB97\x0A/google/cloud/chronicle/v1/dashboard_query.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x19google/protobuf/any.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x16google/type/date.proto\x1A\x1Agoogle/type/interval.proto\"\xB5\x05\x0A\x0EDashboardQuery\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x05input\x18\x03 \x01(\x0B2/.google.cloud.chronicle.v1.DashboardQuery.InputB\x03\xE0A\x02\x12H\x0A\x0Fdashboard_chart\x18\x04 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\x11\x0A\x04etag\x18\x05 \x01(\x09B\x03\xE0A\x01\x1A\x84\x02\x0A\x05Input\x12,\x0A\x0Btime_window\x18\x01 \x01(\x0B2\x15.google.type.IntervalH\x00\x12U\x0A\x0Drelative_time\x18\x03 \x01(\x0B2<.google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTimeH\x00\x1Ah\x0A\x0CRelativeTime\x12;\x0A\x09time_unit\x18\x01 \x01(\x0E2#.google.cloud.chronicle.v1.TimeUnitB\x03\xE0A\x02\x12\x1B\x0A\x0Estart_time_val\x18\x02 \x01(\x03B\x03\xE0A\x02B\x0C\x0A\x0Atime_input:\xA6\x01\xEAA\xA2\x01\x0A'chronicle.googleapis.com/DashboardQuery\x12Uprojects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}*\x10dashboardQueries2\x0EdashboardQuery\"Y\x0A\x18GetDashboardQueryRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\"\xA0\x02\x0A\x1CExecuteDashboardQueryRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/DashboardQuery\x12=\x0A\x05query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x02\x12@\x0A\x07filters\x18\x03 \x03(\x0B2*.google.cloud.chronicle.v1.DashboardFilterB\x03\xE0A\x01\x12\x18\x0A\x0Bclear_cache\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\$\x0A\x17use_previous_time_range\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xD6\x05\x0A\x11QueryRuntimeError\x12\x13\x0A\x0Berror_title\x18\x01 \x01(\x09\x12\x19\x0A\x11error_description\x18\x02 \x01(\x09\x12R\x0A\x0Eerror_severity\x18\x03 \x01(\x0E2:.google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity\x12X\x0A\x08metadata\x18\x04 \x03(\x0B2F.google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata\x12R\x0A\x0Ewarning_reason\x18\x05 \x01(\x0E2:.google.cloud.chronicle.v1.QueryRuntimeError.WarningReason\x1Aq\x0A\x19QueryRuntimeErrorMetadata\x12E\x0A\x03key\x18\x01 \x01(\x0E28.google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"H\x0A\x0DErrorSeverity\x12\x1E\x0A\x1AERROR_SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WARNING\x10\x01\x12\x0A\x0A\x06SEVERE\x10\x02\":\x0A\x0BMetadataKey\x12\x1C\x0A\x18METADATA_KEY_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ROW_LIMIT\x10\x01\"\x95\x01\x0A\x0DWarningReason\x12\x1E\x0A\x1AWARNING_REASON_UNSPECIFIED\x10\x00\x12\x16\x0A\x12ROW_LIMIT_EXCEEDED\x10\x01\x12\x1E\x0A\x1ADEFAULT_ROW_LIMIT_EXCEEDED\x10\x02\x12,\x0A(CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED\x10\x03\"\xC2\x0B\x0A\x1DExecuteDashboardQueryResponse\x12T\x0A\x07results\x18\x01 \x03(\x0B2C.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData\x12;\x0A\x0Cdata_sources\x18\x03 \x03(\x0E2%.google.cloud.chronicle.v1.DataSource\x12J\x0A!last_backend_cache_refreshed_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12*\x0A\x0Btime_window\x18\x05 \x01(\x0B2\x15.google.type.Interval\x12J\x0A\x14query_runtime_errors\x18\x06 \x03(\x0B2,.google.cloud.chronicle.v1.QueryRuntimeError\x12J\x0A\x11language_features\x18\x07 \x03(\x0E2*.google.cloud.chronicle.v1.LanguageFeatureB\x03\xE0A\x01\x1A\xA6\x04\x0A\x0BColumnValue\x12\x12\x0A\x08null_val\x18\x01 \x01(\x08H\x00\x12\x12\x0A\x08bool_val\x18\x02 \x01(\x08H\x00\x12\x13\x0A\x09bytes_val\x18\x03 \x01(\x0CH\x00\x12\x14\x0A\x0Adouble_val\x18\x04 \x01(\x01H\x00\x12\x13\x0A\x09int64_val\x18\x05 \x01(\x03H\x00\x12\x14\x0A\x0Auint64_val\x18\x06 \x01(\x04H\x00\x12\x14\x0A\x0Astring_val\x18\x07 \x01(\x09H\x00\x123\x0A\x0Dtimestamp_val\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12%\x0A\x08date_val\x18\x09 \x01(\x0B2\x11.google.type.DateH\x00\x12)\x0A\x09proto_val\x18\x0A \x01(\x0B2\x14.google.protobuf.AnyH\x00\x12d\x0A\x08metadata\x18\x0B \x01(\x0B2R.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata\x1A\x8C\x01\x0A\x0DValueMetadata\x123\x0A\x05links\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.InAppLink\x12\x13\x0A\x0Bfield_paths\x18\x02 \x03(\x09\x121\x0A\x0Dtimestamp_val\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x07\x0A\x05value\x1A\xA3\x02\x0A\x0AColumnType\x12U\x0A\x05value\x18\x01 \x01(\x0B2D.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValueH\x00\x12X\x0A\x04list\x18\x02 \x01(\x0B2H.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.ListH\x00\x1A\\\x0A\x04List\x12T\x0A\x06values\x18\x01 \x03(\x0B2D.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValueB\x06\x0A\x04type\x1A\xAE\x01\x0A\x0AColumnData\x12\x0E\x0A\x06column\x18\x01 \x01(\x09\x12S\x0A\x06values\x18\x02 \x03(\x0B2C.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType\x12;\x0A\x08metadata\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.ColumnMetadata\"\xF4\x03\x0A\x0FDashboardFilter\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12:\x0A\x0Bdata_source\x18\x02 \x01(\x0E2%.google.cloud.chronicle.v1.DataSource\x12\x12\x0A\x0Afield_path\x18\x03 \x01(\x09\x12\\\x0A filter_operator_and_field_values\x18\x04 \x03(\x0B22.google.cloud.chronicle.v1.FilterOperatorAndValues\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x11\x0A\x09chart_ids\x18\x06 \x03(\x09\x12*\x0A\x1Dis_standard_time_range_filter\x18\x07 \x01(\x08B\x03\xE0A\x01\x12\x19\x0A\x0Cis_mandatory\x18\x08 \x01(\x08B\x03\xE0A\x01\x127\x0A%is_standard_time_range_filter_enabled\x18\x09 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01\x12T\x0A\x16advanced_filter_config\x18\x0A \x01(\x0B2/.google.cloud.chronicle.v1.AdvancedFilterConfigB\x03\xE0A\x01B(\x0A&_is_standard_time_range_filter_enabled\"s\x0A\x17FilterOperatorAndValues\x12B\x0A\x0Ffilter_operator\x18\x01 \x01(\x0E2).google.cloud.chronicle.v1.FilterOperator\x12\x14\x0A\x0Cfield_values\x18\x02 \x03(\x09\"\xC6\x05\x0A\x14AdvancedFilterConfig\x12\x12\x0A\x05token\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06prefix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06suffix\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09separator\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10multiple_allowed\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_values\x18\x06 \x03(\x09B\x03\xE0A\x01\x12!\x0A\x14skip_default_affixes\x18\x07 \x01(\x08B\x03\xE0A\x01\x12V\x0A\x0Cvalue_source\x18\x08 \x01(\x0B2;.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceB\x03\xE0A\x02\x1A\xD1\x01\x0A\x0BValueSource\x12\\\x0A\x0Emanual_options\x18\x01 \x01(\x0B2=.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsB\x03\xE0A\x01H\x00\x12Z\x0A\x0Dquery_options\x18\x02 \x01(\x0B2<.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsB\x03\xE0A\x01H\x00B\x08\x0A\x06source\x1A%\x0A\x0DManualOptions\x12\x14\x0A\x07options\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A\xA5\x01\x0A\x0CQueryOptions\x12\x12\x0A\x05query\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06column\x18\x02 \x01(\x09B\x03\xE0A\x02\x12'\x0A\x1Aglobal_time_filter_enabled\x18\x03 \x01(\x08B\x03\xE0A\x01\x12C\x0A\x05input\x18\x04 \x01(\x0B2/.google.cloud.chronicle.v1.DashboardQuery.InputB\x03\xE0A\x01\"9\x0A\x09InAppLink\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12\x10\x0A\x08icon_url\x18\x03 \x01(\x09\"\xB5\x02\x0A\x0EColumnMetadata\x12\x0E\x0A\x06column\x18\x01 \x01(\x09\x12\x12\x0A\x0Afield_path\x18\x02 \x01(\x09\x12\x15\x0A\x0Dfunction_name\x18\x03 \x01(\x09\x12\x17\x0A\x0Ffunction_module\x18\x04 \x01(\x09\x12:\x0A\x0Bdata_source\x18\x05 \x01(\x0E2%.google.cloud.chronicle.v1.DataSource\x12H\x0A\x12timestamp_metadata\x18\x06 \x01(\x0B2,.google.cloud.chronicle.v1.TimestampMetadata\x12\x11\x0A\x09longitude\x18\x07 \x01(\x08\x12\x10\x0A\x08latitude\x18\x08 \x01(\x08\x12\x10\x0A\x08selected\x18\x09 \x01(\x08\x12\x12\x0A\x0Aunselected\x18\x0A \x01(\x08\"\x83\x01\x0A\x11TimestampMetadata\x12\x13\x0A\x0Btime_format\x18\x01 \x01(\x09\x12\x11\x0A\x09time_zone\x18\x02 \x01(\x09\x12\x18\x0A\x10time_granularity\x18\x03 \x01(\x09\x12\x13\x0A\x0Bis_sortable\x18\x04 \x01(\x08\x12\x17\x0A\x0Fis_interpolable\x18\x05 \x01(\x08*[\x0A\x0FLanguageFeature\x12 \x0A\x1CLANGUAGE_FEATURE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05JOINS\x10\x01\x12\x0A\x0A\x06STAGES\x10\x02\x12\x0F\x0A\x0BDATA_TABLES\x10\x03*\xE4\x02\x0A\x0EFilterOperator\x12\x1F\x0A\x1BFILTER_OPERATOR_UNSPECIFIED\x10\x00\x12\x09\x0A\x05EQUAL\x10\x01\x12\x0D\x0A\x09NOT_EQUAL\x10\x02\x12\x06\x0A\x02IN\x10\x03\x12\x10\x0A\x0CGREATER_THAN\x10\x04\x12\x1C\x0A\x18GREATER_THAN_OR_EQUAL_TO\x10\x05\x12\x0D\x0A\x09LESS_THAN\x10\x06\x12\x19\x0A\x15LESS_THAN_OR_EQUAL_TO\x10\x07\x12\x0B\x0A\x07BETWEEN\x10\x08\x12\x08\x0A\x04PAST\x10\x09\x12\x0B\x0A\x07IS_NULL\x10\x0A\x12\x0F\x0A\x0BIS_NOT_NULL\x10\x0B\x12\x0F\x0A\x0BSTARTS_WITH\x10\x0C\x12\x0D\x0A\x09ENDS_WITH\x10\x0D\x12\x18\x0A\x14DOES_NOT_STARTS_WITH\x10\x0E\x12\x16\x0A\x12DOES_NOT_ENDS_WITH\x10\x0F\x12\x0A\x0A\x06NOT_IN\x10\x10\x12\x0C\x0A\x08CONTAINS\x10\x11\x12\x14\x0A\x10DOES_NOT_CONTAIN\x10\x12*\x9A\x02\x0A\x0ADataSource\x12\x1B\x0A\x17DATA_SOURCE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03UDM\x10\x01\x12\x0A\x0A\x06ENTITY\x10\x02\x12\x15\x0A\x11INGESTION_METRICS\x10\x03\x12\x13\x0A\x0FRULE_DETECTIONS\x10\x04\x12\x0C\x0A\x08RULESETS\x10\x05\x12\x0A\x0A\x06GLOBAL\x10\x06\x12\x0F\x0A\x0BIOC_MATCHES\x10\x07\x12\x09\x0A\x05RULES\x10\x08\x12\x0E\x0A\x0ASOAR_CASES\x10\x09\x12\x12\x0A\x0ESOAR_PLAYBOOKS\x10\x0A\x12\x15\x0A\x11SOAR_CASE_HISTORY\x10\x0B\x12\x0E\x0A\x0ADATA_TABLE\x10\x0C\x12\x11\x0A\x0DINVESTIGATION\x10\x0D\x12\x1A\x0A\x16INVESTIGATION_FEEDBACK\x10\x0E*o\x0A\x08TimeUnit\x12\x19\x0A\x15TIME_UNIT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SECOND\x10\x01\x12\x0A\x0A\x06MINUTE\x10\x02\x12\x08\x0A\x04HOUR\x10\x03\x12\x07\x0A\x03DAY\x10\x04\x12\x08\x0A\x04WEEK\x10\x05\x12\x09\x0A\x05MONTH\x10\x06\x12\x08\x0A\x04YEAR\x10\x072\xFC\x04\x0A\x15DashboardQueryService\x12\xC4\x01\x0A\x11GetDashboardQuery\x123.google.cloud.chronicle.v1.GetDashboardQueryRequest\x1A).google.cloud.chronicle.v1.DashboardQuery\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dashboardQueries/*}\x12\xEE\x01\x0A\x15ExecuteDashboardQuery\x127.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest\x1A8.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse\"b\xDAA\x0Cparent,query\x82\xD3\xE4\x93\x02M\"H/v1/{parent=projects/*/locations/*/instances/*}/dashboardQueries:execute:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCA\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x13DashboardQueryProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php new file mode 100644 index 000000000000..211a4b8a9af5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\xBA/\x0A3google/cloud/chronicle/v1/data_access_control.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCF\x01\x0A\x1CCreateDataAccessLabelRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12J\x0A\x11data_access_label\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12!\x0A\x14data_access_label_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\x9B\x01\x0A\x1BListDataAccessLabelsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x1CListDataAccessLabelsResponse\x12F\x0A\x12data_access_labels\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessLabel\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x01\x0A\x1CUpdateDataAccessLabelRequest\x12J\x0A\x11data_access_label\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\xCF\x01\x0A\x1CCreateDataAccessScopeRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12J\x0A\x11data_access_scope\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12!\x0A\x14data_access_scope_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x9B\x01\x0A\x1BListDataAccessScopesRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xD3\x01\x0A\x1CListDataAccessScopesResponse\x12F\x0A\x12data_access_scopes\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessScope\x12-\x0A global_data_access_scope_granted\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B#\x0A!_global_data_access_scope_granted\"\x9B\x01\x0A\x1CUpdateDataAccessScopeRequest\x12J\x0A\x11data_access_scope\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\xD5\x03\x0A\x0FDataAccessLabel\x12\x13\x0A\x09udm_query\x18\x03 \x01(\x09H\x00\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x06 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessLabel\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}B\x0C\x0A\x0Adefinition\"\x88\x05\x0A\x0FDataAccessScope\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12\\\x0A\x1Aallowed_data_access_labels\x18\x02 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12[\x0A\x19denied_data_access_labels\x18\x03 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x09 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09allow_all\x18\x0A \x01(\x08B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessScope\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}\"\xD0\x01\x0A\x18DataAccessLabelReference\x12\x1B\x0A\x11data_access_label\x18\x01 \x01(\x09H\x00\x12\x12\x0A\x08log_type\x18\x02 \x01(\x09H\x00\x12\x19\x0A\x0Fasset_namespace\x18\x03 \x01(\x09H\x00\x12D\x0A\x0Fingestion_label\x18\x04 \x01(\x0B2).google.cloud.chronicle.v1.IngestionLabelH\x00\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x03B\x07\x0A\x05label\"V\x0A\x0EIngestionLabel\x12 \x0A\x13ingestion_label_key\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\"\x0A\x15ingestion_label_value\x18\x02 \x01(\x09B\x03\xE0A\x012\xE6\x12\x0A\x18DataAccessControlService\x12\x8A\x02\x0A\x15CreateDataAccessLabel\x127.google.cloud.chronicle.v1.CreateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8B\x01\xDAA-parent,data_access_label,data_access_label_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels:\x11data_access_label\x12\xC7\x01\x0A\x12GetDataAccessLabel\x124.google.cloud.chronicle.v1.GetDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\xDA\x01\x0A\x14ListDataAccessLabels\x126.google.cloud.chronicle.v1.ListDataAccessLabelsRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessLabelsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels\x12\x8C\x02\x0A\x15UpdateDataAccessLabel\x127.google.cloud.chronicle.v1.UpdateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8D\x01\xDAA\x1Ddata_access_label,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}:\x11data_access_label\x12\xB9\x01\x0A\x15DeleteDataAccessLabel\x127.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\x8A\x02\x0A\x15CreateDataAccessScope\x127.google.cloud.chronicle.v1.CreateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8B\x01\xDAA-parent,data_access_scope,data_access_scope_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes:\x11data_access_scope\x12\xC7\x01\x0A\x12GetDataAccessScope\x124.google.cloud.chronicle.v1.GetDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x12\xDA\x01\x0A\x14ListDataAccessScopes\x126.google.cloud.chronicle.v1.ListDataAccessScopesRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessScopesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes\x12\x8C\x02\x0A\x15UpdateDataAccessScope\x127.google.cloud.chronicle.v1.UpdateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8D\x01\xDAA\x1Ddata_access_scope,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}:\x11data_access_scope\x12\xB9\x01\x0A\x15DeleteDataAccessScope\x127.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC6\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0FDataAccessProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php new file mode 100644 index 000000000000..101c9111f097 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\xF3E\x0A*google/cloud/chronicle/v1/data_table.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\xAF\x01\x0A\x16CreateDataTableRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12=\x0A\x0Adata_table\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x12\x1A\x0A\x0Ddata_table_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"O\x0A\x13GetDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\"\x8D\x01\x0A\x16UpdateDataTableRequest\x12=\x0A\x0Adata_table\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\x9B\x01\x0A\x15ListDataTablesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\"f\x0A\x16DeleteDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"l\x0A\x16ListDataTablesResponse\x129\x0A\x0Bdata_tables\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.DataTable\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA0\x01\x0A\x19CreateDataTableRowRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12D\x0A\x0Edata_table_row\x18\x02 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\"\x97\x01\x0A\x19UpdateDataTableRowRequest\x12D\x0A\x0Edata_table_row\x18\x01 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xB6\x01\x0A\x18ListDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"{\x0A\x19ListDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"U\x0A\x16GetDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"X\x0A\x19DeleteDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"\xAC\x01\x0A\x1EBulkCreateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkCreateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xA6\x01\x0A\x1BBulkGetDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12H\x0A\x08requests\x18\x02 \x03(\x0B21.google.cloud.chronicle.v1.GetDataTableRowRequestB\x03\xE0A\x02\"`\x0A\x1CBulkGetDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAD\x01\x0A\x1FBulkReplaceDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"d\x0A BulkReplaceDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAC\x01\x0A\x1EBulkUpdateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.UpdateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkUpdateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"b\x0A\x12DataTableScopeInfo\x12L\x0A\x12data_access_scopes\x18\x01 \x03(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x99\x06\x0A\x09DataTable\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12H\x0A\x0Bcolumn_info\x18\x06 \x03(\x0B2..google.cloud.chronicle.v1.DataTableColumnInfoB\x03\xE0A\x05\x12\x1C\x0A\x0Fdata_table_uuid\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05rules\x18\x08 \x03(\x09B\x03\xE0A\x03\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\"\x0A\x15approximate_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12F\x0A\x0Ascope_info\x18\x0C \x01(\x0B2-.google.cloud.chronicle.v1.DataTableScopeInfoB\x03\xE0A\x01\x12L\x0A\x0Dupdate_source\x18\x0D \x01(\x0E20.google.cloud.chronicle.v1.DataTableUpdateSourceB\x03\xE0A\x03\x12E\x0A\x1Crow_time_to_live_update_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\x95\x01\xEAA\x91\x01\x0A\"chronicle.googleapis.com/DataTable\x12Tprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}*\x0AdataTables2\x09dataTable\"\x81\x03\x0A\x0CDataTableRow\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x13\x0A\x06values\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x05 \x01(\x09B\x03\xE0A\x01:\xBD\x01\xEAA\xB9\x01\x0A%chronicle.googleapis.com/DataTableRow\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}*\x0DdataTableRows2\x0CdataTableRow\"\xFA\x02\x0A\x13DataTableColumnInfo\x12\x1C\x0A\x12mapped_column_path\x18\x03 \x01(\x09H\x00\x12Y\x0A\x0Bcolumn_type\x18\x04 \x01(\x0E2B.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnTypeH\x00\x12\x19\x0A\x0Ccolumn_index\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1C\x0A\x0Foriginal_column\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Akey_column\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Frepeated_values\x18\x06 \x01(\x08B\x03\xE0A\x01\"j\x0A\x13DataTableColumnType\x12&\x0A\"DATA_TABLE_COLUMN_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x01\x12\x09\x0A\x05REGEX\x10\x02\x12\x08\x0A\x04CIDR\x10\x03\x12\x0A\x0A\x06NUMBER\x10\x04B\x0E\x0A\x0Cpath_or_type\"m\x0A\"GetDataTableOperationErrorsRequest\x12G\x0A\x04name\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1chronicle.googleapis.com/DataTableOperationErrors\"\xB8\x02\x0A\x18DataTableOperationErrors\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12&\x0A\x0Arpc_errors\x18\x03 \x03(\x0B2\x12.google.rpc.Status:\xE0\x01\xEAA\xDC\x01\x0A1chronicle.googleapis.com/DataTableOperationErrors\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}*\x18dataTableOperationErrors2\x18dataTableOperationErrors*a\x0A\x15DataTableUpdateSource\x12(\x0A\$DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04USER\x10\x01\x12\x08\x0A\x04RULE\x10\x02\x12\x0A\x0A\x06SEARCH\x10\x032\x89\x1C\x0A\x10DataTableService\x12\xDC\x01\x0A\x0FCreateDataTable\x121.google.cloud.chronicle.v1.CreateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"p\xDAA\x1Fparent,data_table,data_table_id\x82\xD3\xE4\x93\x02H\":/v1/{parent=projects/*/locations/*/instances/*}/dataTables:\x0Adata_table\x12\xC2\x01\x0A\x0EListDataTables\x120.google.cloud.chronicle.v1.ListDataTablesRequest\x1A1.google.cloud.chronicle.v1.ListDataTablesResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/dataTables\x12\xAF\x01\x0A\x0CGetDataTable\x12..google.cloud.chronicle.v1.GetDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xDE\x01\x0A\x0FUpdateDataTable\x121.google.cloud.chronicle.v1.UpdateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"r\xDAA\x16data_table,update_mask\x82\xD3\xE4\x93\x02S2E/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}:\x0Adata_table\x12\xAD\x01\x0A\x0FDeleteDataTable\x121.google.cloud.chronicle.v1.DeleteDataTableRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xEF\x01\x0A\x12CreateDataTableRow\x124.google.cloud.chronicle.v1.CreateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"z\xDAA\x15parent,data_table_row\x82\xD3\xE4\x93\x02\\\"J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:\x0Edata_table_row\x12\x84\x02\x0A\x12UpdateDataTableRow\x124.google.cloud.chronicle.v1.UpdateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"\x8E\x01\xDAA\x1Adata_table_row,update_mask\x82\xD3\xE4\x93\x02k2Y/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}:\x0Edata_table_row\x12\xDB\x01\x0A\x11ListDataTableRows\x123.google.cloud.chronicle.v1.ListDataTableRowsRequest\x1A4.google.cloud.chronicle.v1.ListDataTableRowsResponse\"[\xDAA\x06parent\x82\xD3\xE4\x93\x02L\x12J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows\x12\xC8\x01\x0A\x0FGetDataTableRow\x121.google.cloud.chronicle.v1.GetDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\xBD\x01\x0A\x12DeleteDataTableRow\x124.google.cloud.chronicle.v1.DeleteDataTableRowRequest\x1A\x16.google.protobuf.Empty\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L*J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\x84\x02\x0A\x17BulkCreateDataTableRows\x129.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate:\x01*\x12\xF8\x01\x0A\x14BulkGetDataTableRows\x126.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest\x1A7.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse\"o\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02W\"R/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet:\x01*\x12\x88\x02\x0A\x18BulkReplaceDataTableRows\x12:.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest\x1A;.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse\"s\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02[\"V/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace:\x01*\x12\x84\x02\x0A\x17BulkUpdateDataTableRows\x129.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate:\x01*\x12\xEA\x01\x0A\x1BGetDataTableOperationErrors\x12=.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest\x1A3.google.cloud.chronicle.v1.DataTableOperationErrors\"W\xDAA\x04name\x82\xD3\xE4\x93\x02J\x12H/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xC5\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0EDataTableProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php new file mode 100644 index 000000000000..45b8f91f3f08 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\x9A\x19\x0A&google/cloud/chronicle/v1/entity.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD5\x06\x0A\x09Watchlist\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12multiplying_factor\x18\x05 \x01(\x02B\x03\xE0A\x01\x12h\x0A\x1Bentity_population_mechanism\x18\x06 \x01(\x0B2>.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanismB\x03\xE0A\x02\x12K\x0A\x0Centity_count\x18\x07 \x01(\x0B20.google.cloud.chronicle.v1.Watchlist.EntityCountB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\\\x0A\x1Awatchlist_user_preferences\x18\x0A \x01(\x0B23.google.cloud.chronicle.v1.WatchlistUserPreferencesB\x03\xE0A\x01\x1A\x90\x01\x0A\x19EntityPopulationMechanism\x12\\\x0A\x06manual\x18\x01 \x01(\x0B2E.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.ManualB\x03\xE0A\x01H\x00\x1A\x08\x0A\x06ManualB\x0B\x0A\x09mechanism\x1A4\x0A\x0BEntityCount\x12\x11\x0A\x04user\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x12\x0A\x05asset\x18\x02 \x01(\x05B\x03\xE0A\x03:\x94\x01\xEAA\x90\x01\x0A\"chronicle.googleapis.com/Watchlist\x12Sprojects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}*\x0Awatchlists2\x09watchlist\"/\x0A\x18WatchlistUserPreferences\x12\x13\x0A\x06pinned\x18\x01 \x01(\x08B\x03\xE0A\x01\"O\x0A\x13GetWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\"\x99\x01\x0A\x15ListWatchlistsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"u\x0A\x16ListWatchlistsResponse\x12=\x0A\x0Awatchlists\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x01\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAD\x01\x0A\x16CreateWatchlistRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x19\x0A\x0Cwatchlist_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x09watchlist\x18\x03 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateWatchlistRequest\x12<\x0A\x09watchlist\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"f\x0A\x16DeleteWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x012\xBE\x08\x0A\x0DEntityService\x12\xAF\x01\x0A\x0CGetWatchlist\x12..google.cloud.chronicle.v1.GetWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x12\xC2\x01\x0A\x0EListWatchlists\x120.google.cloud.chronicle.v1.ListWatchlistsRequest\x1A1.google.cloud.chronicle.v1.ListWatchlistsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/watchlists\x12\xD9\x01\x0A\x0FCreateWatchlist\x121.google.cloud.chronicle.v1.CreateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"m\xDAA\x1Dparent,watchlist,watchlist_id\x82\xD3\xE4\x93\x02G\":/v1/{parent=projects/*/locations/*/instances/*}/watchlists:\x09watchlist\x12\xDB\x01\x0A\x0FUpdateWatchlist\x121.google.cloud.chronicle.v1.UpdateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"o\xDAA\x15watchlist,update_mask\x82\xD3\xE4\x93\x02Q2D/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}:\x09watchlist\x12\xAD\x01\x0A\x0FDeleteWatchlist\x121.google.cloud.chronicle.v1.DeleteWatchlistRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC2\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0BEntityProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php new file mode 100644 index 000000000000..f4fbffb8eaae --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xEA\x06\x0A9google/cloud/chronicle/v1/featured_content_metadata.proto\x12\x19google.cloud.chronicle.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x92\x04\x0A\x17FeaturedContentMetadata\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x05 \x01(\x09B\x03\xE0A\x03\x12\x16\x0A\x09certified\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x0Acategories\x18\x08 \x03(\x09B\x03\xE0A\x03\x12\x14\x0A\x07version\x18\x09 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x08verified\x18\x0A \x01(\x08B\x03\xE0A\x03H\x00\x88\x01\x01\x12^\x0A\x0Bsource_type\x18\x0B \x01(\x0E2D.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceTypeB\x03\xE0A\x03\"`\x0A\x11ContentSourceType\x12#\x0A\x1FCONTENT_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GOOGLE\x10\x01\x12\x0D\x0A\x09COMMUNITY\x10\x02\x12\x0B\x0A\x07PARTNER\x10\x03B\x0B\x0A\x09_verifiedB\xD3\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x1CFeaturedContentMetadataProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php new file mode 100644 index 000000000000..b081e08823f4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\x9F\x18\x0AAgoogle/cloud/chronicle/v1/featured_content_native_dashboard.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A9google/cloud/chronicle/v1/featured_content_metadata.proto\x1A0google/cloud/chronicle/v1/native_dashboard.proto\"\xF5\x03\x0A\x1EFeaturedContentNativeDashboard\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12Q\x0A\x10content_metadata\x18\x02 \x01(\x0B22.google.cloud.chronicle.v1.FeaturedContentMetadataB\x03\xE0A\x03\x12^\x0A\x11dashboard_content\x18\x03 \x01(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueriesB\x03\xE0A\x01:\x8C\x02\xEAA\x88\x02\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\x12\x8B\x01projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}*\x1FfeaturedContentNativeDashboards2\x1EfeaturedContentNativeDashboard\"y\x0A(GetFeaturedContentNativeDashboardRequest\x12M\x0A\x04name\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\"\xC3\x01\x0A*ListFeaturedContentNativeDashboardsRequest\x12O\x0A\x06parent\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x127chronicle.googleapis.com/FeaturedContentNativeDashboard\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xAD\x01\x0A+ListFeaturedContentNativeDashboardsResponse\x12e\x0A\"featured_content_native_dashboards\x18\x01 \x03(\x0B29.google.cloud.chronicle.v1.FeaturedContentNativeDashboard\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xE8\x01\x0A,InstallFeaturedContentNativeDashboardRequest\x12M\x0A\x04name\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\x12i\x0A!featured_content_native_dashboard\x18\x02 \x01(\x0B29.google.cloud.chronicle.v1.FeaturedContentNativeDashboardB\x03\xE0A\x01\"{\x0A-InstallFeaturedContentNativeDashboardResponse\x12J\x0A\x10native_dashboard\x18\x01 \x01(\x09B0\xE0A\x01\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard2\xBC\x08\x0A%FeaturedContentNativeDashboardService\x12\x8E\x02\x0A!GetFeaturedContentNativeDashboard\x12C.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest\x1A9.google.cloud.chronicle.v1.FeaturedContentNativeDashboard\"i\xDAA\x04name\x82\xD3\xE4\x93\x02\\\x12Z/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}\x12\xA1\x02\x0A#ListFeaturedContentNativeDashboards\x12E.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest\x1AF.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse\"k\xDAA\x06parent\x82\xD3\xE4\x93\x02\\\x12Z/v1/{parent=projects/*/locations/*/instances/*/contentHub}/featuredContentNativeDashboards\x12\xB0\x02\x0A%InstallFeaturedContentNativeDashboard\x12G.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest\x1AH.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g\"b/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}:install:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xE4\x02\x0A\x1Dcom.google.cloud.chronicle.v1B#FeaturedContentNativeDashboardProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1\xEAA\x86\x01\x0A#chronicle.googleapis.com/ContentHub\x12Gprojects/{project}/locations/{location}/instances/{instance}/contentHub*\x0AcontentHub2\x0AcontentHubb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php new file mode 100644 index 000000000000..35968a37f5c2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xD7\x06\x0A(google/cloud/chronicle/v1/instance.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\x98\x01\x0A\x08Instance\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08:y\xEAAv\x0A!chronicle.googleapis.com/Instance\x12internalAddGeneratedFile( + "\x0A\x8AF\x0A0google/cloud/chronicle/v1/native_dashboard.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A/google/cloud/chronicle/v1/dashboard_chart.proto\x1A/google/cloud/chronicle/v1/dashboard_query.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"u\x0A\x1DExportNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12\x12\x0A\x05names\x18\x02 \x03(\x09B\x03\xE0A\x02\"{\x0A\x1EExportNativeDashboardsResponse\x12J\x0A\x12inline_destination\x18\x01 \x01(\x0B2,.google.cloud.chronicle.v1.InlineDestinationH\x00B\x0D\x0A\x0Bdestination\"g\x0A\x11InlineDestination\x12R\x0A\x0Adashboards\x18\x01 \x03(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries\"\xFE\x01\x0A#NativeDashboardWithChartsAndQueries\x12B\x0A\x09dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x01\x12H\x0A\x10dashboard_charts\x18\x02 \x03(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x01\x12I\x0A\x11dashboard_queries\x18\x03 \x03(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\"\xB5\x01\x0A\x1DImportNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12R\x0A\x06source\x18\x02 \x01(\x0B2=.google.cloud.chronicle.v1.ImportNativeDashboardsInlineSourceB\x03\xE0A\x02\"}\x0A\"ImportNativeDashboardsInlineSource\x12W\x0A\x0Adashboards\x18\x01 \x03(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueriesB\x03\xE0A\x02\"e\x0A\x1EImportNativeDashboardsResponse\x12C\x0A\x07results\x18\x01 \x03(\x0B2-.google.cloud.chronicle.v1.ImportExportStatusB\x03\xE0A\x03\"P\x0A\x12ImportExportStatus\x12\x11\x0A\x09dashboard\x18\x01 \x01(\x09\x12'\x0A\x06status\x18\x02 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03\"\x85\x06\x0A\x0FNativeDashboard\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x03\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x0Adefinition\x18\x04 \x01(\x0B2..google.cloud.chronicle.v1.DashboardDefinitionB\x03\xE0A\x01\x12;\x0A\x04type\x18\x05 \x01(\x0E2(.google.cloud.chronicle.v1.DashboardTypeB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Ecreate_user_id\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eupdate_user_id\x18\x09 \x01(\x09B\x03\xE0A\x03\x12N\x0A\x13dashboard_user_data\x18\x0A \x01(\x0B2,.google.cloud.chronicle.v1.DashboardUserDataB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0B \x01(\x09B\x03\xE0A\x01\x12?\x0A\x06access\x18\x0C \x01(\x0E2*.google.cloud.chronicle.v1.DashboardAccessB\x03\xE0A\x03:\xAC\x01\xEAA\xA8\x01\x0A(chronicle.googleapis.com/NativeDashboard\x12Yprojects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}*\x10nativeDashboards2\x0FnativeDashboard\"\xAB\x01\x0A\x1CCreateNativeDashboardRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12I\x0A\x10native_dashboard\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\"\x9E\x01\x0A\x19GetNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12A\x0A\x04view\x18\x02 \x01(\x0E2..google.cloud.chronicle.v1.NativeDashboardViewB\x03\xE0A\x01\"\xD3\x01\x0A\x1BListNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12A\x0A\x04view\x18\x04 \x01(\x0E2..google.cloud.chronicle.v1.NativeDashboardViewB\x03\xE0A\x01\"~\x0A\x1CListNativeDashboardsResponse\x12E\x0A\x11native_dashboards\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9F\x01\x0A\x1CUpdateNativeDashboardRequest\x12I\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"\xAC\x01\x0A\x1FDuplicateNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12I\x0A\x10native_dashboard\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\"^\x0A\x1CDeleteNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\"\xC6\x02\x0A\x0FAddChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12G\x0A\x0Fdashboard_query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\x12G\x0A\x0Fdashboard_chart\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x02\x12a\x0A\x0Cchart_layout\x18\x04 \x01(\x0B2F.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutB\x03\xE0A\x02\"\x9C\x01\x0A\x10AddChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\xE4\x02\x0A\x10EditChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12G\x0A\x0Fdashboard_query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\x12G\x0A\x0Fdashboard_chart\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x01\x122\x0A\x09edit_mask\x18\x04 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12J\x0A\x11language_features\x18\x05 \x03(\x0E2*.google.cloud.chronicle.v1.LanguageFeatureB\x03\xE0A\x01\"\x9D\x01\x0A\x11EditChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\x9E\x01\x0A\x12RemoveChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12H\x0A\x0Fdashboard_chart\x18\x02 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA1\x01\x0A\x15DuplicateChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12H\x0A\x0Fdashboard_chart\x18\x02 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA2\x01\x0A\x16DuplicateChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\\\x0A\x11DashboardUserData\x124\x0A\x10last_viewed_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x11\x0A\x09is_pinned\x18\x02 \x01(\x08\"\xF3\x03\x0A\x13DashboardDefinition\x12;\x0A\x07filters\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DashboardFilter\x12\x13\x0A\x0Bfingerprint\x18\x02 \x01(\x09\x12J\x0A\x06charts\x18\x04 \x03(\x0B2:.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig\x1A\xBD\x02\x0A\x0BChartConfig\x12H\x0A\x0Fdashboard_chart\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\\\x0A\x0Cchart_layout\x18\x02 \x01(\x0B2F.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout\x12\x13\x0A\x0Bfilters_ids\x18\x04 \x03(\x09\x1Aq\x0A\x0BChartLayout\x12\x14\x0A\x07start_x\x18\x09 \x01(\x05H\x00\x88\x01\x01\x12\x0E\x0A\x06span_x\x18\x0A \x01(\x05\x12\x14\x0A\x07start_y\x18\x0B \x01(\x05H\x01\x88\x01\x01\x12\x0E\x0A\x06span_y\x18\x0C \x01(\x05B\x0A\x0A\x08_start_xB\x0A\x0A\x08_start_y*r\x0A\x0DDashboardType\x12\x1E\x0A\x1ADASHBOARD_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07CURATED\x10\x01\x12\x0B\x0A\x07PRIVATE\x10\x02\x12\x0A\x0A\x06PUBLIC\x10\x03\x12\x0A\x0A\x06CUSTOM\x10\x04\x12\x0F\x0A\x0BMARKETPLACE\x10\x05*`\x0A\x0FDashboardAccess\x12 \x0A\x1CDASHBOARD_ACCESS_UNSPECIFIED\x10\x00\x12\x15\x0A\x11DASHBOARD_PRIVATE\x10\x01\x12\x14\x0A\x10DASHBOARD_PUBLIC\x10\x02*}\x0A\x13NativeDashboardView\x12%\x0A!NATIVE_DASHBOARD_VIEW_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BNATIVE_DASHBOARD_VIEW_BASIC\x10\x01\x12\x1E\x0A\x1ANATIVE_DASHBOARD_VIEW_FULL\x10\x022\x86\x17\x0A\x16NativeDashboardService\x12\xF2\x01\x0A\x15CreateNativeDashboard\x127.google.cloud.chronicle.v1.CreateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"t\xDAA\x17parent,native_dashboard\x82\xD3\xE4\x93\x02T\"@/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:\x10native_dashboard\x12\xC7\x01\x0A\x12GetNativeDashboard\x124.google.cloud.chronicle.v1.GetNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}\x12\xDA\x01\x0A\x14ListNativeDashboards\x126.google.cloud.chronicle.v1.ListNativeDashboardsRequest\x1A7.google.cloud.chronicle.v1.ListNativeDashboardsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards\x12\x89\x02\x0A\x15UpdateNativeDashboard\x127.google.cloud.chronicle.v1.UpdateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"\x8A\x01\xDAA\x1Cnative_dashboard,update_mask\x82\xD3\xE4\x93\x02e2Q/v1/{native_dashboard.name=projects/*/locations/*/instances/*/nativeDashboards/*}:\x10native_dashboard\x12\xF2\x01\x0A\x18DuplicateNativeDashboard\x12:.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"n\xDAA\x16name, native_dashboard\x82\xD3\xE4\x93\x02O\"J/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicate:\x01*\x12\xB9\x01\x0A\x15DeleteNativeDashboard\x127.google.cloud.chronicle.v1.DeleteNativeDashboardRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}\x12\xE2\x01\x0A\x08AddChart\x12*.google.cloud.chronicle.v1.AddChartRequest\x1A+.google.cloud.chronicle.v1.AddChartResponse\"}\xDAA&name, dashboard_query, dashboard_chart\x82\xD3\xE4\x93\x02N\"I/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:addChart:\x01*\x12\xC8\x01\x0A\x0BRemoveChart\x12-.google.cloud.chronicle.v1.RemoveChartRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"^\xDAA\x04name\x82\xD3\xE4\x93\x02Q\"L/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:removeChart:\x01*\x12\xF2\x01\x0A\x09EditChart\x12+.google.cloud.chronicle.v1.EditChartRequest\x1A,.google.cloud.chronicle.v1.EditChartResponse\"\x89\x01\xDAA1name, dashboard_query, dashboard_chart, edit_mask\x82\xD3\xE4\x93\x02O\"J/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart:\x01*\x12\xD8\x01\x0A\x0EDuplicateChart\x120.google.cloud.chronicle.v1.DuplicateChartRequest\x1A1.google.cloud.chronicle.v1.DuplicateChartResponse\"a\xDAA\x04name\x82\xD3\xE4\x93\x02T\"O/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicateChart:\x01*\x12\xF1\x01\x0A\x16ExportNativeDashboards\x128.google.cloud.chronicle.v1.ExportNativeDashboardsRequest\x1A9.google.cloud.chronicle.v1.ExportNativeDashboardsResponse\"b\xDAA\x0Dparent, names\x82\xD3\xE4\x93\x02L\"G/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:export:\x01*\x12\xF1\x01\x0A\x16ImportNativeDashboards\x128.google.cloud.chronicle.v1.ImportNativeDashboardsRequest\x1A9.google.cloud.chronicle.v1.ImportNativeDashboardsResponse\"b\xDAA\x0Dparent,source\x82\xD3\xE4\x93\x02L\"G/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:import:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCB\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x14NativeDashboardProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php new file mode 100644 index 000000000000..9c6e24f4392f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xFF\x19\x0A.google/cloud/chronicle/v1/reference_list.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"]\x0A\x09ScopeInfo\x12P\x0A\x14reference_list_scope\x18\x02 \x01(\x0B2-.google.cloud.chronicle.v1.ReferenceListScopeB\x03\xE0A\x02\".\x0A\x12ReferenceListScope\x12\x18\x0A\x0Bscope_names\x18\x01 \x03(\x09B\x03\xE0A\x01\"\x93\x01\x0A\x17GetReferenceListRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12:\x0A\x04view\x18\x02 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"\xBE\x01\x0A\x19ListReferenceListsRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12:\x0A\x04view\x18\x04 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"x\x0A\x1AListReferenceListsResponse\x12A\x0A\x0Freference_lists\x18\x01 \x03(\x0B2(.google.cloud.chronicle.v1.ReferenceList\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC3\x01\x0A\x1ACreateReferenceListRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12E\x0A\x0Ereference_list\x18\x02 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12\x1E\x0A\x11reference_list_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x94\x01\x0A\x1AUpdateReferenceListRequest\x12E\x0A\x0Ereference_list\x18\x01 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\xAA\x04\x0A\x0DReferenceList\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x07entries\x18\x05 \x03(\x0B2-.google.cloud.chronicle.v1.ReferenceListEntryB\x03\xE0A\x02\x12\x12\x0A\x05rules\x18\x06 \x03(\x09B\x03\xE0A\x03\x12L\x0A\x0Bsyntax_type\x18\x08 \x01(\x0E22.google.cloud.chronicle.v1.ReferenceListSyntaxTypeB\x03\xE0A\x02\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x128\x0A\x0Ascope_info\x18\x0B \x01(\x0B2\$.google.cloud.chronicle.v1.ScopeInfo:\x8A\x01\xEAA\x86\x01\x0A&chronicle.googleapis.com/ReferenceList\x12\\projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}\"(\x0A\x12ReferenceListEntry\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x02*\xC2\x01\x0A\x17ReferenceListSyntaxType\x12*\x0A&REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED\x10\x00\x120\x0A,REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING\x10\x01\x12\$\x0A REFERENCE_LIST_SYNTAX_TYPE_REGEX\x10\x02\x12#\x0A\x1FREFERENCE_LIST_SYNTAX_TYPE_CIDR\x10\x03*u\x0A\x11ReferenceListView\x12#\x0A\x1FREFERENCE_LIST_VIEW_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19REFERENCE_LIST_VIEW_BASIC\x10\x01\x12\x1C\x0A\x18REFERENCE_LIST_VIEW_FULL\x10\x022\xF5\x07\x0A\x14ReferenceListService\x12\xBF\x01\x0A\x10GetReferenceList\x122.google.cloud.chronicle.v1.GetReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"M\xDAA\x04name\x82\xD3\xE4\x93\x02@\x12>/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}\x12\xD2\x01\x0A\x12ListReferenceLists\x124.google.cloud.chronicle.v1.ListReferenceListsRequest\x1A5.google.cloud.chronicle.v1.ListReferenceListsResponse\"O\xDAA\x06parent\x82\xD3\xE4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/instances/*}/referenceLists\x12\xF9\x01\x0A\x13CreateReferenceList\x125.google.cloud.chronicle.v1.CreateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x80\x01\xDAA'parent,reference_list,reference_list_id\x82\xD3\xE4\x93\x02P\">/v1/{parent=projects/*/locations/*/instances/*}/referenceLists:\x0Ereference_list\x12\xFB\x01\x0A\x13UpdateReferenceList\x125.google.cloud.chronicle.v1.UpdateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x82\x01\xDAA\x1Areference_list,update_mask\x82\xD3\xE4\x93\x02_2M/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}:\x0Ereference_list\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC9\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x12ReferenceListProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php new file mode 100644 index 000000000000..752c16da4d3a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + "\x0A\xE2@\x0A\$google/cloud/chronicle/v1/rule.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\x91\x09\x0A\x04Rule\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Brevision_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x0C\x0A\x04text\x18\x04 \x01(\x09\x12\x13\x0A\x06author\x18\x05 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x08severity\x18\x06 \x01(\x0B2#.google.cloud.chronicle.v1.SeverityB\x03\xE0A\x03\x12D\x0A\x08metadata\x18\x07 \x03(\x0B2-.google.cloud.chronicle.v1.Rule.MetadataEntryB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12P\x0A\x11compilation_state\x18\x0A \x01(\x0E20.google.cloud.chronicle.v1.Rule.CompilationStateB\x03\xE0A\x03\x126\x0A\x04type\x18\x0C \x01(\x0E2#.google.cloud.chronicle.v1.RuleTypeB\x03\xE0A\x03\x12G\x0A\x0Freference_lists\x18\x0D \x03(\x09B.\xE0A\x03\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12M\x0A\x17allowed_run_frequencies\x18\x0E \x03(\x0E2'.google.cloud.chronicle.v1.RunFrequencyB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0F \x01(\x09\x12<\x0A\x05scope\x18\x10 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12V\x0A\x17compilation_diagnostics\x18\x11 \x03(\x0B20.google.cloud.chronicle.v1.CompilationDiagnosticB\x03\xE0A\x03\x12.\x0A!near_real_time_live_rule_eligible\x18\x12 \x01(\x08B\x03\xE0A\x03\x12?\x0A\x0Binputs_used\x18\x14 \x01(\x0B2%.google.cloud.chronicle.v1.InputsUsedB\x03\xE0A\x03\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"P\x0A\x10CompilationState\x12!\x0A\x1DCOMPILATION_STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02:m\xEAAj\x0A\x1Dchronicle.googleapis.com/Rule\x12Iprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}\"\xCB\x05\x0A\x0ERuleDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x0F\x0A\x07enabled\x18\x02 \x01(\x08\x12\x10\x0A\x08alerting\x18\x03 \x01(\x08\x12\x10\x0A\x08archived\x18\x04 \x01(\x08\x125\x0A\x0Carchive_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12>\x0A\x0Drun_frequency\x18\x06 \x01(\x0E2'.google.cloud.chronicle.v1.RunFrequency\x12V\x0A\x0Fexecution_state\x18\x07 \x01(\x0E28.google.cloud.chronicle.v1.RuleDeployment.ExecutionStateB\x03\xE0A\x03\x12=\x0A\x0Eproducer_rules\x18\x08 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12=\x0A\x0Econsumer_rules\x18\x09 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12F\x0A\x1Dlast_alert_status_change_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"W\x0A\x0EExecutionState\x12\x1F\x0A\x1BEXECUTION_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07DEFAULT\x10\x01\x12\x0B\x0A\x07LIMITED\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03:\x82\x01\xEAA\x7F\x0A'chronicle.googleapis.com/RuleDeployment\x12Tprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment\"\xC8\x03\x0A\x09Retrohunt\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x124\x0A\x10process_interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x02\x126\x0A\x12execution_interval\x18\x03 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12>\x0A\x05state\x18\x04 \x01(\x0E2*.google.cloud.chronicle.v1.Retrohunt.StateB\x03\xE0A\x03\x12 \x0A\x13progress_percentage\x18\x05 \x01(\x02B\x03\xE0A\x03\"P\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04:\x8A\x01\xEAA\x86\x01\x0A\"chronicle.googleapis.com/Retrohunt\x12`projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}\"~\x0A\x11CreateRuleRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x122\x0A\x04rule\x18\x02 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\"x\x0A\x0EGetRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"\xB3\x01\x0A\x10ListRulesRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\\\x0A\x11ListRulesResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"x\x0A\x11UpdateRuleRequest\x122\x0A\x04rule\x18\x01 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\\\x0A\x11DeleteRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xA9\x01\x0A\x18ListRuleRevisionsRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"d\x0A\x19ListRuleRevisionsResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x92\x01\x0A\x16CreateRetrohuntRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12<\x0A\x09retrohunt\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.RetrohuntB\x03\xE0A\x02\"O\x0A\x13GetRetrohuntRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Retrohunt\"\x8A\x01\x0A\x15ListRetrohuntsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"k\x0A\x16ListRetrohuntsResponse\x128\x0A\x0Aretrohunts\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.Retrohunt\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"Y\x0A\x18GetRuleDeploymentRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/RuleDeployment\"\x94\x01\x0A\x1AListRuleDeploymentsRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/RuleDeployment\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"{\x0A\x1BListRuleDeploymentsResponse\x12C\x0A\x10rule_deployments\x18\x01 \x03(\x0B2).google.cloud.chronicle.v1.RuleDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9C\x01\x0A\x1BUpdateRuleDeploymentRequest\x12G\x0A\x0Frule_deployment\x18\x01 \x01(\x0B2).google.cloud.chronicle.v1.RuleDeploymentB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"y\x0A\x13CompilationPosition\x12\x17\x0A\x0Astart_line\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x19\x0A\x0Cstart_column\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x15\x0A\x08end_line\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Aend_column\x18\x04 \x01(\x05B\x03\xE0A\x03\"\x96\x02\x0A\x15CompilationDiagnostic\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x08position\x18\x02 \x01(\x0B2..google.cloud.chronicle.v1.CompilationPositionB\x03\xE0A\x03\x12P\x0A\x08severity\x18\x03 \x01(\x0E29.google.cloud.chronicle.v1.CompilationDiagnostic.SeverityB\x03\xE0A\x03\x12\x10\x0A\x03uri\x18\x05 \x01(\x09B\x03\xE0A\x03\"<\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WARNING\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\" \x0A\x08Severity\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\"\x9A\x01\x0A\x11RetrohuntMetadata\x125\x0A\x09retrohunt\x18\x01 \x01(\x09B\"\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x12execution_interval\x18\x02 \x01(\x0B2\x15.google.type.Interval\x12\x1B\x0A\x13progress_percentage\x18\x03 \x01(\x02\"Z\x0A\x0AInputsUsed\x12\x15\x0A\x08uses_udm\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Buses_entity\x18\x02 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Euses_detection\x18\x03 \x01(\x08B\x03\xE0A\x01*N\x0A\x0CRunFrequency\x12\x1D\x0A\x19RUN_FREQUENCY_UNSPECIFIED\x10\x00\x12\x08\x0A\x04LIVE\x10\x01\x12\x0A\x0A\x06HOURLY\x10\x02\x12\x09\x0A\x05DAILY\x10\x03*H\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CSINGLE_EVENT\x10\x01\x12\x0F\x0A\x0BMULTI_EVENT\x10\x02*V\x0A\x08RuleView\x12\x19\x0A\x15RULE_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x1A\x0A\x16REVISION_METADATA_ONLY\x10\x032\xA9\x13\x0A\x0BRuleService\x12\xAE\x01\x0A\x0ACreateRule\x12,.google.cloud.chronicle.v1.CreateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"Q\xDAA\x0Bparent,rule\x82\xD3\xE4\x93\x02=\"5/v1/{parent=projects/*/locations/*/instances/*}/rules:\x04rule\x12\x9B\x01\x0A\x07GetRule\x12).google.cloud.chronicle.v1.GetRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xAE\x01\x0A\x09ListRules\x12+.google.cloud.chronicle.v1.ListRulesRequest\x1A,.google.cloud.chronicle.v1.ListRulesResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1/{parent=projects/*/locations/*/instances/*}/rules\x12\xB8\x01\x0A\x0AUpdateRule\x12,.google.cloud.chronicle.v1.UpdateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"[\xDAA\x10rule,update_mask\x82\xD3\xE4\x93\x02B2:/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}:\x04rule\x12\x98\x01\x0A\x0ADeleteRule\x12,.google.cloud.chronicle.v1.DeleteRuleRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xD2\x01\x0A\x11ListRuleRevisions\x123.google.cloud.chronicle.v1.ListRuleRevisionsRequest\x1A4.google.cloud.chronicle.v1.ListRuleRevisionsResponse\"R\xDAA\x04name\x82\xD3\xE4\x93\x02E\x12C/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions\x12\xEF\x01\x0A\x0FCreateRetrohunt\x121.google.cloud.chronicle.v1.CreateRetrohuntRequest\x1A\x1D.google.longrunning.Operation\"\x89\x01\xCAA\x1E\x0A\x09Retrohunt\x12\x11RetrohuntMetadata\xDAA\x10parent,retrohunt\x82\xD3\xE4\x93\x02O\"B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts:\x09retrohunt\x12\xB7\x01\x0A\x0CGetRetrohunt\x12..google.cloud.chronicle.v1.GetRetrohuntRequest\x1A\$.google.cloud.chronicle.v1.Retrohunt\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}\x12\xCA\x01\x0A\x0EListRetrohunts\x120.google.cloud.chronicle.v1.ListRetrohuntsRequest\x1A1.google.cloud.chronicle.v1.ListRetrohuntsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts\x12\xC4\x01\x0A\x11GetRuleDeployment\x123.google.cloud.chronicle.v1.GetRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}\x12\xDA\x01\x0A\x13ListRuleDeployments\x125.google.cloud.chronicle.v1.ListRuleDeploymentsRequest\x1A6.google.cloud.chronicle.v1.ListRuleDeploymentsResponse\"T\xDAA\x06parent\x82\xD3\xE4\x93\x02E\x12C/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments\x12\x83\x02\x0A\x14UpdateRuleDeployment\x126.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"\x87\x01\xDAA\x1Brule_deployment,update_mask\x82\xD3\xE4\x93\x02c2P/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}:\x0Frule_deployment\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC0\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x09RuleProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php new file mode 100644 index 000000000000..2cc4250997ae --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php @@ -0,0 +1,227 @@ +google.cloud.chronicle.v1.AddChartRequest + */ +class AddChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Query used to create the chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_query = null; + /** + * Required. Chart to be added to the dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dashboard_chart = null; + /** + * Required. ChartLayout for newly added chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $chart_layout = null; + + /** + * @param string $name Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery Optional. Query used to create the chart. + * @param \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart Required. Chart to be added to the dashboard. + * + * @return \Google\Cloud\Chronicle\V1\AddChartRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery, \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart): self + { + return (new self()) + ->setName($name) + ->setDashboardQuery($dashboardQuery) + ->setDashboardChart($dashboardChart); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Cloud\Chronicle\V1\DashboardQuery $dashboard_query + * Optional. Query used to create the chart. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Required. Chart to be added to the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $chart_layout + * Required. ChartLayout for newly added chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to add chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Query used to create the chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null + */ + public function getDashboardQuery() + { + return $this->dashboard_query; + } + + public function hasDashboardQuery() + { + return isset($this->dashboard_query); + } + + public function clearDashboardQuery() + { + unset($this->dashboard_query); + } + + /** + * Optional. Query used to create the chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var + * @return $this + */ + public function setDashboardQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->dashboard_query = $var; + + return $this; + } + + /** + * Required. Chart to be added to the dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Required. Chart to be added to the dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Required. ChartLayout for newly added chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout|null + */ + public function getChartLayout() + { + return $this->chart_layout; + } + + public function hasChartLayout() + { + return isset($this->chart_layout); + } + + public function clearChartLayout() + { + unset($this->chart_layout); + } + + /** + * Required. ChartLayout for newly added chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $var + * @return $this + */ + public function setChartLayout($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout::class); + $this->chart_layout = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php new file mode 100644 index 000000000000..a07f0fc6420c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php @@ -0,0 +1,121 @@ +google.cloud.chronicle.v1.AddChartResponse + */ +class AddChartResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + protected $native_dashboard = null; + /** + * Created chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + protected $dashboard_chart = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Dashboard with chart added in definition. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Created chart resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Created chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Created chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php new file mode 100644 index 000000000000..38f79af8c7c2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php @@ -0,0 +1,339 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig + */ +class AdvancedFilterConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * + * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $token = ''; + /** + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * + * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $prefix = ''; + /** + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * + * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $suffix = ''; + /** + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * + * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $separator = ''; + /** + * Optional. Whether to allow selection of multiple values. + * + * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $multiple_allowed = false; + /** + * Optional. Default values to use if no value is selected/provided. + * + * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $default_values; + /** + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * + * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip_default_affixes = false; + /** + * Required. Source of the values for the filter. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value_source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $token + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * @type string $prefix + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * @type string $suffix + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * @type string $separator + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * @type bool $multiple_allowed + * Optional. Whether to allow selection of multiple values. + * @type string[] $default_values + * Optional. Default values to use if no value is selected/provided. + * @type bool $skip_default_affixes + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource $value_source + * Required. Source of the values for the filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * + * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Required. The token name to look for in the query (e.g., "hostname"). + * The system will automatically wrap this in '$' (e.g., "$hostname$"). + * + * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkString($var, True); + $this->token = $var; + + return $this; + } + + /** + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * + * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * Optional. String to prepend to the final replaced value (e.g., "/", "^(", + * "\""). + * + * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * + * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSuffix() + { + return $this->suffix; + } + + /** + * Optional. String to append to the final replaced value (e.g., "/", ")$", + * "\""). + * + * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSuffix($var) + { + GPBUtil::checkString($var, True); + $this->suffix = $var; + + return $this; + } + + /** + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * + * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSeparator() + { + return $this->separator; + } + + /** + * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field + * = "). + * + * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSeparator($var) + { + GPBUtil::checkString($var, True); + $this->separator = $var; + + return $this; + } + + /** + * Optional. Whether to allow selection of multiple values. + * + * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getMultipleAllowed() + { + return $this->multiple_allowed; + } + + /** + * Optional. Whether to allow selection of multiple values. + * + * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setMultipleAllowed($var) + { + GPBUtil::checkBool($var); + $this->multiple_allowed = $var; + + return $this; + } + + /** + * Optional. Default values to use if no value is selected/provided. + * + * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getDefaultValues() + { + return $this->default_values; + } + + /** + * Optional. Default values to use if no value is selected/provided. + * + * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setDefaultValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->default_values = $arr; + + return $this; + } + + /** + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * + * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSkipDefaultAffixes() + { + return $this->skip_default_affixes; + } + + /** + * Optional. Whether to skip the configured prefix and suffix when using + * default values. If true, default values are inserted raw (joined by the + * separator). + * + * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSkipDefaultAffixes($var) + { + GPBUtil::checkBool($var); + $this->skip_default_affixes = $var; + + return $this; + } + + /** + * Required. Source of the values for the filter. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource|null + */ + public function getValueSource() + { + return $this->value_source; + } + + public function hasValueSource() + { + return isset($this->value_source); + } + + public function clearValueSource() + { + unset($this->value_source); + } + + /** + * Required. Source of the values for the filter. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource $var + * @return $this + */ + public function setValueSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource::class); + $this->value_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php new file mode 100644 index 000000000000..9bae191bc72d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php @@ -0,0 +1,71 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions + */ +class ManualOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * + * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $options + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * + * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Optional. The options provided by the user. + * The max number of options is limited to 10000. + * + * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->options = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php new file mode 100644 index 000000000000..fdc4d1b5c93e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php @@ -0,0 +1,184 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions + */ +class QueryOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The query to execute to fetch the values. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Required. The column name to use for the values. + * + * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $column = ''; + /** + * Optional. Enable global time filter + * + * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $global_time_filter_enabled = false; + /** + * Optional. Time range input specifically for the filter's population + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $input = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * Required. The query to execute to fetch the values. + * @type string $column + * Required. The column name to use for the values. + * @type bool $global_time_filter_enabled + * Optional. Enable global time filter + * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input $input + * Optional. Time range input specifically for the filter's population + * query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The query to execute to fetch the values. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. The query to execute to fetch the values. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Required. The column name to use for the values. + * + * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Required. The column name to use for the values. + * + * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Optional. Enable global time filter + * + * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getGlobalTimeFilterEnabled() + { + return $this->global_time_filter_enabled; + } + + /** + * Optional. Enable global time filter + * + * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setGlobalTimeFilterEnabled($var) + { + GPBUtil::checkBool($var); + $this->global_time_filter_enabled = $var; + + return $this; + } + + /** + * Optional. Time range input specifically for the filter's population + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input|null + */ + public function getInput() + { + return $this->input; + } + + public function hasInput() + { + return isset($this->input); + } + + public function clearInput() + { + unset($this->input); + } + + /** + * Optional. Time range input specifically for the filter's population + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input $var + * @return $this + */ + public function setInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input::class); + $this->input = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php new file mode 100644 index 000000000000..3ceaa6be54f0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource + */ +class ValueSource extends \Google\Protobuf\Internal\Message +{ + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions $manual_options + * Optional. Manual options provided by the user. + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions $query_options + * Optional. Query options to fetch the values from the query engine. + * This is used for the filter's population query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Manual options provided by the user. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions|null + */ + public function getManualOptions() + { + return $this->readOneof(1); + } + + public function hasManualOptions() + { + return $this->hasOneof(1); + } + + /** + * Optional. Manual options provided by the user. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions $var + * @return $this + */ + public function setManualOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. Query options to fetch the values from the query engine. + * This is used for the filter's population query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions|null + */ + public function getQueryOptions() + { + return $this->readOneof(2); + } + + public function hasQueryOptions() + { + return $this->hasOneof(2); + } + + /** + * Optional. Query options to fetch the values from the query engine. + * This is used for the filter's population query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions $var + * @return $this + */ + public function setQueryOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php new file mode 100644 index 000000000000..13139996bbfb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php @@ -0,0 +1,63 @@ +google.cloud.chronicle.v1.AxisType + */ +class AxisType +{ + /** + * Generated from protobuf enum AXIS_TYPE_UNSPECIFIED = 0; + */ + const AXIS_TYPE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum VALUE = 1; + */ + const VALUE = 1; + /** + * Generated from protobuf enum CATEGORY = 2; + */ + const CATEGORY = 2; + /** + * Generated from protobuf enum TIME = 3; + */ + const TIME = 3; + /** + * Generated from protobuf enum LOG = 4; + */ + const LOG = 4; + + private static $valueToName = [ + self::AXIS_TYPE_UNSPECIFIED => 'AXIS_TYPE_UNSPECIFIED', + self::VALUE => 'VALUE', + self::CATEGORY => 'CATEGORY', + self::TIME => 'TIME', + self::LOG => 'LOG', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php new file mode 100644 index 000000000000..30510080cba1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php @@ -0,0 +1,138 @@ +google.cloud.chronicle.v1.BatchGetDashboardChartsRequest + */ +class BatchGetDashboardChartsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The names of the dashboard charts to get. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. Please see + * {@see DashboardChartServiceClient::instanceName()} for help formatting this field. + * @param string[] $names Required. The names of the dashboard charts to get. Please see + * {@see DashboardChartServiceClient::dashboardChartName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\BatchGetDashboardChartsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * @type string[] $names + * Required. The names of the dashboard charts to get. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource shared by all dashboard charts being + * retrieved. Format: + * projects/{project}/locations/{location}/instances/{instance} If this is + * set, the parent of all of the dashboard charts specified in `names` must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The names of the dashboard charts to get. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The names of the dashboard charts to get. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php new file mode 100644 index 000000000000..3b02a82be8a5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BatchGetDashboardChartsResponse + */ +class BatchGetDashboardChartsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The dashboardCharts from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + */ + private $dashboard_charts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart[] $dashboard_charts + * The dashboardCharts from the specified chronicle instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * The dashboardCharts from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart> + */ + public function getDashboardCharts() + { + return $this->dashboard_charts; + } + + /** + * The dashboardCharts from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; + * @param \Google\Cloud\Chronicle\V1\DashboardChart[] $var + * @return $this + */ + public function setDashboardCharts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_charts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExport.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExport.php new file mode 100644 index 000000000000..0b7137d679d1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExport.php @@ -0,0 +1,369 @@ +google.cloud.chronicle.v1.BigQueryExport + */ +class BigQueryExport extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the BigQueryExport. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Whether the BigQueryExport has been provisioned for the + * Chronicle instance. + * + * Generated from protobuf field bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $provisioned = false; + /** + * Output only. The BigQueryExportPackage entitled for the Chronicle instance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $big_query_export_package = 0; + /** + * Optional. The export settings for the Entity Graph data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $entity_graph_settings = null; + /** + * Optional. The export settings for the IOC Matches data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ioc_matches_settings = null; + /** + * Optional. The export settings for the Rule Detections data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $rule_detections_settings = null; + /** + * Optional. The export settings for the UDM Events Aggregates data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $udm_events_aggregates_settings = null; + /** + * Optional. The export settings for the UDM Events data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $udm_events_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the BigQueryExport. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * @type bool $provisioned + * Output only. Whether the BigQueryExport has been provisioned for the + * Chronicle instance. + * @type int $big_query_export_package + * Output only. The BigQueryExportPackage entitled for the Chronicle instance. + * @type \Google\Cloud\Chronicle\V1\DataSourceExportSettings $entity_graph_settings + * Optional. The export settings for the Entity Graph data source. + * @type \Google\Cloud\Chronicle\V1\DataSourceExportSettings $ioc_matches_settings + * Optional. The export settings for the IOC Matches data source. + * @type \Google\Cloud\Chronicle\V1\DataSourceExportSettings $rule_detections_settings + * Optional. The export settings for the Rule Detections data source. + * @type \Google\Cloud\Chronicle\V1\DataSourceExportSettings $udm_events_aggregates_settings + * Optional. The export settings for the UDM Events Aggregates data source. + * @type \Google\Cloud\Chronicle\V1\DataSourceExportSettings $udm_events_settings + * Optional. The export settings for the UDM Events data source. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\BigQueryExport::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the BigQueryExport. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the BigQueryExport. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Whether the BigQueryExport has been provisioned for the + * Chronicle instance. + * + * Generated from protobuf field bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getProvisioned() + { + return $this->provisioned; + } + + /** + * Output only. Whether the BigQueryExport has been provisioned for the + * Chronicle instance. + * + * Generated from protobuf field bool provisioned = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setProvisioned($var) + { + GPBUtil::checkBool($var); + $this->provisioned = $var; + + return $this; + } + + /** + * Output only. The BigQueryExportPackage entitled for the Chronicle instance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getBigQueryExportPackage() + { + return $this->big_query_export_package; + } + + /** + * Output only. The BigQueryExportPackage entitled for the Chronicle instance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.BigQueryExportPackage big_query_export_package = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setBigQueryExportPackage($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\BigQueryExportPackage::class); + $this->big_query_export_package = $var; + + return $this; + } + + /** + * Optional. The export settings for the Entity Graph data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DataSourceExportSettings|null + */ + public function getEntityGraphSettings() + { + return $this->entity_graph_settings; + } + + public function hasEntityGraphSettings() + { + return isset($this->entity_graph_settings); + } + + public function clearEntityGraphSettings() + { + unset($this->entity_graph_settings); + } + + /** + * Optional. The export settings for the Entity Graph data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings entity_graph_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataSourceExportSettings $var + * @return $this + */ + public function setEntityGraphSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataSourceExportSettings::class); + $this->entity_graph_settings = $var; + + return $this; + } + + /** + * Optional. The export settings for the IOC Matches data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DataSourceExportSettings|null + */ + public function getIocMatchesSettings() + { + return $this->ioc_matches_settings; + } + + public function hasIocMatchesSettings() + { + return isset($this->ioc_matches_settings); + } + + public function clearIocMatchesSettings() + { + unset($this->ioc_matches_settings); + } + + /** + * Optional. The export settings for the IOC Matches data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings ioc_matches_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataSourceExportSettings $var + * @return $this + */ + public function setIocMatchesSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataSourceExportSettings::class); + $this->ioc_matches_settings = $var; + + return $this; + } + + /** + * Optional. The export settings for the Rule Detections data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DataSourceExportSettings|null + */ + public function getRuleDetectionsSettings() + { + return $this->rule_detections_settings; + } + + public function hasRuleDetectionsSettings() + { + return isset($this->rule_detections_settings); + } + + public function clearRuleDetectionsSettings() + { + unset($this->rule_detections_settings); + } + + /** + * Optional. The export settings for the Rule Detections data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings rule_detections_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataSourceExportSettings $var + * @return $this + */ + public function setRuleDetectionsSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataSourceExportSettings::class); + $this->rule_detections_settings = $var; + + return $this; + } + + /** + * Optional. The export settings for the UDM Events Aggregates data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DataSourceExportSettings|null + */ + public function getUdmEventsAggregatesSettings() + { + return $this->udm_events_aggregates_settings; + } + + public function hasUdmEventsAggregatesSettings() + { + return isset($this->udm_events_aggregates_settings); + } + + public function clearUdmEventsAggregatesSettings() + { + unset($this->udm_events_aggregates_settings); + } + + /** + * Optional. The export settings for the UDM Events Aggregates data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_aggregates_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataSourceExportSettings $var + * @return $this + */ + public function setUdmEventsAggregatesSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataSourceExportSettings::class); + $this->udm_events_aggregates_settings = $var; + + return $this; + } + + /** + * Optional. The export settings for the UDM Events data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DataSourceExportSettings|null + */ + public function getUdmEventsSettings() + { + return $this->udm_events_settings; + } + + public function hasUdmEventsSettings() + { + return isset($this->udm_events_settings); + } + + public function clearUdmEventsSettings() + { + unset($this->udm_events_settings); + } + + /** + * Optional. The export settings for the UDM Events data source. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSourceExportSettings udm_events_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataSourceExportSettings $var + * @return $this + */ + public function setUdmEventsSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataSourceExportSettings::class); + $this->udm_events_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExportPackage.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExportPackage.php new file mode 100644 index 000000000000..8c9603a4b6a5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExportPackage.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.BigQueryExportPackage + */ +class BigQueryExportPackage +{ + /** + * The BigQueryExportPackage is unspecified. + * + * Generated from protobuf enum BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED = 0; + */ + const BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED = 0; + /** + * The BigQueryExportPackage is Bring Your Own BigQuery. + * + * Generated from protobuf enum BIG_QUERY_EXPORT_PACKAGE_BYOBQ = 1; + */ + const BIG_QUERY_EXPORT_PACKAGE_BYOBQ = 1; + /** + * The BigQueryExportPackage is Advanced BigQuery. + * + * Generated from protobuf enum BIG_QUERY_EXPORT_PACKAGE_ADVANCED = 2; + */ + const BIG_QUERY_EXPORT_PACKAGE_ADVANCED = 2; + + private static $valueToName = [ + self::BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED => 'BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED', + self::BIG_QUERY_EXPORT_PACKAGE_BYOBQ => 'BIG_QUERY_EXPORT_PACKAGE_BYOBQ', + self::BIG_QUERY_EXPORT_PACKAGE_ADVANCED => 'BIG_QUERY_EXPORT_PACKAGE_ADVANCED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php new file mode 100644 index 000000000000..dac0cbb7ab42 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest + */ +class BulkCreateDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * @return \Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to create. A maximum of 1000 rows (for sync + * requests) or 2000 rows (for async requests) can be created in a single + * request. Total size of the rows should be less than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php new file mode 100644 index 000000000000..ec0e78d92832 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse + */ +class BulkCreateDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataTableRows created + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * DataTableRows created + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * DataTableRows created + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * DataTableRows created + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php new file mode 100644 index 000000000000..6c824543b91b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.BulkGetDataTableRowsRequest + */ +class BulkGetDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * @return \Google\Cloud\Chronicle\V1\BulkGetDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\GetDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to get. At max 1,000 rows can be there in a + * request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\GetDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php new file mode 100644 index 000000000000..b4bc937ab8bb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkGetDataTableRowsResponse + */ +class BulkGetDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The requested data table rows. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * The requested data table rows. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * The requested data table rows. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * The requested data table rows. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php new file mode 100644 index 000000000000..8389b6eecd77 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php @@ -0,0 +1,142 @@ +google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest + */ +class BulkReplaceDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * @return \Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to replace the existing data table rows. A + * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) + * can be replaced in a single request. Total size of the rows should be less + * than 4MB. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php new file mode 100644 index 000000000000..2dc0f909f77a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse + */ +class BulkReplaceDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataTableRows that replaced existing data table rows + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * DataTableRows that replaced existing data table rows + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * DataTableRows that replaced existing data table rows + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * DataTableRows that replaced existing data table rows + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php new file mode 100644 index 000000000000..a635d9e33430 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest + */ +class BulkUpdateDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * @return \Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. Data table rows to update. At max 1,000 rows (or rows with size + * less than 2MB) can be there in a request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php new file mode 100644 index 000000000000..903503608d86 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse + */ +class BulkUpdateDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataTableRows updated + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * DataTableRows updated + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * DataTableRows updated + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * DataTableRows updated + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php new file mode 100644 index 000000000000..da3b6845d4f8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php @@ -0,0 +1,185 @@ +google.cloud.chronicle.v1.Button + */ +class Button extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $label = ''; + /** + * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $hyperlink = ''; + /** + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Whether to open the link in a new tab. + * + * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $new_tab = false; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $label + * @type string $hyperlink + * @type string $description + * @type bool $new_tab + * Optional. Whether to open the link in a new tab. + * @type \Google\Cloud\Chronicle\V1\Button\Properties $properties + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getHyperlink() + { + return $this->hyperlink; + } + + /** + * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setHyperlink($var) + { + GPBUtil::checkString($var, True); + $this->hyperlink = $var; + + return $this; + } + + /** + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Whether to open the link in a new tab. + * + * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getNewTab() + { + return $this->new_tab; + } + + /** + * Optional. Whether to open the link in a new tab. + * + * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setNewTab($var) + { + GPBUtil::checkBool($var); + $this->new_tab = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Button\Properties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Button\Properties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Button\Properties::class); + $this->properties = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php new file mode 100644 index 000000000000..63e61ffaacaf --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php @@ -0,0 +1,85 @@ +google.cloud.chronicle.v1.Button.Properties + */ +class Properties extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $button_style = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $color + * @type int $button_style + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getButtonStyle() + { + return $this->button_style; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setButtonStyle($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ButtonStyle::class); + $this->button_style = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php new file mode 100644 index 000000000000..2380d2624d4d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php @@ -0,0 +1,58 @@ +google.cloud.chronicle.v1.ButtonStyle + */ +class ButtonStyle +{ + /** + * Generated from protobuf enum BUTTON_STYLE_UNSPECIFIED = 0; + */ + const BUTTON_STYLE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum BUTTON_STYLE_FILLED = 1; + */ + const BUTTON_STYLE_FILLED = 1; + /** + * Generated from protobuf enum BUTTON_STYLE_OUTLINED = 2; + */ + const BUTTON_STYLE_OUTLINED = 2; + /** + * Generated from protobuf enum BUTTON_STYLE_TRANSPARENT = 3; + */ + const BUTTON_STYLE_TRANSPARENT = 3; + + private static $valueToName = [ + self::BUTTON_STYLE_UNSPECIFIED => 'BUTTON_STYLE_UNSPECIFIED', + self::BUTTON_STYLE_FILLED => 'BUTTON_STYLE_FILLED', + self::BUTTON_STYLE_OUTLINED => 'BUTTON_STYLE_OUTLINED', + self::BUTTON_STYLE_TRANSPARENT => 'BUTTON_STYLE_TRANSPARENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php new file mode 100644 index 000000000000..0cfa1245b753 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php @@ -0,0 +1,383 @@ +google.cloud.chronicle.v1.ColumnMetadata + */ +class ColumnMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the column. + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + /** + * Field path of the queried field, if any. + * + * Generated from protobuf field string field_path = 2; + */ + protected $field_path = ''; + /** + * Name of the function used to query the field, if any. + * + * Generated from protobuf field string function_name = 3; + */ + protected $function_name = ''; + /** + * Module of the function used to query the field, if any. + * + * Generated from protobuf field string function_module = 4; + */ + protected $function_module = ''; + /** + * Data source queried. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; + */ + protected $data_source = 0; + /** + * Timestamp Metadata + * + * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; + */ + protected $timestamp_metadata = null; + /** + * Whether the column is a longitude field. + * + * Generated from protobuf field bool longitude = 7; + */ + protected $longitude = false; + /** + * Whether the column is a latitude field. + * + * Generated from protobuf field bool latitude = 8; + */ + protected $latitude = false; + /** + * Whether the column is selected in the final response. + * + * Generated from protobuf field bool selected = 9; + */ + protected $selected = false; + /** + * Whether the column is unselected in the final response. + * + * Generated from protobuf field bool unselected = 10; + */ + protected $unselected = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Name of the column. + * @type string $field_path + * Field path of the queried field, if any. + * @type string $function_name + * Name of the function used to query the field, if any. + * @type string $function_module + * Module of the function used to query the field, if any. + * @type int $data_source + * Data source queried. + * @type \Google\Cloud\Chronicle\V1\TimestampMetadata $timestamp_metadata + * Timestamp Metadata + * @type bool $longitude + * Whether the column is a longitude field. + * @type bool $latitude + * Whether the column is a latitude field. + * @type bool $selected + * Whether the column is selected in the final response. + * @type bool $unselected + * Whether the column is unselected in the final response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Name of the column. + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Name of the column. + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Field path of the queried field, if any. + * + * Generated from protobuf field string field_path = 2; + * @return string + */ + public function getFieldPath() + { + return $this->field_path; + } + + /** + * Field path of the queried field, if any. + * + * Generated from protobuf field string field_path = 2; + * @param string $var + * @return $this + */ + public function setFieldPath($var) + { + GPBUtil::checkString($var, True); + $this->field_path = $var; + + return $this; + } + + /** + * Name of the function used to query the field, if any. + * + * Generated from protobuf field string function_name = 3; + * @return string + */ + public function getFunctionName() + { + return $this->function_name; + } + + /** + * Name of the function used to query the field, if any. + * + * Generated from protobuf field string function_name = 3; + * @param string $var + * @return $this + */ + public function setFunctionName($var) + { + GPBUtil::checkString($var, True); + $this->function_name = $var; + + return $this; + } + + /** + * Module of the function used to query the field, if any. + * + * Generated from protobuf field string function_module = 4; + * @return string + */ + public function getFunctionModule() + { + return $this->function_module; + } + + /** + * Module of the function used to query the field, if any. + * + * Generated from protobuf field string function_module = 4; + * @param string $var + * @return $this + */ + public function setFunctionModule($var) + { + GPBUtil::checkString($var, True); + $this->function_module = $var; + + return $this; + } + + /** + * Data source queried. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; + * @return int + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * Data source queried. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; + * @param int $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_source = $var; + + return $this; + } + + /** + * Timestamp Metadata + * + * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; + * @return \Google\Cloud\Chronicle\V1\TimestampMetadata|null + */ + public function getTimestampMetadata() + { + return $this->timestamp_metadata; + } + + public function hasTimestampMetadata() + { + return isset($this->timestamp_metadata); + } + + public function clearTimestampMetadata() + { + unset($this->timestamp_metadata); + } + + /** + * Timestamp Metadata + * + * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; + * @param \Google\Cloud\Chronicle\V1\TimestampMetadata $var + * @return $this + */ + public function setTimestampMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\TimestampMetadata::class); + $this->timestamp_metadata = $var; + + return $this; + } + + /** + * Whether the column is a longitude field. + * + * Generated from protobuf field bool longitude = 7; + * @return bool + */ + public function getLongitude() + { + return $this->longitude; + } + + /** + * Whether the column is a longitude field. + * + * Generated from protobuf field bool longitude = 7; + * @param bool $var + * @return $this + */ + public function setLongitude($var) + { + GPBUtil::checkBool($var); + $this->longitude = $var; + + return $this; + } + + /** + * Whether the column is a latitude field. + * + * Generated from protobuf field bool latitude = 8; + * @return bool + */ + public function getLatitude() + { + return $this->latitude; + } + + /** + * Whether the column is a latitude field. + * + * Generated from protobuf field bool latitude = 8; + * @param bool $var + * @return $this + */ + public function setLatitude($var) + { + GPBUtil::checkBool($var); + $this->latitude = $var; + + return $this; + } + + /** + * Whether the column is selected in the final response. + * + * Generated from protobuf field bool selected = 9; + * @return bool + */ + public function getSelected() + { + return $this->selected; + } + + /** + * Whether the column is selected in the final response. + * + * Generated from protobuf field bool selected = 9; + * @param bool $var + * @return $this + */ + public function setSelected($var) + { + GPBUtil::checkBool($var); + $this->selected = $var; + + return $this; + } + + /** + * Whether the column is unselected in the final response. + * + * Generated from protobuf field bool unselected = 10; + * @return bool + */ + public function getUnselected() + { + return $this->unselected; + } + + /** + * Whether the column is unselected in the final response. + * + * Generated from protobuf field bool unselected = 10; + * @param bool $var + * @return $this + */ + public function setUnselected($var) + { + GPBUtil::checkBool($var); + $this->unselected = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php new file mode 100644 index 000000000000..0bb762683f68 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php @@ -0,0 +1,193 @@ +google.cloud.chronicle.v1.CompilationDiagnostic + */ +class CompilationDiagnostic extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The diagnostic message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $position = null; + /** + * Output only. The severity of a rule's compilation diagnostic. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $severity = 0; + /** + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * + * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Output only. The diagnostic message. + * @type \Google\Cloud\Chronicle\V1\CompilationPosition $position + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * @type int $severity + * Output only. The severity of a rule's compilation diagnostic. + * @type string $uri + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The diagnostic message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. The diagnostic message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\CompilationPosition|null + */ + public function getPosition() + { + return $this->position; + } + + public function hasPosition() + { + return isset($this->position); + } + + public function clearPosition() + { + unset($this->position); + } + + /** + * Output only. The approximate position in the rule text associated with the + * compilation diagnostic. + * Compilation Position may be empty. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\CompilationPosition $var + * @return $this + */ + public function setPosition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\CompilationPosition::class); + $this->position = $var; + + return $this; + } + + /** + * Output only. The severity of a rule's compilation diagnostic. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Output only. The severity of a rule's compilation diagnostic. + * + * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\CompilationDiagnostic\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * + * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Output only. Link to documentation that describes a diagnostic in more + * detail. + * + * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php new file mode 100644 index 000000000000..09e4fc379326 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.CompilationDiagnostic.Severity + */ +class Severity +{ + /** + * An unspecified severity level. + * + * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; + */ + const SEVERITY_UNSPECIFIED = 0; + /** + * A compilation warning. + * + * Generated from protobuf enum WARNING = 1; + */ + const WARNING = 1; + /** + * A compilation error. + * + * Generated from protobuf enum ERROR = 2; + */ + const ERROR = 2; + + private static $valueToName = [ + self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', + self::WARNING => 'WARNING', + self::ERROR => 'ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php new file mode 100644 index 000000000000..2ab7cc676528 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php @@ -0,0 +1,170 @@ +google.cloud.chronicle.v1.CompilationPosition + */ +class CompilationPosition extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Start line number, beginning at 1. + * + * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_line = 0; + /** + * Output only. Start column number, beginning at 1. + * + * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_column = 0; + /** + * Output only. End line number, beginning at 1. + * + * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_line = 0; + /** + * Output only. End column number, beginning at 1. + * + * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_column = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $start_line + * Output only. Start line number, beginning at 1. + * @type int $start_column + * Output only. Start column number, beginning at 1. + * @type int $end_line + * Output only. End line number, beginning at 1. + * @type int $end_column + * Output only. End column number, beginning at 1. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Start line number, beginning at 1. + * + * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStartLine() + { + return $this->start_line; + } + + /** + * Output only. Start line number, beginning at 1. + * + * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStartLine($var) + { + GPBUtil::checkInt32($var); + $this->start_line = $var; + + return $this; + } + + /** + * Output only. Start column number, beginning at 1. + * + * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStartColumn() + { + return $this->start_column; + } + + /** + * Output only. Start column number, beginning at 1. + * + * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStartColumn($var) + { + GPBUtil::checkInt32($var); + $this->start_column = $var; + + return $this; + } + + /** + * Output only. End line number, beginning at 1. + * + * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEndLine() + { + return $this->end_line; + } + + /** + * Output only. End line number, beginning at 1. + * + * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEndLine($var) + { + GPBUtil::checkInt32($var); + $this->end_line = $var; + + return $this; + } + + /** + * Output only. End column number, beginning at 1. + * + * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEndColumn() + { + return $this->end_column; + } + + /** + * Output only. End column number, beginning at 1. + * + * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEndColumn($var) + { + GPBUtil::checkInt32($var); + $this->end_column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php new file mode 100644 index 000000000000..53319e2e95d3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php @@ -0,0 +1,183 @@ +google.cloud.chronicle.v1.CreateDataAccessLabelRequest + */ +class CreateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data access label to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_label = null; + /** + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_label_id = ''; + + /** + * @param string $parent Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. Data access label to create. + * @param string $dataAccessLabelId Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * @return \Google\Cloud\Chronicle\V1\CreateDataAccessLabelRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, string $dataAccessLabelId): self + { + return (new self()) + ->setParent($parent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label + * Required. Data access label to create. + * @type string $data_access_label_id + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this Data Access Label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data access label to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null + */ + public function getDataAccessLabel() + { + return $this->data_access_label; + } + + public function hasDataAccessLabel() + { + return isset($this->data_access_label); + } + + public function clearDataAccessLabel() + { + unset($this->data_access_label); + } + + /** + * Required. Data access label to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var + * @return $this + */ + public function setDataAccessLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); + $this->data_access_label = $var; + + return $this; + } + + /** + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataAccessLabelId() + { + return $this->data_access_label_id; + } + + /** + * Required. The ID to use for the data access label, which will become the + * label's display name and the final component of the label's resource name. + * The maximum number of characters should be 63. Regex pattern is as per AIP: + * https://google.aip.dev/122#resource-id-segments + * + * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataAccessLabelId($var) + { + GPBUtil::checkString($var, True); + $this->data_access_label_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php new file mode 100644 index 000000000000..d4d59d290e1b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php @@ -0,0 +1,178 @@ +google.cloud.chronicle.v1.CreateDataAccessScopeRequest + */ +class CreateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Data access scope to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_scope = null; + /** + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_scope_id = ''; + + /** + * @param string $parent Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. Data access scope to create. + * @param string $dataAccessScopeId Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * @return \Google\Cloud\Chronicle\V1\CreateDataAccessScopeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, string $dataAccessScopeId): self + { + return (new self()) + ->setParent($parent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope + * Required. Data access scope to create. + * @type string $data_access_scope_id + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this Data Access Scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Data access scope to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null + */ + public function getDataAccessScope() + { + return $this->data_access_scope; + } + + public function hasDataAccessScope() + { + return isset($this->data_access_scope); + } + + public function clearDataAccessScope() + { + unset($this->data_access_scope); + } + + /** + * Required. Data access scope to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var + * @return $this + */ + public function setDataAccessScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); + $this->data_access_scope = $var; + + return $this; + } + + /** + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataAccessScopeId() + { + return $this->data_access_scope_id; + } + + /** + * Required. The user provided scope id which will become the last part of the + * name of the scope resource. Needs to be compliant with + * https://google.aip.dev/122 + * + * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataAccessScopeId($var) + { + GPBUtil::checkString($var, True); + $this->data_access_scope_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php new file mode 100644 index 000000000000..01a4b78c238a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php @@ -0,0 +1,188 @@ +google.cloud.chronicle.v1.CreateDataTableRequest + */ +class CreateDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The data table being created. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table = null; + /** + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table_id = ''; + + /** + * @param string $parent Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. The data table being created. + * @param string $dataTableId Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * @return \Google\Cloud\Chronicle\V1\CreateDataTableRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTable $dataTable, string $dataTableId): self + { + return (new self()) + ->setParent($parent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\DataTable $data_table + * Required. The data table being created. + * @type string $data_table_id + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The data table being created. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTable|null + */ + public function getDataTable() + { + return $this->data_table; + } + + public function hasDataTable() + { + return isset($this->data_table); + } + + public function clearDataTable() + { + unset($this->data_table); + } + + /** + * Required. The data table being created. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTable $var + * @return $this + */ + public function setDataTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); + $this->data_table = $var; + + return $this; + } + + /** + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataTableId() + { + return $this->data_table_id; + } + + /** + * Required. The ID to use for the data table. This is also the display name + * for the data table. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataTableId($var) + { + GPBUtil::checkString($var, True); + $this->data_table_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php new file mode 100644 index 000000000000..61d1e625e79e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.CreateDataTableRowRequest + */ +class CreateDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The data table row to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table_row = null; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. The data table row to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow): self + { + return (new self()) + ->setParent($parent) + ->setDataTableRow($dataTableRow); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row + * Required. The data table row to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The data table row to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTableRow|null + */ + public function getDataTableRow() + { + return $this->data_table_row; + } + + public function hasDataTableRow() + { + return isset($this->data_table_row); + } + + public function clearDataTableRow() + { + unset($this->data_table_row); + } + + /** + * Required. The data table row to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTableRow $var + * @return $this + */ + public function setDataTableRow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_row = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php new file mode 100644 index 000000000000..5e04ec90a015 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.CreateNativeDashboardRequest + */ +class CreateNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The dashboard to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $native_dashboard = null; + + /** + * @param string $parent Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. The dashboard to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateNativeDashboardRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard): self + { + return (new self()) + ->setParent($parent) + ->setNativeDashboard($nativeDashboard); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Required. The dashboard to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The dashboard to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Required. The dashboard to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php new file mode 100644 index 000000000000..dabeb7c2fc4b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php @@ -0,0 +1,193 @@ +google.cloud.chronicle.v1.CreateReferenceListRequest + */ +class CreateReferenceListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The reference list to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list = null; + /** + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list_id = ''; + + /** + * @param string $parent Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to create. + * @param string $referenceListId Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * @return \Google\Cloud\Chronicle\V1\CreateReferenceListRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\ReferenceList $referenceList, string $referenceListId): self + { + return (new self()) + ->setParent($parent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list + * Required. The reference list to create. + * @type string $reference_list_id + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this reference list will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The reference list to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ReferenceList|null + */ + public function getReferenceList() + { + return $this->reference_list; + } + + public function hasReferenceList() + { + return isset($this->reference_list); + } + + public function clearReferenceList() + { + unset($this->reference_list); + } + + /** + * Required. The reference list to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceList $var + * @return $this + */ + public function setReferenceList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); + $this->reference_list = $var; + + return $this; + } + + /** + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getReferenceListId() + { + return $this->reference_list_id; + } + + /** + * Required. The ID to use for the reference list. This is also the display + * name for the reference list. It must satisfy the following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Has length less than 256. + * - Must be unique. + * + * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setReferenceListId($var) + { + GPBUtil::checkString($var, True); + $this->reference_list_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php new file mode 100644 index 000000000000..94af572d344c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.CreateRetrohuntRequest + */ +class CreateRetrohuntRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The retrohunt to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $retrohunt = null; + + /** + * @param string $parent Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt Required. The retrohunt to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateRetrohuntRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt): self + { + return (new self()) + ->setParent($parent) + ->setRetrohunt($retrohunt); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt + * Required. The retrohunt to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of retrohunt, which is a rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The retrohunt to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Retrohunt|null + */ + public function getRetrohunt() + { + return $this->retrohunt; + } + + public function hasRetrohunt() + { + return isset($this->retrohunt); + } + + public function clearRetrohunt() + { + unset($this->retrohunt); + } + + /** + * Required. The retrohunt to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Retrohunt $var + * @return $this + */ + public function setRetrohunt($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Retrohunt::class); + $this->retrohunt = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php new file mode 100644 index 000000000000..883ebb114ef8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.CreateRuleRequest + */ +class CreateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The rule to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rule = null; + + /** + * @param string $parent Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to create. + * + * @return \Google\Cloud\Chronicle\V1\CreateRuleRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\Rule $rule): self + { + return (new self()) + ->setParent($parent) + ->setRule($rule); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type \Google\Cloud\Chronicle\V1\Rule $rule + * Required. The rule to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this rule will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The rule to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Rule|null + */ + public function getRule() + { + return $this->rule; + } + + public function hasRule() + { + return isset($this->rule); + } + + public function clearRule() + { + unset($this->rule); + } + + /** + * Required. The rule to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Rule $var + * @return $this + */ + public function setRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rule = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php new file mode 100644 index 000000000000..8909973322b9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php @@ -0,0 +1,184 @@ +google.cloud.chronicle.v1.CreateWatchlistRequest + */ +class CreateWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $watchlist_id = ''; + /** + * Required. The watchlist to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $watchlist = null; + + /** + * @param string $parent Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to create. + * @param string $watchlistId Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * @return \Google\Cloud\Chronicle\V1\CreateWatchlistRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\Watchlist $watchlist, string $watchlistId): self + { + return (new self()) + ->setParent($parent) + ->setWatchlist($watchlist) + ->setWatchlistId($watchlistId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type string $watchlist_id + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist + * Required. The watchlist to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this watchlist will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getWatchlistId() + { + return $this->watchlist_id; + } + + /** + * Optional. The ID to use for the watchlist, + * which will become the final component of the watchlist's resource name. + * This value should be 4-63 characters, and valid characters + * are /[a-z][0-9]-/. + * + * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setWatchlistId($var) + { + GPBUtil::checkString($var, True); + $this->watchlist_id = $var; + + return $this; + } + + /** + * Required. The watchlist to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Watchlist|null + */ + public function getWatchlist() + { + return $this->watchlist; + } + + public function hasWatchlist() + { + return isset($this->watchlist); + } + + public function clearWatchlist() + { + unset($this->watchlist); + } + + /** + * Required. The watchlist to create. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Watchlist $var + * @return $this + */ + public function setWatchlist($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); + $this->watchlist = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php new file mode 100644 index 000000000000..e51b5683efc7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.DashboardAccess + */ +class DashboardAccess +{ + /** + * Default unspecified. + * + * Generated from protobuf enum DASHBOARD_ACCESS_UNSPECIFIED = 0; + */ + const DASHBOARD_ACCESS_UNSPECIFIED = 0; + /** + * Private dashboards created by users/customers. + * + * Generated from protobuf enum DASHBOARD_PRIVATE = 1; + */ + const DASHBOARD_PRIVATE = 1; + /** + * Public dashboards created by users/customers. + * + * Generated from protobuf enum DASHBOARD_PUBLIC = 2; + */ + const DASHBOARD_PUBLIC = 2; + + private static $valueToName = [ + self::DASHBOARD_ACCESS_UNSPECIFIED => 'DASHBOARD_ACCESS_UNSPECIFIED', + self::DASHBOARD_PRIVATE => 'DASHBOARD_PRIVATE', + self::DASHBOARD_PUBLIC => 'DASHBOARD_PUBLIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php new file mode 100644 index 000000000000..952bcdd0a76a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php @@ -0,0 +1,431 @@ +google.cloud.chronicle.v1.DashboardChart + */ +class DashboardChart extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the dashboardChart. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Display name/Title of the dashboardChart visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of the dashboardChart. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. NativeDashboard this chart belongs to. + * + * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $native_dashboard = ''; + /** + * Optional. Type of tile i.e., visualization, button or text. + * + * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $tile_type = 0; + /** + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $chart_datasource = null; + /** + * Required. Depending on tile_type one of below fields will be required. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $visualization = null; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. Drill down configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $drill_down_config = null; + /** + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * + * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tokens; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the dashboardChart. + * @type string $display_name + * Required. Display name/Title of the dashboardChart visible to users. + * @type string $description + * Optional. Description of the dashboardChart. + * @type string $native_dashboard + * Output only. NativeDashboard this chart belongs to. + * @type int $tile_type + * Optional. Type of tile i.e., visualization, button or text. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource $chart_datasource + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization $visualization + * Required. Depending on tile_type one of below fields will be required. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig $drill_down_config + * Optional. Drill down configuration. + * @type string[] $tokens + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the dashboardChart. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the dashboardChart. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Display name/Title of the dashboardChart visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name/Title of the dashboardChart visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the dashboardChart. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the dashboardChart. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. NativeDashboard this chart belongs to. + * + * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + /** + * Output only. NativeDashboard this chart belongs to. + * + * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkString($var, True); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Optional. Type of tile i.e., visualization, button or text. + * + * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTileType() + { + return $this->tile_type; + } + + /** + * Optional. Type of tile i.e., visualization, button or text. + * + * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTileType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\TileType::class); + $this->tile_type = $var; + + return $this; + } + + /** + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource|null + */ + public function getChartDatasource() + { + return $this->chart_datasource; + } + + public function hasChartDatasource() + { + return isset($this->chart_datasource); + } + + public function clearChartDatasource() + { + unset($this->chart_datasource); + } + + /** + * Optional. Query and datasource used in the chart. Should be empty for + * Button Tiles. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource $var + * @return $this + */ + public function setChartDatasource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource::class); + $this->chart_datasource = $var; + + return $this; + } + + /** + * Required. Depending on tile_type one of below fields will be required. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization|null + */ + public function getVisualization() + { + return $this->visualization; + } + + public function hasVisualization() + { + return isset($this->visualization); + } + + public function clearVisualization() + { + unset($this->visualization); + } + + /** + * Required. Depending on tile_type one of below fields will be required. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization $var + * @return $this + */ + public function setVisualization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization::class); + $this->visualization = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Drill down configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig|null + */ + public function getDrillDownConfig() + { + return $this->drill_down_config; + } + + public function hasDrillDownConfig() + { + return isset($this->drill_down_config); + } + + public function clearDrillDownConfig() + { + unset($this->drill_down_config); + } + + /** + * Optional. Drill down configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig $var + * @return $this + */ + public function setDrillDownConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig::class); + $this->drill_down_config = $var; + + return $this; + } + + /** + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * + * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTokens() + { + return $this->tokens; + } + + /** + * Optional. List of Advanced Filter tokens used in this chart's query (e.g., + * "hostname", "ip"). This allows the UI to identify dependencies without + * parsing the query text. The tokens are stored without the wrapping '$' + * characters. + * The number of tokens are not expected to be more than 10. + * + * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTokens($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tokens = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php new file mode 100644 index 000000000000..7e4895cd74ad --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.ChartDatasource + */ +class ChartDatasource extends \Google\Protobuf\Internal\Message +{ + /** + * Reference to dashboard query resource used in the chart. + * + * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { + */ + protected $dashboard_query = ''; + /** + * Name of the datasource used in the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + */ + private $data_sources; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard_query + * Reference to dashboard query resource used in the chart. + * @type int[] $data_sources + * Name of the datasource used in the chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Reference to dashboard query resource used in the chart. + * + * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getDashboardQuery() + { + return $this->dashboard_query; + } + + /** + * Reference to dashboard query resource used in the chart. + * + * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardQuery($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_query = $var; + + return $this; + } + + /** + * Name of the datasource used in the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @return RepeatedField + */ + public function getDataSources() + { + return $this->data_sources; + } + + /** + * Name of the datasource used in the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @param int[] $var + * @return $this + */ + public function setDataSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_sources = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php new file mode 100644 index 000000000000..57aacc8685ca --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig + */ +class DrillDownConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Left click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $left_drill_downs; + /** + * Required. Right click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $right_drill_downs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $left_drill_downs + * Required. Left click drill downs. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $right_drill_downs + * Required. Right click drill downs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Left click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown> + */ + public function getLeftDrillDowns() + { + return $this->left_drill_downs; + } + + /** + * Required. Left click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $var + * @return $this + */ + public function setLeftDrillDowns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown::class); + $this->left_drill_downs = $arr; + + return $this; + } + + /** + * Required. Right click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown> + */ + public function getRightDrillDowns() + { + return $this->right_drill_downs; + } + + /** + * Required. Right click drill downs. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $var + * @return $this + */ + public function setRightDrillDowns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown::class); + $this->right_drill_downs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php new file mode 100644 index 000000000000..b6c23fd7a06e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php @@ -0,0 +1,176 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown + */ +class DrillDown extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the drill down. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Required. Display name of the drill down. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + protected $settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings $default_settings + * Default drill down settings. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings $custom_settings + * Custom drill down settings. + * @type string $id + * Required. ID of the drill down. + * @type string $display_name + * Required. Display name of the drill down. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Default drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings default_settings = 3; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings|null + */ + public function getDefaultSettings() + { + return $this->readOneof(3); + } + + public function hasDefaultSettings() + { + return $this->hasOneof(3); + } + + /** + * Default drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings default_settings = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings $var + * @return $this + */ + public function setDefaultSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Custom drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings custom_settings = 4; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings|null + */ + public function getCustomSettings() + { + return $this->readOneof(4); + } + + public function hasCustomSettings() + { + return $this->hasOneof(4); + } + + /** + * Custom drill down settings. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings custom_settings = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings $var + * @return $this + */ + public function setCustomSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Required. ID of the drill down. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. ID of the drill down. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Required. Display name of the drill down. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name of the drill down. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getSettings() + { + return $this->whichOneof("settings"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php new file mode 100644 index 000000000000..51779e14d83d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php @@ -0,0 +1,213 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings + */ +class CustomDrillDownSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Whether to open the drill down action in a new tab. + * + * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_tab = false; + /** + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * + * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $left_click_column = ''; + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery $query + * Drill down query action config. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter $filter + * Drill down filter action config. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink $external_link + * Drill down external link action config. + * @type bool $new_tab + * Required. Whether to open the drill down action in a new tab. + * @type string $left_click_column + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Drill down query action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery query = 3; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery|null + */ + public function getQuery() + { + return $this->readOneof(3); + } + + public function hasQuery() + { + return $this->hasOneof(3); + } + + /** + * Drill down query action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery query = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Drill down filter action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter filter = 4; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter|null + */ + public function getFilter() + { + return $this->readOneof(4); + } + + public function hasFilter() + { + return $this->hasOneof(4); + } + + /** + * Drill down filter action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter filter = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Drill down external link action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink external_link = 5; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink|null + */ + public function getExternalLink() + { + return $this->readOneof(5); + } + + public function hasExternalLink() + { + return $this->hasOneof(5); + } + + /** + * Drill down external link action config. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink external_link = 5; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink $var + * @return $this + */ + public function setExternalLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Required. Whether to open the drill down action in a new tab. + * + * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getNewTab() + { + return $this->new_tab; + } + + /** + * Required. Whether to open the drill down action in a new tab. + * + * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setNewTab($var) + { + GPBUtil::checkBool($var); + $this->new_tab = $var; + + return $this; + } + + /** + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * + * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLeftClickColumn() + { + return $this->left_click_column; + } + + /** + * Optional. Table chart column name to associate the custom drill down + * action on left click. + * + * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLeftClickColumn($var) + { + GPBUtil::checkString($var, True); + $this->left_click_column = $var; + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php new file mode 100644 index 000000000000..40700f5c4d06 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink + */ +class DrillDownExternalLink extends \Google\Protobuf\Internal\Message +{ + /** + * Required. External link the drill down action should redirect to. + * + * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $link = ''; + /** + * Optional. Description of the external link. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $link + * Required. External link the drill down action should redirect to. + * @type string $description + * Optional. Description of the external link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. External link the drill down action should redirect to. + * + * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLink() + { + return $this->link; + } + + /** + * Required. External link the drill down action should redirect to. + * + * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLink($var) + { + GPBUtil::checkString($var, True); + $this->link = $var; + + return $this; + } + + /** + * Optional. Description of the external link. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the external link. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php new file mode 100644 index 000000000000..ec6d39b1562b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter + */ +class DrillDownFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Dashboard filters to be applied on drill down. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $dashboard_filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter[] $dashboard_filters + * Required. Dashboard filters to be applied on drill down. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Dashboard filters to be applied on drill down. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter> + */ + public function getDashboardFilters() + { + return $this->dashboard_filters; + } + + /** + * Required. Dashboard filters to be applied on drill down. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter[] $var + * @return $this + */ + public function setDashboardFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter::class); + $this->dashboard_filters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php new file mode 100644 index 000000000000..31976604ae30 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter + */ +class DrillDownDashboardFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the dashboard filter. + * + * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dashboard_filter_id = ''; + /** + * Required. Filter operator and field values for the dashboard + * filter. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $filter_operator_and_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard_filter_id + * Required. ID of the dashboard filter. + * @type \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $filter_operator_and_values + * Required. Filter operator and field values for the dashboard + * filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the dashboard filter. + * + * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDashboardFilterId() + { + return $this->dashboard_filter_id; + } + + /** + * Required. ID of the dashboard filter. + * + * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDashboardFilterId($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_filter_id = $var; + + return $this; + } + + /** + * Required. Filter operator and field values for the dashboard + * filter. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\FilterOperatorAndValues> + */ + public function getFilterOperatorAndValues() + { + return $this->filter_operator_and_values; + } + + /** + * Required. Filter operator and field values for the dashboard + * filter. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $var + * @return $this + */ + public function setFilterOperatorAndValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FilterOperatorAndValues::class); + $this->filter_operator_and_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php new file mode 100644 index 000000000000..ed1b8a5b57d2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery + */ +class DrillDownQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Search query to be executed on drill down. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * Required. Search query to be executed on drill down. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Search query to be executed on drill down. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. Search query to be executed on drill down. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php new file mode 100644 index 000000000000..ddb7719040b2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings + */ +class DefaultDrillDownSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Whether the default drill down is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Required. Whether the default drill down is enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Whether the default drill down is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Required. Whether the default drill down is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php new file mode 100644 index 000000000000..af7b13fb1d9b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php @@ -0,0 +1,533 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization + */ +class Visualization extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; + */ + private $x_axes; + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; + */ + private $y_axes; + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; + */ + private $series; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; + */ + protected $tooltip = null; + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; + */ + private $legends; + /** + * Column Definition to represent chart as a table. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; + */ + private $column_defs; + /** + * Optional. Configuration for table appearance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_config = null; + /** + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; + */ + protected $button = null; + /** + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $markdown = null; + /** + * Optional. Selected column for series + * + * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $series_column; + /** + * Optional. Selected grouping type for series + * + * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $grouping_type = ''; + /** + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $google_maps_config = null; + /** + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * + * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $threshold_coloring_enabled = false; + /** + * Optional. Visual maps for the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $visual_maps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $x_axes + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $y_axes + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series[] $series + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip $tooltip + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend[] $legends + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef[] $column_defs + * Column Definition to represent chart as a table. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig $table_config + * Optional. Configuration for table appearance. + * @type \Google\Cloud\Chronicle\V1\Button $button + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * @type \Google\Cloud\Chronicle\V1\Markdown $markdown + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * @type string[] $series_column + * Optional. Selected column for series + * @type string $grouping_type + * Optional. Selected grouping type for series + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig $google_maps_config + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * @type bool $threshold_coloring_enabled + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap[] $visual_maps + * Optional. Visual maps for the chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis> + */ + public function getXAxes() + { + return $this->x_axes; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $var + * @return $this + */ + public function setXAxes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis::class); + $this->x_axes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis> + */ + public function getYAxes() + { + return $this->y_axes; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $var + * @return $this + */ + public function setYAxes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis::class); + $this->y_axes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series> + */ + public function getSeries() + { + return $this->series; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series[] $var + * @return $this + */ + public function setSeries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series::class); + $this->series = $arr; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip|null + */ + public function getTooltip() + { + return $this->tooltip; + } + + public function hasTooltip() + { + return isset($this->tooltip); + } + + public function clearTooltip() + { + unset($this->tooltip); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip $var + * @return $this + */ + public function setTooltip($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip::class); + $this->tooltip = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend> + */ + public function getLegends() + { + return $this->legends; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend[] $var + * @return $this + */ + public function setLegends($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend::class); + $this->legends = $arr; + + return $this; + } + + /** + * Column Definition to represent chart as a table. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef> + */ + public function getColumnDefs() + { + return $this->column_defs; + } + + /** + * Column Definition to represent chart as a table. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef[] $var + * @return $this + */ + public function setColumnDefs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef::class); + $this->column_defs = $arr; + + return $this; + } + + /** + * Optional. Configuration for table appearance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig|null + */ + public function getTableConfig() + { + return $this->table_config; + } + + public function hasTableConfig() + { + return isset($this->table_config); + } + + public function clearTableConfig() + { + unset($this->table_config); + } + + /** + * Optional. Configuration for table appearance. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig $var + * @return $this + */ + public function setTableConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig::class); + $this->table_config = $var; + + return $this; + } + + /** + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; + * @return \Google\Cloud\Chronicle\V1\Button|null + */ + public function getButton() + { + return $this->button; + } + + public function hasButton() + { + return isset($this->button); + } + + public function clearButton() + { + unset($this->button); + } + + /** + * Button config for a chart if tileType is TILE_TYPE_BUTTON. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; + * @param \Google\Cloud\Chronicle\V1\Button $var + * @return $this + */ + public function setButton($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Button::class); + $this->button = $var; + + return $this; + } + + /** + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Markdown|null + */ + public function getMarkdown() + { + return $this->markdown; + } + + public function hasMarkdown() + { + return isset($this->markdown); + } + + public function clearMarkdown() + { + unset($this->markdown); + } + + /** + * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Markdown $var + * @return $this + */ + public function setMarkdown($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Markdown::class); + $this->markdown = $var; + + return $this; + } + + /** + * Optional. Selected column for series + * + * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSeriesColumn() + { + return $this->series_column; + } + + /** + * Optional. Selected column for series + * + * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setSeriesColumn($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->series_column = $arr; + + return $this; + } + + /** + * Optional. Selected grouping type for series + * + * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGroupingType() + { + return $this->grouping_type; + } + + /** + * Optional. Selected grouping type for series + * + * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGroupingType($var) + { + GPBUtil::checkString($var, True); + $this->grouping_type = $var; + + return $this; + } + + /** + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig|null + */ + public function getGoogleMapsConfig() + { + return $this->google_maps_config; + } + + public function hasGoogleMapsConfig() + { + return isset($this->google_maps_config); + } + + public function clearGoogleMapsConfig() + { + unset($this->google_maps_config); + } + + /** + * Optional. Google Maps config for a chart if type is GOOGLE MAPS. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig $var + * @return $this + */ + public function setGoogleMapsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig::class); + $this->google_maps_config = $var; + + return $this; + } + + /** + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * + * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getThresholdColoringEnabled() + { + return $this->threshold_coloring_enabled; + } + + /** + * Optional. Whether threshold coloring is enabled for the chart. If it's + * enabled, the chart will be colored based on the values stored in + * VisualMap below. + * + * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setThresholdColoringEnabled($var) + { + GPBUtil::checkBool($var); + $this->threshold_coloring_enabled = $var; + + return $this; + } + + /** + * Optional. Visual maps for the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap> + */ + public function getVisualMaps() + { + return $this->visual_maps; + } + + /** + * Optional. Visual maps for the chart. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap[] $var + * @return $this + */ + public function setVisualMaps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap::class); + $this->visual_maps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php new file mode 100644 index 000000000000..b7d063f2cbc7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php @@ -0,0 +1,181 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Axis + */ +class Axis extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; + */ + protected $axis_type = 0; + /** + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * + * Generated from protobuf field optional int32 min = 6; + */ + protected $min = null; + /** + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * + * Generated from protobuf field optional int32 max = 7; + */ + protected $max = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $axis_type + * @type string $display_name + * @type int $min + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * @type int $max + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; + * @return int + */ + public function getAxisType() + { + return $this->axis_type; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; + * @param int $var + * @return $this + */ + public function setAxisType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\AxisType::class); + $this->axis_type = $var; + + return $this; + } + + /** + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Generated from protobuf field string display_name = 5; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * + * Generated from protobuf field optional int32 min = 6; + * @return int + */ + public function getMin() + { + return isset($this->min) ? $this->min : 0; + } + + public function hasMin() + { + return isset($this->min); + } + + public function clearMin() + { + unset($this->min); + } + + /** + * Minimum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.min + * + * Generated from protobuf field optional int32 min = 6; + * @param int $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkInt32($var); + $this->min = $var; + + return $this; + } + + /** + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * + * Generated from protobuf field optional int32 max = 7; + * @return int + */ + public function getMax() + { + return isset($this->max) ? $this->max : 0; + } + + public function hasMax() + { + return isset($this->max); + } + + public function clearMax() + { + unset($this->max); + } + + /** + * Maximum value to be rendered in ECharts as per + * https://echarts.apache.org/en/option.html#xAxis.max + * + * Generated from protobuf field optional int32 max = 7; + * @param int $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkInt32($var); + $this->max = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php new file mode 100644 index 000000000000..1455eed4278d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef + */ +class ColumnDef extends \Google\Protobuf\Internal\Message +{ + /** + * Field key in data. + * + * Generated from protobuf field string field = 1; + */ + protected $field = ''; + /** + * Header name for column. + * + * Generated from protobuf field string header = 2; + */ + protected $header = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Field key in data. + * @type string $header + * Header name for column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Field key in data. + * + * Generated from protobuf field string field = 1; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Field key in data. + * + * Generated from protobuf field string field = 1; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Header name for column. + * + * Generated from protobuf field string header = 2; + * @return string + */ + public function getHeader() + { + return $this->header; + } + + /** + * Header name for column. + * + * Generated from protobuf field string header = 2; + * @param string $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkString($var, True); + $this->header = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php new file mode 100644 index 000000000000..fdcdde1cf7bd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php @@ -0,0 +1,102 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings + */ +class ColumnRenderTypeSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $field = ''; + /** + * Optional. Column render type. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $column_render_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Optional. Field key in data. + * @type int $column_render_type + * Optional. Column render type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Optional. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Optional. Column render type. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getColumnRenderType() + { + return $this->column_render_type; + } + + /** + * Optional. Column render type. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setColumnRenderType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RenderType::class); + $this->column_render_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php new file mode 100644 index 000000000000..55a4cb54c72b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings + */ +class ColumnTooltipSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = ''; + /** + * Optional. Column header tooltip text. + * + * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $header_tooltip_text = ''; + /** + * Optional. Column cell tooltip text. + * + * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cell_tooltip_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Required. Field key in data. + * @type string $header_tooltip_text + * Optional. Column header tooltip text. + * @type string $cell_tooltip_text + * Optional. Column cell tooltip text. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Required. Field key in data. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Optional. Column header tooltip text. + * + * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getHeaderTooltipText() + { + return $this->header_tooltip_text; + } + + /** + * Optional. Column header tooltip text. + * + * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setHeaderTooltipText($var) + { + GPBUtil::checkString($var, True); + $this->header_tooltip_text = $var; + + return $this; + } + + /** + * Optional. Column cell tooltip text. + * + * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCellTooltipText() + { + return $this->cell_tooltip_text; + } + + /** + * Optional. Column cell tooltip text. + * + * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCellTooltipText($var) + { + GPBUtil::checkString($var, True); + $this->cell_tooltip_text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php new file mode 100644 index 000000000000..338161b61fa6 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php @@ -0,0 +1,203 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig + */ +class GoogleMapsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Data settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_settings = null; + /** + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $plot_mode = 0; + /** + * Optional. Map position settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $map_position = null; + /** + * Optional. Point settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $point_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings $data_settings + * Optional. Data settings for the map. + * @type int $plot_mode + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition $map_position + * Optional. Map position settings for the map. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings $point_settings + * Optional. Point settings for the map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Data settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings|null + */ + public function getDataSettings() + { + return $this->data_settings; + } + + public function hasDataSettings() + { + return isset($this->data_settings); + } + + public function clearDataSettings() + { + unset($this->data_settings); + } + + /** + * Optional. Data settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings $var + * @return $this + */ + public function setDataSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings::class); + $this->data_settings = $var; + + return $this; + } + + /** + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPlotMode() + { + return $this->plot_mode; + } + + /** + * Optional. Plot mode for the map. This is used to determine whether to + * show points, heatmap or both. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPlotMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\PlotMode::class); + $this->plot_mode = $var; + + return $this; + } + + /** + * Optional. Map position settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition|null + */ + public function getMapPosition() + { + return $this->map_position; + } + + public function hasMapPosition() + { + return isset($this->map_position); + } + + public function clearMapPosition() + { + unset($this->map_position); + } + + /** + * Optional. Map position settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition $var + * @return $this + */ + public function setMapPosition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition::class); + $this->map_position = $var; + + return $this; + } + + /** + * Optional. Point settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings|null + */ + public function getPointSettings() + { + return $this->point_settings; + } + + public function hasPointSettings() + { + return isset($this->point_settings); + } + + public function clearPointSettings() + { + unset($this->point_settings); + } + + /** + * Optional. Point settings for the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings $var + * @return $this + */ + public function setPointSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings::class); + $this->point_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php new file mode 100644 index 000000000000..9266e58d7376 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings + */ +class DataSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Latitude column. + * + * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latitude_column = ''; + /** + * Optional. Longitude column. + * + * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $longitude_column = ''; + /** + * Optional. Field to count. + * + * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $count_column = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $latitude_column + * Optional. Latitude column. + * @type string $longitude_column + * Optional. Longitude column. + * @type string $count_column + * Optional. Field to count. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Latitude column. + * + * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLatitudeColumn() + { + return $this->latitude_column; + } + + /** + * Optional. Latitude column. + * + * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLatitudeColumn($var) + { + GPBUtil::checkString($var, True); + $this->latitude_column = $var; + + return $this; + } + + /** + * Optional. Longitude column. + * + * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLongitudeColumn() + { + return $this->longitude_column; + } + + /** + * Optional. Longitude column. + * + * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLongitudeColumn($var) + { + GPBUtil::checkString($var, True); + $this->longitude_column = $var; + + return $this; + } + + /** + * Optional. Field to count. + * + * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCountColumn() + { + return $this->count_column; + } + + /** + * Optional. Field to count. + * + * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCountColumn($var) + { + GPBUtil::checkString($var, True); + $this->count_column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php new file mode 100644 index 000000000000..4fded9790bcd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php @@ -0,0 +1,177 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition + */ +class MapPosition extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * + * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fit_data = false; + /** + * Optional. Latitude of the map. + * + * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latitude_value = 0.0; + /** + * Optional. Longitude of the map. + * + * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $longitude_value = 0.0; + /** + * Optional. Scale of the map. + * + * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $zoom_scale_value = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $fit_data + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * @type float $latitude_value + * Optional. Latitude of the map. + * @type float $longitude_value + * Optional. Longitude of the map. + * @type float $zoom_scale_value + * Optional. Scale of the map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * + * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getFitData() + { + return $this->fit_data; + } + + /** + * Optional. Whether to fit the map to the data. + * If true, the map will be resized to fit the data. + * If false, langitude and longitude will be used to set the map size. + * + * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setFitData($var) + { + GPBUtil::checkBool($var); + $this->fit_data = $var; + + return $this; + } + + /** + * Optional. Latitude of the map. + * + * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getLatitudeValue() + { + return $this->latitude_value; + } + + /** + * Optional. Latitude of the map. + * + * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setLatitudeValue($var) + { + GPBUtil::checkDouble($var); + $this->latitude_value = $var; + + return $this; + } + + /** + * Optional. Longitude of the map. + * + * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getLongitudeValue() + { + return $this->longitude_value; + } + + /** + * Optional. Longitude of the map. + * + * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setLongitudeValue($var) + { + GPBUtil::checkDouble($var); + $this->longitude_value = $var; + + return $this; + } + + /** + * Optional. Scale of the map. + * + * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getZoomScaleValue() + { + return $this->zoom_scale_value; + } + + /** + * Optional. Scale of the map. + * + * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setZoomScaleValue($var) + { + GPBUtil::checkDouble($var); + $this->zoom_scale_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php new file mode 100644 index 000000000000..ae9248b5adac --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings + */ +class PointSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $point_size_type = 0; + /** + * Optional. Color for the point on the map. + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $point_size_type + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * @type string $color + * Optional. Color for the point on the map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPointSizeType() + { + return $this->point_size_type; + } + + /** + * Optional. Point size type for the map. This is used to + * determine the size of the points on the map. + * + * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPointSizeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\PointSizeType::class); + $this->point_size_type = $var; + + return $this; + } + + /** + * Optional. Color for the point on the map. + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Color for the point on the map. + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php new file mode 100644 index 000000000000..85508b0d8051 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php @@ -0,0 +1,328 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Legend + */ +class Legend extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Generated from protobuf field bool show = 2; + */ + protected $show = false; + /** + * Generated from protobuf field int32 z_level = 3; + */ + protected $z_level = 0; + /** + * Generated from protobuf field int32 z = 4; + */ + protected $z = 0; + /** + * Generated from protobuf field int32 left = 5; + */ + protected $left = 0; + /** + * Generated from protobuf field int32 top = 6; + */ + protected $top = 0; + /** + * Generated from protobuf field int32 right = 7; + */ + protected $right = 0; + /** + * Generated from protobuf field int32 bottom = 8; + */ + protected $bottom = 0; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; + */ + protected $legend_orient = 0; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; + */ + protected $legend_align = 0; + /** + * Generated from protobuf field repeated int32 padding = 11; + */ + private $padding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * @type bool $show + * @type int $z_level + * @type int $z + * @type int $left + * @type int $top + * @type int $right + * @type int $bottom + * @type int $legend_orient + * @type int $legend_align + * @type int[] $padding + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Generated from protobuf field bool show = 2; + * @return bool + */ + public function getShow() + { + return $this->show; + } + + /** + * Generated from protobuf field bool show = 2; + * @param bool $var + * @return $this + */ + public function setShow($var) + { + GPBUtil::checkBool($var); + $this->show = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 z_level = 3; + * @return int + */ + public function getZLevel() + { + return $this->z_level; + } + + /** + * Generated from protobuf field int32 z_level = 3; + * @param int $var + * @return $this + */ + public function setZLevel($var) + { + GPBUtil::checkInt32($var); + $this->z_level = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 z = 4; + * @return int + */ + public function getZ() + { + return $this->z; + } + + /** + * Generated from protobuf field int32 z = 4; + * @param int $var + * @return $this + */ + public function setZ($var) + { + GPBUtil::checkInt32($var); + $this->z = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 left = 5; + * @return int + */ + public function getLeft() + { + return $this->left; + } + + /** + * Generated from protobuf field int32 left = 5; + * @param int $var + * @return $this + */ + public function setLeft($var) + { + GPBUtil::checkInt32($var); + $this->left = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 top = 6; + * @return int + */ + public function getTop() + { + return $this->top; + } + + /** + * Generated from protobuf field int32 top = 6; + * @param int $var + * @return $this + */ + public function setTop($var) + { + GPBUtil::checkInt32($var); + $this->top = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 right = 7; + * @return int + */ + public function getRight() + { + return $this->right; + } + + /** + * Generated from protobuf field int32 right = 7; + * @param int $var + * @return $this + */ + public function setRight($var) + { + GPBUtil::checkInt32($var); + $this->right = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 bottom = 8; + * @return int + */ + public function getBottom() + { + return $this->bottom; + } + + /** + * Generated from protobuf field int32 bottom = 8; + * @param int $var + * @return $this + */ + public function setBottom($var) + { + GPBUtil::checkInt32($var); + $this->bottom = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; + * @return int + */ + public function getLegendOrient() + { + return $this->legend_orient; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; + * @param int $var + * @return $this + */ + public function setLegendOrient($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\LegendOrient::class); + $this->legend_orient = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; + * @return int + */ + public function getLegendAlign() + { + return $this->legend_align; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; + * @param int $var + * @return $this + */ + public function setLegendAlign($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\LegendAlign::class); + $this->legend_align = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated int32 padding = 11; + * @return RepeatedField + */ + public function getPadding() + { + return $this->padding; + } + + /** + * Generated from protobuf field repeated int32 padding = 11; + * @param int[] $var + * @return $this + */ + public function setPadding($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->padding = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php new file mode 100644 index 000000000000..d9b2e06e31be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php @@ -0,0 +1,627 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series + */ +class Series extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; + */ + protected $series_type = 0; + /** + * user specified series label + * + * Generated from protobuf field string series_name = 2; + */ + protected $series_name = ''; + /** + * Generated from protobuf field bool show_symbol = 4; + */ + protected $show_symbol = false; + /** + * Generated from protobuf field bool show_background = 5; + */ + protected $show_background = false; + /** + * Generated from protobuf field string stack = 6; + */ + protected $stack = ''; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; + */ + protected $series_stack_strategy = 0; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; + */ + protected $encode = null; + /** + * Generated from protobuf field string label = 11; + */ + protected $label = ''; + /** + * Generated from protobuf field string field = 12; + */ + protected $field = ''; + /** + * Optional. Data label config for a series. + * Displays data vaule in the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_label = null; + /** + * Optional. Used to make a pie chart into a douhnut chart + * + * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $radius; + /** + * Optional. Custom styling for chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $item_style = null; + /** + * Optional. Series unique value from the query result + * + * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $series_unique_value = ''; + /** + * Optional. Custom styling for area chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $area_style = null; + /** + * Optional. Field to be saved for retrieving slice colors for the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $item_colors = null; + /** + * Optional. Field to be saved for retrieving gauge config for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $gauge_config = null; + /** + * Optional. Fields to capture trend config for metric charts + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_trend_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $series_type + * @type string $series_name + * user specified series label + * @type bool $show_symbol + * @type bool $show_background + * @type string $stack + * @type int $series_stack_strategy + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode $encode + * @type string $label + * @type string $field + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel $data_label + * Optional. Data label config for a series. + * Displays data vaule in the chart + * @type string[] $radius + * Optional. Used to make a pie chart into a douhnut chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle $item_style + * Optional. Custom styling for chart + * @type string $series_unique_value + * Optional. Series unique value from the query result + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle $area_style + * Optional. Custom styling for area chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors $item_colors + * Optional. Field to be saved for retrieving slice colors for the chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig $gauge_config + * Optional. Field to be saved for retrieving gauge config for gauge chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig $metric_trend_config + * Optional. Fields to capture trend config for metric charts + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; + * @return int + */ + public function getSeriesType() + { + return $this->series_type; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; + * @param int $var + * @return $this + */ + public function setSeriesType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\SeriesType::class); + $this->series_type = $var; + + return $this; + } + + /** + * user specified series label + * + * Generated from protobuf field string series_name = 2; + * @return string + */ + public function getSeriesName() + { + return $this->series_name; + } + + /** + * user specified series label + * + * Generated from protobuf field string series_name = 2; + * @param string $var + * @return $this + */ + public function setSeriesName($var) + { + GPBUtil::checkString($var, True); + $this->series_name = $var; + + return $this; + } + + /** + * Generated from protobuf field bool show_symbol = 4; + * @return bool + */ + public function getShowSymbol() + { + return $this->show_symbol; + } + + /** + * Generated from protobuf field bool show_symbol = 4; + * @param bool $var + * @return $this + */ + public function setShowSymbol($var) + { + GPBUtil::checkBool($var); + $this->show_symbol = $var; + + return $this; + } + + /** + * Generated from protobuf field bool show_background = 5; + * @return bool + */ + public function getShowBackground() + { + return $this->show_background; + } + + /** + * Generated from protobuf field bool show_background = 5; + * @param bool $var + * @return $this + */ + public function setShowBackground($var) + { + GPBUtil::checkBool($var); + $this->show_background = $var; + + return $this; + } + + /** + * Generated from protobuf field string stack = 6; + * @return string + */ + public function getStack() + { + return $this->stack; + } + + /** + * Generated from protobuf field string stack = 6; + * @param string $var + * @return $this + */ + public function setStack($var) + { + GPBUtil::checkString($var, True); + $this->stack = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; + * @return int + */ + public function getSeriesStackStrategy() + { + return $this->series_stack_strategy; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; + * @param int $var + * @return $this + */ + public function setSeriesStackStrategy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\SeriesStackStrategy::class); + $this->series_stack_strategy = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode|null + */ + public function getEncode() + { + return $this->encode; + } + + public function hasEncode() + { + return isset($this->encode); + } + + public function clearEncode() + { + unset($this->encode); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode $var + * @return $this + */ + public function setEncode($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode::class); + $this->encode = $var; + + return $this; + } + + /** + * Generated from protobuf field string label = 11; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Generated from protobuf field string label = 11; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Generated from protobuf field string field = 12; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Generated from protobuf field string field = 12; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Optional. Data label config for a series. + * Displays data vaule in the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel|null + */ + public function getDataLabel() + { + return $this->data_label; + } + + public function hasDataLabel() + { + return isset($this->data_label); + } + + public function clearDataLabel() + { + unset($this->data_label); + } + + /** + * Optional. Data label config for a series. + * Displays data vaule in the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel $var + * @return $this + */ + public function setDataLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel::class); + $this->data_label = $var; + + return $this; + } + + /** + * Optional. Used to make a pie chart into a douhnut chart + * + * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getRadius() + { + return $this->radius; + } + + /** + * Optional. Used to make a pie chart into a douhnut chart + * + * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setRadius($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->radius = $arr; + + return $this; + } + + /** + * Optional. Custom styling for chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle|null + */ + public function getItemStyle() + { + return $this->item_style; + } + + public function hasItemStyle() + { + return isset($this->item_style); + } + + public function clearItemStyle() + { + unset($this->item_style); + } + + /** + * Optional. Custom styling for chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle $var + * @return $this + */ + public function setItemStyle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle::class); + $this->item_style = $var; + + return $this; + } + + /** + * Optional. Series unique value from the query result + * + * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSeriesUniqueValue() + { + return $this->series_unique_value; + } + + /** + * Optional. Series unique value from the query result + * + * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSeriesUniqueValue($var) + { + GPBUtil::checkString($var, True); + $this->series_unique_value = $var; + + return $this; + } + + /** + * Optional. Custom styling for area chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle|null + */ + public function getAreaStyle() + { + return $this->area_style; + } + + public function hasAreaStyle() + { + return isset($this->area_style); + } + + public function clearAreaStyle() + { + unset($this->area_style); + } + + /** + * Optional. Custom styling for area chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle $var + * @return $this + */ + public function setAreaStyle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle::class); + $this->area_style = $var; + + return $this; + } + + /** + * Optional. Field to be saved for retrieving slice colors for the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors|null + */ + public function getItemColors() + { + return $this->item_colors; + } + + public function hasItemColors() + { + return isset($this->item_colors); + } + + public function clearItemColors() + { + unset($this->item_colors); + } + + /** + * Optional. Field to be saved for retrieving slice colors for the chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors $var + * @return $this + */ + public function setItemColors($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors::class); + $this->item_colors = $var; + + return $this; + } + + /** + * Optional. Field to be saved for retrieving gauge config for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig|null + */ + public function getGaugeConfig() + { + return $this->gauge_config; + } + + public function hasGaugeConfig() + { + return isset($this->gauge_config); + } + + public function clearGaugeConfig() + { + unset($this->gauge_config); + } + + /** + * Optional. Field to be saved for retrieving gauge config for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig $var + * @return $this + */ + public function setGaugeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig::class); + $this->gauge_config = $var; + + return $this; + } + + /** + * Optional. Fields to capture trend config for metric charts + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig|null + */ + public function getMetricTrendConfig() + { + return $this->metric_trend_config; + } + + public function hasMetricTrendConfig() + { + return isset($this->metric_trend_config); + } + + public function clearMetricTrendConfig() + { + unset($this->metric_trend_config); + } + + /** + * Optional. Fields to capture trend config for metric charts + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig $var + * @return $this + */ + public function setMetricTrendConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig::class); + $this->metric_trend_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php new file mode 100644 index 000000000000..05188a1ac7e7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php @@ -0,0 +1,271 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle + */ +class AreaStyle extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Optional. Used to add origin + * + * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $origin = ''; + /** + * Optional. Used to add shadow blur + * + * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_blur = 0; + /** + * Optional. Used to add shadow color + * + * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_color = ''; + /** + * Optional. Used to add shadow offsetX + * + * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_offset_x = 0; + /** + * Optional. Used to add shadow offsetY + * + * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shadow_offset_y = 0; + /** + * Optional. Used to add opacity + * + * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $opacity = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $color + * Optional. Used to add color + * @type string $origin + * Optional. Used to add origin + * @type int $shadow_blur + * Optional. Used to add shadow blur + * @type string $shadow_color + * Optional. Used to add shadow color + * @type int $shadow_offset_x + * Optional. Used to add shadow offsetX + * @type int $shadow_offset_y + * Optional. Used to add shadow offsetY + * @type int $opacity + * Optional. Used to add opacity + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Optional. Used to add origin + * + * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrigin() + { + return $this->origin; + } + + /** + * Optional. Used to add origin + * + * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrigin($var) + { + GPBUtil::checkString($var, True); + $this->origin = $var; + + return $this; + } + + /** + * Optional. Used to add shadow blur + * + * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getShadowBlur() + { + return $this->shadow_blur; + } + + /** + * Optional. Used to add shadow blur + * + * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setShadowBlur($var) + { + GPBUtil::checkInt32($var); + $this->shadow_blur = $var; + + return $this; + } + + /** + * Optional. Used to add shadow color + * + * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getShadowColor() + { + return $this->shadow_color; + } + + /** + * Optional. Used to add shadow color + * + * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setShadowColor($var) + { + GPBUtil::checkString($var, True); + $this->shadow_color = $var; + + return $this; + } + + /** + * Optional. Used to add shadow offsetX + * + * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getShadowOffsetX() + { + return $this->shadow_offset_x; + } + + /** + * Optional. Used to add shadow offsetX + * + * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setShadowOffsetX($var) + { + GPBUtil::checkInt32($var); + $this->shadow_offset_x = $var; + + return $this; + } + + /** + * Optional. Used to add shadow offsetY + * + * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getShadowOffsetY() + { + return $this->shadow_offset_y; + } + + /** + * Optional. Used to add shadow offsetY + * + * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setShadowOffsetY($var) + { + GPBUtil::checkInt32($var); + $this->shadow_offset_y = $var; + + return $this; + } + + /** + * Optional. Used to add opacity + * + * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOpacity() + { + return $this->opacity; + } + + /** + * Optional. Used to add opacity + * + * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOpacity($var) + { + GPBUtil::checkInt32($var); + $this->opacity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php new file mode 100644 index 000000000000..f9521afdffd3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor + */ +class ChartSliceColor extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Key for the slice + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key = ''; + /** + * Optional. Value for the slice + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Optional. Key for the slice + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues $value + * Optional. Value for the slice + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Key for the slice + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Optional. Key for the slice + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Optional. Value for the slice + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Optional. Value for the slice + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php new file mode 100644 index 000000000000..4cd0d0cc8d35 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel + */ +class DataLabel extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to show data label. + * + * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $show + * Optional. Whether to show data label. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to show data label. + * + * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShow() + { + return $this->show; + } + + /** + * Optional. Whether to show data label. + * + * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShow($var) + { + GPBUtil::checkBool($var); + $this->show = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php new file mode 100644 index 000000000000..e34150f8b5a2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php @@ -0,0 +1,161 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode + */ +class Encode extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string x = 1; + */ + protected $x = ''; + /** + * Generated from protobuf field string y = 2; + */ + protected $y = ''; + /** + * For some type of series that are not in any coordinate system, like + * 'pie' + * + * Generated from protobuf field string value = 3; + */ + protected $value = ''; + /** + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * + * Generated from protobuf field string item_name = 4; + */ + protected $item_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $x + * @type string $y + * @type string $value + * For some type of series that are not in any coordinate system, like + * 'pie' + * @type string $item_name + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string x = 1; + * @return string + */ + public function getX() + { + return $this->x; + } + + /** + * Generated from protobuf field string x = 1; + * @param string $var + * @return $this + */ + public function setX($var) + { + GPBUtil::checkString($var, True); + $this->x = $var; + + return $this; + } + + /** + * Generated from protobuf field string y = 2; + * @return string + */ + public function getY() + { + return $this->y; + } + + /** + * Generated from protobuf field string y = 2; + * @param string $var + * @return $this + */ + public function setY($var) + { + GPBUtil::checkString($var, True); + $this->y = $var; + + return $this; + } + + /** + * For some type of series that are not in any coordinate system, like + * 'pie' + * + * Generated from protobuf field string value = 3; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * For some type of series that are not in any coordinate system, like + * 'pie' + * + * Generated from protobuf field string value = 3; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * + * Generated from protobuf field string item_name = 4; + * @return string + */ + public function getItemName() + { + return $this->item_name; + } + + /** + * This is useful in charts like 'pie', where data item name can be + * displayed in legend. + * + * Generated from protobuf field string item_name = 4; + * @param string $var + * @return $this + */ + public function setItemName($var) + { + GPBUtil::checkString($var, True); + $this->item_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php new file mode 100644 index 000000000000..e9d01426c93c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php @@ -0,0 +1,155 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig + */ +class GaugeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Base value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $base_value = null; + /** + * Optional. Limit value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $limit_value = null; + /** + * Optional. Threshold values for gauge chart + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $threshold_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $base_value + * Optional. Base value for gauge chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $limit_value + * Optional. Limit value for gauge chart + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue[] $threshold_values + * Optional. Threshold values for gauge chart + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Base value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue|null + */ + public function getBaseValue() + { + return $this->base_value; + } + + public function hasBaseValue() + { + return isset($this->base_value); + } + + public function clearBaseValue() + { + unset($this->base_value); + } + + /** + * Optional. Base value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $var + * @return $this + */ + public function setBaseValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); + $this->base_value = $var; + + return $this; + } + + /** + * Optional. Limit value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue|null + */ + public function getLimitValue() + { + return $this->limit_value; + } + + public function hasLimitValue() + { + return isset($this->limit_value); + } + + public function clearLimitValue() + { + unset($this->limit_value); + } + + /** + * Optional. Limit value for gauge chart + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $var + * @return $this + */ + public function setLimitValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); + $this->limit_value = $var; + + return $this; + } + + /** + * Optional. Threshold values for gauge chart + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue> + */ + public function getThresholdValues() + { + return $this->threshold_values; + } + + /** + * Optional. Threshold values for gauge chart + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue[] $var + * @return $this + */ + public function setThresholdValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); + $this->threshold_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php new file mode 100644 index 000000000000..631073acba0f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue + */ +class GaugeValue extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Value for gauge chart + * + * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $value = 0; + /** + * Optional. Color for gauge chart + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $value + * Optional. Value for gauge chart + * @type string $color + * Optional. Color for gauge chart + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Value for gauge chart + * + * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getValue() + { + return $this->value; + } + + /** + * Optional. Value for gauge chart + * + * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkInt32($var); + $this->value = $var; + + return $this; + } + + /** + * Optional. Color for gauge chart + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Color for gauge chart + * + * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php new file mode 100644 index 000000000000..941eaeef6b74 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors + */ +class ItemColors extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Slice colors array + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $colors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor[] $colors + * Optional. Slice colors array + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Slice colors array + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor> + */ + public function getColors() + { + return $this->colors; + } + + /** + * Optional. Slice colors array + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor[] $var + * @return $this + */ + public function setColors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor::class); + $this->colors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php new file mode 100644 index 000000000000..e4b5e356b169 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle + */ +class ItemStyle extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Used to add border width + * + * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $border_width = 0; + /** + * Optional. Used to add border color + * + * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $border_color = ''; + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $border_width + * Optional. Used to add border width + * @type string $border_color + * Optional. Used to add border color + * @type string $color + * Optional. Used to add color + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Used to add border width + * + * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getBorderWidth() + { + return $this->border_width; + } + + /** + * Optional. Used to add border width + * + * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setBorderWidth($var) + { + GPBUtil::checkInt32($var); + $this->border_width = $var; + + return $this; + } + + /** + * Optional. Used to add border color + * + * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBorderColor() + { + return $this->border_color; + } + + /** + * Optional. Used to add border color + * + * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBorderColor($var) + { + GPBUtil::checkString($var, True); + $this->border_color = $var; + + return $this; + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Used to add color + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php new file mode 100644 index 000000000000..648f41614333 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php @@ -0,0 +1,177 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig + */ +class MetricTrendConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Metric chart configuration to display metric trend + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_format = 0; + /** + * Optional. Metric chart configuration to toggle the trend value + * display + * + * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_metric_trend = false; + /** + * Optional. Metric chart configuration to display the trend value + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_display_trend = 0; + /** + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_trend_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $metric_format + * Optional. Metric chart configuration to display metric trend + * @type bool $show_metric_trend + * Optional. Metric chart configuration to toggle the trend value + * display + * @type int $metric_display_trend + * Optional. Metric chart configuration to display the trend value + * @type int $metric_trend_type + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Metric chart configuration to display metric trend + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricFormat() + { + return $this->metric_format; + } + + /** + * Optional. Metric chart configuration to display metric trend + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricFormat::class); + $this->metric_format = $var; + + return $this; + } + + /** + * Optional. Metric chart configuration to toggle the trend value + * display + * + * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowMetricTrend() + { + return $this->show_metric_trend; + } + + /** + * Optional. Metric chart configuration to toggle the trend value + * display + * + * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowMetricTrend($var) + { + GPBUtil::checkBool($var); + $this->show_metric_trend = $var; + + return $this; + } + + /** + * Optional. Metric chart configuration to display the trend value + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricDisplayTrend() + { + return $this->metric_display_trend; + } + + /** + * Optional. Metric chart configuration to display the trend value + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricDisplayTrend($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricDisplayTrend::class); + $this->metric_display_trend = $var; + + return $this; + } + + /** + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricTrendType() + { + return $this->metric_trend_type; + } + + /** + * Optional. Metric chart configuration to display trend type whether + * regular or inverse + * + * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricTrendType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricTrendType::class); + $this->metric_trend_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php new file mode 100644 index 000000000000..551b8f138b6e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues + */ +class UserSelectedValues extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. User specified color of a pie slice + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Optional. User specified label for a pie slice + * + * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $color + * Optional. User specified color of a pie slice + * @type string $label + * Optional. User specified label for a pie slice + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. User specified color of a pie slice + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. User specified color of a pie slice + * + * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Optional. User specified label for a pie slice + * + * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Optional. User specified label for a pie slice + * + * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php new file mode 100644 index 000000000000..9b0049bc04e4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig + */ +class TableConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to show the table. + * + * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_text_wrap = false; + /** + * Optional. Column render type settings. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $column_render_type_settings; + /** + * Optional. Settings for tooltip for column header and cell. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $column_tooltip_settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_text_wrap + * Optional. Whether to show the table. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings[] $column_render_type_settings + * Optional. Column render type settings. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings[] $column_tooltip_settings + * Optional. Settings for tooltip for column header and cell. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to show the table. + * + * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableTextWrap() + { + return $this->enable_text_wrap; + } + + /** + * Optional. Whether to show the table. + * + * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableTextWrap($var) + { + GPBUtil::checkBool($var); + $this->enable_text_wrap = $var; + + return $this; + } + + /** + * Optional. Column render type settings. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings> + */ + public function getColumnRenderTypeSettings() + { + return $this->column_render_type_settings; + } + + /** + * Optional. Column render type settings. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings[] $var + * @return $this + */ + public function setColumnRenderTypeSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings::class); + $this->column_render_type_settings = $arr; + + return $this; + } + + /** + * Optional. Settings for tooltip for column header and cell. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings> + */ + public function getColumnTooltipSettings() + { + return $this->column_tooltip_settings; + } + + /** + * Optional. Settings for tooltip for column header and cell. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings[] $var + * @return $this + */ + public function setColumnTooltipSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings::class); + $this->column_tooltip_settings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php new file mode 100644 index 000000000000..cf2d0750d0bc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php @@ -0,0 +1,85 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip + */ +class Tooltip extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bool show = 1; + */ + protected $show = false; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; + */ + protected $tooltip_trigger = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $show + * @type int $tooltip_trigger + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool show = 1; + * @return bool + */ + public function getShow() + { + return $this->show; + } + + /** + * Generated from protobuf field bool show = 1; + * @param bool $var + * @return $this + */ + public function setShow($var) + { + GPBUtil::checkBool($var); + $this->show = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; + * @return int + */ + public function getTooltipTrigger() + { + return $this->tooltip_trigger; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; + * @param int $var + * @return $this + */ + public function setTooltipTrigger($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ToolTipTrigger::class); + $this->tooltip_trigger = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php new file mode 100644 index 000000000000..4fbfc4b3b88c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php @@ -0,0 +1,106 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap + */ +class VisualMap extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * + * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $visual_map_type = 0; + /** + * Optional. Pieces of the visual map. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $pieces; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $visual_map_type + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece[] $pieces + * Optional. Pieces of the visual map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * + * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getVisualMapType() + { + return $this->visual_map_type; + } + + /** + * Optional. Contains one of the valid visual map types such as + * 'continuous' or 'piecewise'. + * + * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setVisualMapType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\VisualMapType::class); + $this->visual_map_type = $var; + + return $this; + } + + /** + * Optional. Pieces of the visual map. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece> + */ + public function getPieces() + { + return $this->pieces; + } + + /** + * Optional. Pieces of the visual map. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece[] $var + * @return $this + */ + public function setPieces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece::class); + $this->pieces = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php new file mode 100644 index 000000000000..827bebc3d790 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php @@ -0,0 +1,194 @@ +google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece + */ +class VisualMapPiece extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min = null; + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max = null; + /** + * Optional. Color to render the piece in when the value is between min + * and max. + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $color = ''; + /** + * Optional. Label used in visual map controller. + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $min + * Optional. Minimum value for the piece. + * @type int|string $max + * Optional. Minimum value for the piece. + * @type string $color + * Optional. Color to render the piece in when the value is between min + * and max. + * @type string $label + * Optional. Label used in visual map controller. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMin() + { + return isset($this->min) ? $this->min : 0; + } + + public function hasMin() + { + return isset($this->min); + } + + public function clearMin() + { + unset($this->min); + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkInt64($var); + $this->min = $var; + + return $this; + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMax() + { + return isset($this->max) ? $this->max : 0; + } + + public function hasMax() + { + return isset($this->max); + } + + public function clearMax() + { + unset($this->max); + } + + /** + * Optional. Minimum value for the piece. + * + * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkInt64($var); + $this->max = $var; + + return $this; + } + + /** + * Optional. Color to render the piece in when the value is between min + * and max. + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * Optional. Color to render the piece in when the value is between min + * and max. + * + * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkString($var, True); + $this->color = $var; + + return $this; + } + + /** + * Optional. Label used in visual map controller. + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Optional. Label used in visual map controller. + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php new file mode 100644 index 000000000000..30d2d7f300c0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php @@ -0,0 +1,136 @@ +google.cloud.chronicle.v1.DashboardDefinition + */ +class DashboardDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * Filters for the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; + */ + private $filters; + /** + * Fingerprint of the dashboard definition. + * + * Generated from protobuf field string fingerprint = 2; + */ + protected $fingerprint = ''; + /** + * Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; + */ + private $charts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DashboardFilter[] $filters + * Filters for the dashboard. + * @type string $fingerprint + * Fingerprint of the dashboard definition. + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig[] $charts + * Charts in the dashboard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Filters for the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Filters for the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; + * @param \Google\Cloud\Chronicle\V1\DashboardFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardFilter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Fingerprint of the dashboard definition. + * + * Generated from protobuf field string fingerprint = 2; + * @return string + */ + public function getFingerprint() + { + return $this->fingerprint; + } + + /** + * Fingerprint of the dashboard definition. + * + * Generated from protobuf field string fingerprint = 2; + * @param string $var + * @return $this + */ + public function setFingerprint($var) + { + GPBUtil::checkString($var, True); + $this->fingerprint = $var; + + return $this; + } + + /** + * Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig> + */ + public function getCharts() + { + return $this->charts; + } + + /** + * Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig[] $var + * @return $this + */ + public function setCharts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig::class); + $this->charts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php new file mode 100644 index 000000000000..6355197f9691 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php @@ -0,0 +1,131 @@ +google.cloud.chronicle.v1.DashboardDefinition.ChartConfig + */ +class ChartConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; + */ + protected $chart_layout = null; + /** + * Dashboard filters applied to the chart. + * + * Generated from protobuf field repeated string filters_ids = 4; + */ + private $filters_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard_chart + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $chart_layout + * @type string[] $filters_ids + * Dashboard filters applied to the chart. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout|null + */ + public function getChartLayout() + { + return $this->chart_layout; + } + + public function hasChartLayout() + { + return isset($this->chart_layout); + } + + public function clearChartLayout() + { + unset($this->chart_layout); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $var + * @return $this + */ + public function setChartLayout($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout::class); + $this->chart_layout = $var; + + return $this; + } + + /** + * Dashboard filters applied to the chart. + * + * Generated from protobuf field repeated string filters_ids = 4; + * @return RepeatedField + */ + public function getFiltersIds() + { + return $this->filters_ids; + } + + /** + * Dashboard filters applied to the chart. + * + * Generated from protobuf field repeated string filters_ids = 4; + * @param string[] $var + * @return $this + */ + public function setFiltersIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->filters_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php new file mode 100644 index 000000000000..09b82904ab91 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php @@ -0,0 +1,161 @@ +google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout + */ +class ChartLayout extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field optional int32 start_x = 9; + */ + protected $start_x = null; + /** + * Generated from protobuf field int32 span_x = 10; + */ + protected $span_x = 0; + /** + * Generated from protobuf field optional int32 start_y = 11; + */ + protected $start_y = null; + /** + * Generated from protobuf field int32 span_y = 12; + */ + protected $span_y = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $start_x + * @type int $span_x + * @type int $start_y + * @type int $span_y + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field optional int32 start_x = 9; + * @return int + */ + public function getStartX() + { + return isset($this->start_x) ? $this->start_x : 0; + } + + public function hasStartX() + { + return isset($this->start_x); + } + + public function clearStartX() + { + unset($this->start_x); + } + + /** + * Generated from protobuf field optional int32 start_x = 9; + * @param int $var + * @return $this + */ + public function setStartX($var) + { + GPBUtil::checkInt32($var); + $this->start_x = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 span_x = 10; + * @return int + */ + public function getSpanX() + { + return $this->span_x; + } + + /** + * Generated from protobuf field int32 span_x = 10; + * @param int $var + * @return $this + */ + public function setSpanX($var) + { + GPBUtil::checkInt32($var); + $this->span_x = $var; + + return $this; + } + + /** + * Generated from protobuf field optional int32 start_y = 11; + * @return int + */ + public function getStartY() + { + return isset($this->start_y) ? $this->start_y : 0; + } + + public function hasStartY() + { + return isset($this->start_y); + } + + public function clearStartY() + { + unset($this->start_y); + } + + /** + * Generated from protobuf field optional int32 start_y = 11; + * @param int $var + * @return $this + */ + public function setStartY($var) + { + GPBUtil::checkInt32($var); + $this->start_y = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 span_y = 12; + * @return int + */ + public function getSpanY() + { + return $this->span_y; + } + + /** + * Generated from protobuf field int32 span_y = 12; + * @param int $var + * @return $this + */ + public function setSpanY($var) + { + GPBUtil::checkInt32($var); + $this->span_y = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php new file mode 100644 index 000000000000..79c685090fec --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php @@ -0,0 +1,410 @@ +google.cloud.chronicle.v1.DashboardFilter + */ +class DashboardFilter extends \Google\Protobuf\Internal\Message +{ + /** + * ID of the filter. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Datasource the filter is applicable for. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; + */ + protected $data_source = 0; + /** + * Filter field path. + * + * Generated from protobuf field string field_path = 3; + */ + protected $field_path = ''; + /** + * Operator and values. Can include multiple modifiers. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; + */ + private $filter_operator_and_field_values; + /** + * Display name of the filter. + * + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * Chart IDs the filter is applicable for. + * + * Generated from protobuf field repeated string chart_ids = 6; + */ + private $chart_ids; + /** + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * + * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_standard_time_range_filter = false; + /** + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * + * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_mandatory = false; + /** + * Optional. Whether this standard time range filter is enabled. + * + * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_standard_time_range_filter_enabled = null; + /** + * Optional. Advanced filter configuration for the filter widget. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $advanced_filter_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * ID of the filter. + * @type int $data_source + * Datasource the filter is applicable for. + * @type string $field_path + * Filter field path. + * @type \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $filter_operator_and_field_values + * Operator and values. Can include multiple modifiers. + * @type string $display_name + * Display name of the filter. + * @type string[] $chart_ids + * Chart IDs the filter is applicable for. + * @type bool $is_standard_time_range_filter + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * @type bool $is_mandatory + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * @type bool $is_standard_time_range_filter_enabled + * Optional. Whether this standard time range filter is enabled. + * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig $advanced_filter_config + * Optional. Advanced filter configuration for the filter widget. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * ID of the filter. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * ID of the filter. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Datasource the filter is applicable for. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; + * @return int + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * Datasource the filter is applicable for. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; + * @param int $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_source = $var; + + return $this; + } + + /** + * Filter field path. + * + * Generated from protobuf field string field_path = 3; + * @return string + */ + public function getFieldPath() + { + return $this->field_path; + } + + /** + * Filter field path. + * + * Generated from protobuf field string field_path = 3; + * @param string $var + * @return $this + */ + public function setFieldPath($var) + { + GPBUtil::checkString($var, True); + $this->field_path = $var; + + return $this; + } + + /** + * Operator and values. Can include multiple modifiers. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\FilterOperatorAndValues> + */ + public function getFilterOperatorAndFieldValues() + { + return $this->filter_operator_and_field_values; + } + + /** + * Operator and values. Can include multiple modifiers. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; + * @param \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $var + * @return $this + */ + public function setFilterOperatorAndFieldValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FilterOperatorAndValues::class); + $this->filter_operator_and_field_values = $arr; + + return $this; + } + + /** + * Display name of the filter. + * + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the filter. + * + * Generated from protobuf field string display_name = 5; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Chart IDs the filter is applicable for. + * + * Generated from protobuf field repeated string chart_ids = 6; + * @return RepeatedField + */ + public function getChartIds() + { + return $this->chart_ids; + } + + /** + * Chart IDs the filter is applicable for. + * + * Generated from protobuf field repeated string chart_ids = 6; + * @param string[] $var + * @return $this + */ + public function setChartIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->chart_ids = $arr; + + return $this; + } + + /** + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * + * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsStandardTimeRangeFilter() + { + return $this->is_standard_time_range_filter; + } + + /** + * Optional. Whether the filter is a standard time range filter, + * meaning that it has to be used as the query time range, + * and not as a predicate in the query. + * A chart can have at most one standard time range filter applied. + * + * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsStandardTimeRangeFilter($var) + { + GPBUtil::checkBool($var); + $this->is_standard_time_range_filter = $var; + + return $this; + } + + /** + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * + * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsMandatory() + { + return $this->is_mandatory; + } + + /** + * Optional. Whether this filter is required to be populated by the + * dashboard consumer prior to the dashboard loading. + * + * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsMandatory($var) + { + GPBUtil::checkBool($var); + $this->is_mandatory = $var; + + return $this; + } + + /** + * Optional. Whether this standard time range filter is enabled. + * + * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsStandardTimeRangeFilterEnabled() + { + return isset($this->is_standard_time_range_filter_enabled) ? $this->is_standard_time_range_filter_enabled : false; + } + + public function hasIsStandardTimeRangeFilterEnabled() + { + return isset($this->is_standard_time_range_filter_enabled); + } + + public function clearIsStandardTimeRangeFilterEnabled() + { + unset($this->is_standard_time_range_filter_enabled); + } + + /** + * Optional. Whether this standard time range filter is enabled. + * + * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsStandardTimeRangeFilterEnabled($var) + { + GPBUtil::checkBool($var); + $this->is_standard_time_range_filter_enabled = $var; + + return $this; + } + + /** + * Optional. Advanced filter configuration for the filter widget. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig|null + */ + public function getAdvancedFilterConfig() + { + return $this->advanced_filter_config; + } + + public function hasAdvancedFilterConfig() + { + return isset($this->advanced_filter_config); + } + + public function clearAdvancedFilterConfig() + { + unset($this->advanced_filter_config); + } + + /** + * Optional. Advanced filter configuration for the filter widget. + * + * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig $var + * @return $this + */ + public function setAdvancedFilterConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig::class); + $this->advanced_filter_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php new file mode 100644 index 000000000000..72d8951c72d9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php @@ -0,0 +1,221 @@ +google.cloud.chronicle.v1.DashboardQuery + */ +class DashboardQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the dashboardQuery. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Search query string. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Required. Inputs to the query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $input = null; + /** + * Output only. DashboardChart this query belongs to. + * + * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the dashboardQuery. + * @type string $query + * Required. Search query string. + * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input $input + * Required. Inputs to the query. + * @type string $dashboard_chart + * Output only. DashboardChart this query belongs to. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the dashboardQuery. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the dashboardQuery. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Search query string. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. Search query string. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Required. Inputs to the query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input|null + */ + public function getInput() + { + return $this->input; + } + + public function hasInput() + { + return isset($this->input); + } + + public function clearInput() + { + unset($this->input); + } + + /** + * Required. Inputs to the query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input $var + * @return $this + */ + public function setInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input::class); + $this->input = $var; + + return $this; + } + + /** + * Output only. DashboardChart this query belongs to. + * + * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Output only. DashboardChart this query belongs to. + * + * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php new file mode 100644 index 000000000000..0d33588d5bed --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php @@ -0,0 +1,108 @@ +google.cloud.chronicle.v1.DashboardQuery.Input + */ +class Input extends \Google\Protobuf\Internal\Message +{ + protected $time_input; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Interval $time_window + * time range to fetch the data for. + * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime $relative_time + * time range for last x units. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * time range to fetch the data for. + * + * Generated from protobuf field .google.type.Interval time_window = 1; + * @return \Google\Type\Interval|null + */ + public function getTimeWindow() + { + return $this->readOneof(1); + } + + public function hasTimeWindow() + { + return $this->hasOneof(1); + } + + /** + * time range to fetch the data for. + * + * Generated from protobuf field .google.type.Interval time_window = 1; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setTimeWindow($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * time range for last x units. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime relative_time = 3; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime|null + */ + public function getRelativeTime() + { + return $this->readOneof(3); + } + + public function hasRelativeTime() + { + return $this->hasOneof(3); + } + + /** + * time range for last x units. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime relative_time = 3; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime $var + * @return $this + */ + public function setRelativeTime($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getTimeInput() + { + return $this->whichOneof("time_input"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php new file mode 100644 index 000000000000..594b70b0840f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php @@ -0,0 +1,87 @@ +google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime + */ +class RelativeTime extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_unit = 0; + /** + * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $start_time_val = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $time_unit + * @type int|string $start_time_val + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getTimeUnit() + { + return $this->time_unit; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setTimeUnit($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\TimeUnit::class); + $this->time_unit = $var; + + return $this; + } + + /** + * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getStartTimeVal() + { + return $this->start_time_val; + } + + /** + * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setStartTimeVal($var) + { + GPBUtil::checkInt64($var); + $this->start_time_val = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php new file mode 100644 index 000000000000..e20f164a073c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php @@ -0,0 +1,86 @@ +google.cloud.chronicle.v1.DashboardType + */ +class DashboardType +{ + /** + * Default unspecified. + * + * Generated from protobuf enum DASHBOARD_TYPE_UNSPECIFIED = 0; + */ + const DASHBOARD_TYPE_UNSPECIFIED = 0; + /** + * Out of the box curated dashboards provided by Chronicle. + * + * Generated from protobuf enum CURATED = 1; + */ + const CURATED = 1; + /** + * Private dashboards created by users/customers. + * + * Generated from protobuf enum PRIVATE = 2; + */ + const PBPRIVATE = 2; + /** + * Public dashboards created by users/customers. + * + * Generated from protobuf enum PUBLIC = 3; + */ + const PBPUBLIC = 3; + /** + * Custom dashboards + * + * Generated from protobuf enum CUSTOM = 4; + */ + const CUSTOM = 4; + /** + * Marketplace dashboards + * + * Generated from protobuf enum MARKETPLACE = 5; + */ + const MARKETPLACE = 5; + + private static $valueToName = [ + self::DASHBOARD_TYPE_UNSPECIFIED => 'DASHBOARD_TYPE_UNSPECIFIED', + self::CURATED => 'CURATED', + self::PBPRIVATE => 'PRIVATE', + self::PBPUBLIC => 'PUBLIC', + self::CUSTOM => 'CUSTOM', + self::MARKETPLACE => 'MARKETPLACE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php new file mode 100644 index 000000000000..5ce9afb7d058 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.DashboardUserData + */ +class DashboardUserData extends \Google\Protobuf\Internal\Message +{ + /** + * time when this dashboard is last viewed + * + * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; + */ + protected $last_viewed_time = null; + /** + * is dashboard pinned by user + * + * Generated from protobuf field bool is_pinned = 2; + */ + protected $is_pinned = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $last_viewed_time + * time when this dashboard is last viewed + * @type bool $is_pinned + * is dashboard pinned by user + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * time when this dashboard is last viewed + * + * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastViewedTime() + { + return $this->last_viewed_time; + } + + public function hasLastViewedTime() + { + return isset($this->last_viewed_time); + } + + public function clearLastViewedTime() + { + unset($this->last_viewed_time); + } + + /** + * time when this dashboard is last viewed + * + * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastViewedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_viewed_time = $var; + + return $this; + } + + /** + * is dashboard pinned by user + * + * Generated from protobuf field bool is_pinned = 2; + * @return bool + */ + public function getIsPinned() + { + return $this->is_pinned; + } + + /** + * is dashboard pinned by user + * + * Generated from protobuf field bool is_pinned = 2; + * @param bool $var + * @return $this + */ + public function setIsPinned($var) + { + GPBUtil::checkBool($var); + $this->is_pinned = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php new file mode 100644 index 000000000000..9eb65ff6b99b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php @@ -0,0 +1,337 @@ +google.cloud.chronicle.v1.DataAccessLabel + */ +class DataAccessLabel extends \Google\Protobuf\Internal\Message +{ + /** + * The unique resource name of the data access label. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. The short name displayed for the label as it appears on event + * data. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The time at which the data access label was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the data access label was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The user who created the data access label. + * + * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. The user who last updated the data access label. + * + * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_editor = ''; + /** + * Optional. A description of the data access label for a human reader. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + protected $definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $udm_query + * A UDM query over event data. + * @type string $name + * The unique resource name of the data access label. + * @type string $display_name + * Output only. The short name displayed for the label as it appears on event + * data. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the data access label was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the data access label was last updated. + * @type string $author + * Output only. The user who created the data access label. + * @type string $last_editor + * Output only. The user who last updated the data access label. + * @type string $description + * Optional. A description of the data access label for a human reader. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * A UDM query over event data. + * + * Generated from protobuf field string udm_query = 3; + * @return string + */ + public function getUdmQuery() + { + return $this->readOneof(3); + } + + public function hasUdmQuery() + { + return $this->hasOneof(3); + } + + /** + * A UDM query over event data. + * + * Generated from protobuf field string udm_query = 3; + * @param string $var + * @return $this + */ + public function setUdmQuery($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The unique resource name of the data access label. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique resource name of the data access label. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The short name displayed for the label as it appears on event + * data. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The short name displayed for the label as it appears on event + * data. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The time at which the data access label was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time at which the data access label was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time at which the data access label was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time at which the data access label was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The user who created the data access label. + * + * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. The user who created the data access label. + * + * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. The user who last updated the data access label. + * + * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLastEditor() + { + return $this->last_editor; + } + + /** + * Output only. The user who last updated the data access label. + * + * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLastEditor($var) + { + GPBUtil::checkString($var, True); + $this->last_editor = $var; + + return $this; + } + + /** + * Optional. A description of the data access label for a human reader. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A description of the data access label for a human reader. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * @return string + */ + public function getDefinition() + { + return $this->whichOneof("definition"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php new file mode 100644 index 000000000000..9f32f7c3f294 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php @@ -0,0 +1,227 @@ +google.cloud.chronicle.v1.DataAccessLabelReference + */ +class DataAccessLabelReference extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + protected $label; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $data_access_label + * The name of the data access label. + * @type string $log_type + * The name of the log type. + * @type string $asset_namespace + * The asset namespace configured in the forwarder + * of the customer's events. + * @type \Google\Cloud\Chronicle\V1\IngestionLabel $ingestion_label + * The ingestion label configured in the forwarder of the customer's events. + * @type string $display_name + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * The name of the data access label. + * + * Generated from protobuf field string data_access_label = 1; + * @return string + */ + public function getDataAccessLabel() + { + return $this->readOneof(1); + } + + public function hasDataAccessLabel() + { + return $this->hasOneof(1); + } + + /** + * The name of the data access label. + * + * Generated from protobuf field string data_access_label = 1; + * @param string $var + * @return $this + */ + public function setDataAccessLabel($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The name of the log type. + * + * Generated from protobuf field string log_type = 2; + * @return string + */ + public function getLogType() + { + return $this->readOneof(2); + } + + public function hasLogType() + { + return $this->hasOneof(2); + } + + /** + * The name of the log type. + * + * Generated from protobuf field string log_type = 2; + * @param string $var + * @return $this + */ + public function setLogType($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The asset namespace configured in the forwarder + * of the customer's events. + * + * Generated from protobuf field string asset_namespace = 3; + * @return string + */ + public function getAssetNamespace() + { + return $this->readOneof(3); + } + + public function hasAssetNamespace() + { + return $this->hasOneof(3); + } + + /** + * The asset namespace configured in the forwarder + * of the customer's events. + * + * Generated from protobuf field string asset_namespace = 3; + * @param string $var + * @return $this + */ + public function setAssetNamespace($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The ingestion label configured in the forwarder of the customer's events. + * + * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; + * @return \Google\Cloud\Chronicle\V1\IngestionLabel|null + */ + public function getIngestionLabel() + { + return $this->readOneof(4); + } + + public function hasIngestionLabel() + { + return $this->hasOneof(4); + } + + /** + * The ingestion label configured in the forwarder of the customer's events. + * + * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; + * @param \Google\Cloud\Chronicle\V1\IngestionLabel $var + * @return $this + */ + public function setIngestionLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\IngestionLabel::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The display name of the label. + * Data access label and log types's name + * will match the display name of the resource. + * The asset namespace will match the namespace itself. + * The ingestion key value pair will match the key of the tuple. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getLabel() + { + return $this->whichOneof("label"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php new file mode 100644 index 000000000000..687d809ead24 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php @@ -0,0 +1,470 @@ +google.cloud.chronicle.v1.DataAccessScope + */ +class DataAccessScope extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $allowed_data_access_labels; + /** + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $denied_data_access_labels; + /** + * Output only. The name to be used for display to customers of the data + * access scope. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The time at which the data access scope was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the data access scope was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The user who created the data access scope. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. The user who last updated the data access scope. + * + * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_editor = ''; + /** + * Optional. A description of the data access scope for a human reader. + * + * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * + * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_all = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $allowed_data_access_labels + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $denied_data_access_labels + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * @type string $display_name + * Output only. The name to be used for display to customers of the data + * access scope. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the data access scope was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the data access scope was last updated. + * @type string $author + * Output only. The user who created the data access scope. + * @type string $last_editor + * Output only. The user who last updated the data access scope. + * @type string $description + * Optional. A description of the data access scope for a human reader. + * @type bool $allow_all + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique full name of the data access scope. + * The name should comply with https://google.aip.dev/122 standards. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> + */ + public function getAllowedDataAccessLabels() + { + return $this->allowed_data_access_labels; + } + + /** + * Optional. The allowed labels for the scope. + * Either allow_all or allowed_data_access_labels needs to be provided. + * When provided, there has to be at least one label allowed for the scope to + * be valid. + * The logical operator for evaluation of the allowed labels is OR. + * E.g.: A customer with scope with allowed labels A and B will be able + * to see data with labeled with A or B or (A and B). + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var + * @return $this + */ + public function setAllowedDataAccessLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); + $this->allowed_data_access_labels = $arr; + + return $this; + } + + /** + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> + */ + public function getDeniedDataAccessLabels() + { + return $this->denied_data_access_labels; + } + + /** + * Optional. The denied labels for the scope. + * The logical operator for evaluation of the denied labels is AND. + * E.g.: A customer with scope with denied labels A and B won't be able + * to see data labeled with A and data labeled with B + * and data with labels A and B. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var + * @return $this + */ + public function setDeniedDataAccessLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); + $this->denied_data_access_labels = $arr; + + return $this; + } + + /** + * Output only. The name to be used for display to customers of the data + * access scope. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The name to be used for display to customers of the data + * access scope. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The time at which the data access scope was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time at which the data access scope was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time at which the data access scope was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time at which the data access scope was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The user who created the data access scope. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. The user who created the data access scope. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. The user who last updated the data access scope. + * + * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLastEditor() + { + return $this->last_editor; + } + + /** + * Output only. The user who last updated the data access scope. + * + * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLastEditor($var) + { + GPBUtil::checkString($var, True); + $this->last_editor = $var; + + return $this; + } + + /** + * Optional. A description of the data access scope for a human reader. + * + * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A description of the data access scope for a human reader. + * + * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * + * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowAll() + { + return $this->allow_all; + } + + /** + * Optional. Whether or not the scope allows all labels, allow_all and + * allowed_data_access_labels are mutually exclusive and one of them must be + * present. denied_data_access_labels can still be used along with allow_all. + * When combined with denied_data_access_labels, access will be granted to all + * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: + * A customer with scope with denied labels A and B and allow_all will be able + * to see all data except data labeled with A and data labeled with B and data + * with labels A and B. + * + * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowAll($var) + { + GPBUtil::checkBool($var); + $this->allow_all = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php new file mode 100644 index 000000000000..afe99eb7727d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php @@ -0,0 +1,143 @@ +google.cloud.chronicle.v1.DataSource + */ +class DataSource +{ + /** + * Generated from protobuf enum DATA_SOURCE_UNSPECIFIED = 0; + */ + const DATA_SOURCE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum UDM = 1; + */ + const UDM = 1; + /** + * Generated from protobuf enum ENTITY = 2; + */ + const ENTITY = 2; + /** + * Generated from protobuf enum INGESTION_METRICS = 3; + */ + const INGESTION_METRICS = 3; + /** + * RULE_DETECTIONS is used for detections datasource. + * + * Generated from protobuf enum RULE_DETECTIONS = 4; + */ + const RULE_DETECTIONS = 4; + /** + * RULESETS is used for ruleset with detections datasource. + * + * Generated from protobuf enum RULESETS = 5; + */ + const RULESETS = 5; + /** + * GLOBAL is used for standard time range filter. + * + * Generated from protobuf enum GLOBAL = 6; + */ + const PBGLOBAL = 6; + /** + * IOC_MATCHES is used for ioc_matches datasource. + * + * Generated from protobuf enum IOC_MATCHES = 7; + */ + const IOC_MATCHES = 7; + /** + * RULES is used for rules datasource. + * + * Generated from protobuf enum RULES = 8; + */ + const RULES = 8; + /** + * SOAR Cases - identified as `case`. + * + * Generated from protobuf enum SOAR_CASES = 9; + */ + const SOAR_CASES = 9; + /** + * SOAR Playbooks - identified as `playbook`. + * + * Generated from protobuf enum SOAR_PLAYBOOKS = 10; + */ + const SOAR_PLAYBOOKS = 10; + /** + * SOAR Case History - identified as `case_history`. + * + * Generated from protobuf enum SOAR_CASE_HISTORY = 11; + */ + const SOAR_CASE_HISTORY = 11; + /** + * DATA_TABLE is used for data tables source. + * + * Generated from protobuf enum DATA_TABLE = 12; + */ + const DATA_TABLE = 12; + /** + * INVESTIGATION is used as the data source for triage agent investigations. + * Identified as `gemini_investigation`. + * + * Generated from protobuf enum INVESTIGATION = 13; + */ + const INVESTIGATION = 13; + /** + * INVESTIGATION_FEEDBACK is used as the data source for user feedback on + * triage agent investigations. Identified as `gemini_investigation_feedback`. + * + * Generated from protobuf enum INVESTIGATION_FEEDBACK = 14; + */ + const INVESTIGATION_FEEDBACK = 14; + + private static $valueToName = [ + self::DATA_SOURCE_UNSPECIFIED => 'DATA_SOURCE_UNSPECIFIED', + self::UDM => 'UDM', + self::ENTITY => 'ENTITY', + self::INGESTION_METRICS => 'INGESTION_METRICS', + self::RULE_DETECTIONS => 'RULE_DETECTIONS', + self::RULESETS => 'RULESETS', + self::PBGLOBAL => 'GLOBAL', + self::IOC_MATCHES => 'IOC_MATCHES', + self::RULES => 'RULES', + self::SOAR_CASES => 'SOAR_CASES', + self::SOAR_PLAYBOOKS => 'SOAR_PLAYBOOKS', + self::SOAR_CASE_HISTORY => 'SOAR_CASE_HISTORY', + self::DATA_TABLE => 'DATA_TABLE', + self::INVESTIGATION => 'INVESTIGATION', + self::INVESTIGATION_FEEDBACK => 'INVESTIGATION_FEEDBACK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSourceExportSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSourceExportSettings.php new file mode 100644 index 000000000000..21b5dad0e179 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSourceExportSettings.php @@ -0,0 +1,217 @@ +google.cloud.chronicle.v1.DataSourceExportSettings + */ +class DataSourceExportSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Whether the data source is enabled for export. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enabled = false; + /** + * Required. The retention period for the data source in days. + * + * Generated from protobuf field int32 retention_days = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $retention_days = 0; + /** + * Output only. The state of the latest data source export job. + * + * Generated from protobuf field .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $latest_export_job_state = 0; + /** + * Output only. The data freshness of the given export which represents the + * time bucket at which the latest event was exported. + * + * Generated from protobuf field .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_freshness_time = null; + /** + * Output only. The stored data volume of all the exports. + * + * Generated from protobuf field int64 data_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_volume = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Required. Whether the data source is enabled for export. + * @type int $retention_days + * Required. The retention period for the data source in days. + * @type int $latest_export_job_state + * Output only. The state of the latest data source export job. + * @type \Google\Protobuf\Timestamp $data_freshness_time + * Output only. The data freshness of the given export which represents the + * time bucket at which the latest event was exported. + * @type int|string $data_volume + * Output only. The stored data volume of all the exports. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\BigQueryExport::initOnce(); + parent::__construct($data); + } + + /** + * Required. Whether the data source is enabled for export. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Required. Whether the data source is enabled for export. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Required. The retention period for the data source in days. + * + * Generated from protobuf field int32 retention_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getRetentionDays() + { + return $this->retention_days; + } + + /** + * Required. The retention period for the data source in days. + * + * Generated from protobuf field int32 retention_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setRetentionDays($var) + { + GPBUtil::checkInt32($var); + $this->retention_days = $var; + + return $this; + } + + /** + * Output only. The state of the latest data source export job. + * + * Generated from protobuf field .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLatestExportJobState() + { + return $this->latest_export_job_state; + } + + /** + * Output only. The state of the latest data source export job. + * + * Generated from protobuf field .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLatestExportJobState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\LatestExportJobState::class); + $this->latest_export_job_state = $var; + + return $this; + } + + /** + * Output only. The data freshness of the given export which represents the + * time bucket at which the latest event was exported. + * + * Generated from protobuf field .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDataFreshnessTime() + { + return $this->data_freshness_time; + } + + public function hasDataFreshnessTime() + { + return isset($this->data_freshness_time); + } + + public function clearDataFreshnessTime() + { + unset($this->data_freshness_time); + } + + /** + * Output only. The data freshness of the given export which represents the + * time bucket at which the latest event was exported. + * + * Generated from protobuf field .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDataFreshnessTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->data_freshness_time = $var; + + return $this; + } + + /** + * Output only. The stored data volume of all the exports. + * + * Generated from protobuf field int64 data_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getDataVolume() + { + return $this->data_volume; + } + + /** + * Output only. The stored data volume of all the exports. + * + * Generated from protobuf field int64 data_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setDataVolume($var) + { + GPBUtil::checkInt64($var); + $this->data_volume = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php new file mode 100644 index 000000000000..f2024c29a822 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php @@ -0,0 +1,585 @@ +google.cloud.chronicle.v1.DataTable + */ +class DataTable extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The unique display name of the data table. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Required. A user-provided description of the data table. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = ''; + /** + * Output only. Table create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Table update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Immutable. Details of all the columns in the table + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $column_info; + /** + * Output only. Data table unique id + * + * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_table_uuid = ''; + /** + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * + * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $rules; + /** + * Output only. The count of rules using the data table. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_associations_count = 0; + /** + * Optional. User-provided TTL of the data table. + * + * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $row_time_to_live = ''; + /** + * Output only. The count of rows in the data table. + * + * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approximate_row_count = 0; + /** + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $scope_info = null; + /** + * Output only. Source of the data table update. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_source = 0; + /** + * Output only. Last update time of the TTL of the data table. + * + * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $row_time_to_live_update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * @type string $display_name + * Output only. The unique display name of the data table. + * @type string $description + * Required. A user-provided description of the data table. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Table create time + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Table update time + * @type \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $column_info + * Immutable. Details of all the columns in the table + * @type string $data_table_uuid + * Output only. Data table unique id + * @type string[] $rules + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * @type int $rule_associations_count + * Output only. The count of rules using the data table. + * @type string $row_time_to_live + * Optional. User-provided TTL of the data table. + * @type int|string $approximate_row_count + * Output only. The count of rows in the data table. + * @type \Google\Cloud\Chronicle\V1\DataTableScopeInfo $scope_info + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * @type int $update_source + * Output only. Source of the data table update. + * @type \Google\Protobuf\Timestamp $row_time_to_live_update_time + * Output only. Last update time of the TTL of the data table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the data table + * Format: + * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The unique display name of the data table. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The unique display name of the data table. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. A user-provided description of the data table. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Required. A user-provided description of the data table. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Table create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Table create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Table update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Table update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Immutable. Details of all the columns in the table + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableColumnInfo> + */ + public function getColumnInfo() + { + return $this->column_info; + } + + /** + * Immutable. Details of all the columns in the table + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $var + * @return $this + */ + public function setColumnInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableColumnInfo::class); + $this->column_info = $arr; + + return $this; + } + + /** + * Output only. Data table unique id + * + * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDataTableUuid() + { + return $this->data_table_uuid; + } + + /** + * Output only. Data table unique id + * + * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDataTableUuid($var) + { + GPBUtil::checkString($var, True); + $this->data_table_uuid = $var; + + return $this; + } + + /** + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * + * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getRules() + { + return $this->rules; + } + + /** + * Output only. The resource names for the associated Rules that use this + * data table. Format: + * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. + * {rule} here refers to the rule id. + * + * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->rules = $arr; + + return $this; + } + + /** + * Output only. The count of rules using the data table. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRuleAssociationsCount() + { + return $this->rule_associations_count; + } + + /** + * Output only. The count of rules using the data table. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRuleAssociationsCount($var) + { + GPBUtil::checkInt32($var); + $this->rule_associations_count = $var; + + return $this; + } + + /** + * Optional. User-provided TTL of the data table. + * + * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRowTimeToLive() + { + return $this->row_time_to_live; + } + + /** + * Optional. User-provided TTL of the data table. + * + * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRowTimeToLive($var) + { + GPBUtil::checkString($var, True); + $this->row_time_to_live = $var; + + return $this; + } + + /** + * Output only. The count of rows in the data table. + * + * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getApproximateRowCount() + { + return $this->approximate_row_count; + } + + /** + * Output only. The count of rows in the data table. + * + * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setApproximateRowCount($var) + { + GPBUtil::checkInt64($var); + $this->approximate_row_count = $var; + + return $this; + } + + /** + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DataTableScopeInfo|null + */ + public function getScopeInfo() + { + return $this->scope_info; + } + + public function hasScopeInfo() + { + return isset($this->scope_info); + } + + public function clearScopeInfo() + { + unset($this->scope_info); + } + + /** + * Optional. The scope info of the data table. + * During data table creation, if this field is not set, the data + * table without scopes (an unscoped table) will be created for a global + * user. For a scoped user, this field must be set. During data table + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DataTableScopeInfo $var + * @return $this + */ + public function setScopeInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableScopeInfo::class); + $this->scope_info = $var; + + return $this; + } + + /** + * Output only. Source of the data table update. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getUpdateSource() + { + return $this->update_source; + } + + /** + * Output only. Source of the data table update. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setUpdateSource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableUpdateSource::class); + $this->update_source = $var; + + return $this; + } + + /** + * Output only. Last update time of the TTL of the data table. + * + * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRowTimeToLiveUpdateTime() + { + return $this->row_time_to_live_update_time; + } + + public function hasRowTimeToLiveUpdateTime() + { + return isset($this->row_time_to_live_update_time); + } + + public function clearRowTimeToLiveUpdateTime() + { + unset($this->row_time_to_live_update_time); + } + + /** + * Output only. Last update time of the TTL of the data table. + * + * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRowTimeToLiveUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->row_time_to_live_update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php new file mode 100644 index 000000000000..e8d196b47d9e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php @@ -0,0 +1,274 @@ +google.cloud.chronicle.v1.DataTableColumnInfo + */ +class DataTableColumnInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Column Index. 0,1,2... + * + * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $column_index = 0; + /** + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $original_column = ''; + /** + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * + * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key_column = false; + /** + * Optional. Whether the column is a repeated values column. + * + * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $repeated_values = false; + protected $path_or_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $mapped_column_path + * Entity proto field path that the column is mapped to + * @type int $column_type + * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX + * @type int $column_index + * Required. Column Index. 0,1,2... + * @type string $original_column + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * @type bool $key_column + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * @type bool $repeated_values + * Optional. Whether the column is a repeated values column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Entity proto field path that the column is mapped to + * + * Generated from protobuf field string mapped_column_path = 3; + * @return string + */ + public function getMappedColumnPath() + { + return $this->readOneof(3); + } + + public function hasMappedColumnPath() + { + return $this->hasOneof(3); + } + + /** + * Entity proto field path that the column is mapped to + * + * Generated from protobuf field string mapped_column_path = 3; + * @param string $var + * @return $this + */ + public function setMappedColumnPath($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * @return int + */ + public function getColumnType() + { + return $this->readOneof(4); + } + + public function hasColumnType() + { + return $this->hasOneof(4); + } + + /** + * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; + * @param int $var + * @return $this + */ + public function setColumnType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableColumnInfo\DataTableColumnType::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Required. Column Index. 0,1,2... + * + * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getColumnIndex() + { + return $this->column_index; + } + + /** + * Required. Column Index. 0,1,2... + * + * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setColumnIndex($var) + { + GPBUtil::checkInt32($var); + $this->column_index = $var; + + return $this; + } + + /** + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOriginalColumn() + { + return $this->original_column; + } + + /** + * Required. Original column name of the Data Table (present in the CSV header + * in case of creation of data tables using file uploads). It must satisfy the + * following requirements: + * - Starts with letter. + * - Contains only letters, numbers and underscore. + * - Must be unique and has length < 256. + * + * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOriginalColumn($var) + { + GPBUtil::checkString($var, True); + $this->original_column = $var; + + return $this; + } + + /** + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * + * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getKeyColumn() + { + return $this->key_column; + } + + /** + * Optional. Whether to include this column in the calculation of the row ID. + * If no columns have key_column = true, all columns will be included in the + * calculation of the row ID. + * + * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setKeyColumn($var) + { + GPBUtil::checkBool($var); + $this->key_column = $var; + + return $this; + } + + /** + * Optional. Whether the column is a repeated values column. + * + * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getRepeatedValues() + { + return $this->repeated_values; + } + + /** + * Optional. Whether the column is a repeated values column. + * + * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setRepeatedValues($var) + { + GPBUtil::checkBool($var); + $this->repeated_values = $var; + + return $this; + } + + /** + * @return string + */ + public function getPathOrType() + { + return $this->whichOneof("path_or_type"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php new file mode 100644 index 000000000000..66ce99ee22da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php @@ -0,0 +1,76 @@ +google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType + */ +class DataTableColumnType +{ + /** + * The default Data Table Column Type. + * + * Generated from protobuf enum DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; + */ + const DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; + /** + * Denotes the type of the column as STRING. + * + * Generated from protobuf enum STRING = 1; + */ + const STRING = 1; + /** + * Denotes the type of the column as REGEX. + * + * Generated from protobuf enum REGEX = 2; + */ + const REGEX = 2; + /** + * Denotes the type of the column as CIDR. + * + * Generated from protobuf enum CIDR = 3; + */ + const CIDR = 3; + /** + * Denotes the type of the column as NUMBER (includes int and float). + * + * Generated from protobuf enum NUMBER = 4; + */ + const NUMBER = 4; + + private static $valueToName = [ + self::DATA_TABLE_COLUMN_TYPE_UNSPECIFIED => 'DATA_TABLE_COLUMN_TYPE_UNSPECIFIED', + self::STRING => 'STRING', + self::REGEX => 'REGEX', + self::CIDR => 'CIDR', + self::NUMBER => 'NUMBER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php new file mode 100644 index 000000000000..23120c0eb49b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php @@ -0,0 +1,113 @@ +google.cloud.chronicle.v1.DataTableOperationErrors + */ +class DataTableOperationErrors extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The list of errors. + * Replaces the deprecated `errors` field. + * + * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; + */ + private $rpc_errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * @type \Google\Rpc\Status[] $rpc_errors + * The list of errors. + * Replaces the deprecated `errors` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The list of errors. + * Replaces the deprecated `errors` field. + * + * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; + * @return RepeatedField<\Google\Rpc\Status> + */ + public function getRpcErrors() + { + return $this->rpc_errors; + } + + /** + * The list of errors. + * Replaces the deprecated `errors` field. + * + * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; + * @param \Google\Rpc\Status[] $var + * @return $this + */ + public function setRpcErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->rpc_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php new file mode 100644 index 000000000000..09f30b14ac0c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php @@ -0,0 +1,235 @@ +google.cloud.chronicle.v1.DataTableRow + */ +class DataTableRow extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + /** + * Output only. DataTableRow create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. DataTableRow update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-provided TTL of the data table row. + * + * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $row_time_to_live = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @type string[] $values + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. DataTableRow create time + * @type \Google\Protobuf\Timestamp $update_time + * Output only. DataTableRow update time + * @type string $row_time_to_live + * Optional. User-provided TTL of the data table row. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the data table + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. All column values for a single row. The values should be in the + * same order as the columns of the data tables. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * Output only. DataTableRow create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. DataTableRow create time + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. DataTableRow update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. DataTableRow update time + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. User-provided TTL of the data table row. + * + * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRowTimeToLive() + { + return $this->row_time_to_live; + } + + /** + * Optional. User-provided TTL of the data table row. + * + * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRowTimeToLive($var) + { + GPBUtil::checkString($var, True); + $this->row_time_to_live = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php new file mode 100644 index 000000000000..71088a6ffab9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php @@ -0,0 +1,79 @@ +google.cloud.chronicle.v1.DataTableScopeInfo + */ +class DataTableScopeInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * + * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $data_access_scopes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $data_access_scopes + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * + * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getDataAccessScopes() + { + return $this->data_access_scopes; + } + + /** + * Required. Contains the list of scope names of the data table. If the list + * is empty, the data table is treated as unscoped. The scope names should be + * full resource names and should be of the format: + * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" + * + * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setDataAccessScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_access_scopes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php new file mode 100644 index 000000000000..a2d2cbf75cc5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.DataTableUpdateSource + */ +class DataTableUpdateSource +{ + /** + * The data table is updated by the user. + * + * Generated from protobuf enum DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; + */ + const DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; + /** + * The data table is updated by the user. + * + * Generated from protobuf enum USER = 1; + */ + const USER = 1; + /** + * The data table is updated by the rule. + * + * Generated from protobuf enum RULE = 2; + */ + const RULE = 2; + /** + * The data table is updated by the search. + * + * Generated from protobuf enum SEARCH = 3; + */ + const SEARCH = 3; + + private static $valueToName = [ + self::DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED => 'DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED', + self::USER => 'USER', + self::RULE => 'RULE', + self::SEARCH => 'SEARCH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php new file mode 100644 index 000000000000..31005e449a5e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteDataAccessLabelRequest + */ +class DeleteDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessLabelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access label to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php new file mode 100644 index 000000000000..5d5ef83446ba --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteDataAccessScopeRequest + */ +class DeleteDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessScopeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access scope to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php new file mode 100644 index 000000000000..5b6d521de2f3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.DeleteDataTableRequest + */ +class DeleteDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * @param bool $force Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * @type bool $force + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table to delete. + * Format + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any rows under this data table will also be + * deleted. (Otherwise, the request will only work if the data table has no + * rows.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php new file mode 100644 index 000000000000..90e6718b303a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteDataTableRowRequest + */ +class DeleteDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRowRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php new file mode 100644 index 000000000000..5875f97849e0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.DeleteNativeDashboardRequest + */ +class DeleteNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to delete. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php new file mode 100644 index 000000000000..65679e334596 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php @@ -0,0 +1,151 @@ +google.cloud.chronicle.v1.DeleteRuleRequest + */ +class DeleteRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DeleteRuleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type bool $force + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule to delete. A rule revision timestamp cannot + * be specified as part of the name, as deleting specific revisions is not + * supported. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any retrohunts and any detections associated with + * the rule will also be deleted. If set to false, the call will only succeed + * if the rule has no associated retrohunts, including completed retrohunts, + * and no associated detections. Regardless of this field's value, the rule + * deployment associated with this rule will also be deleted. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php new file mode 100644 index 000000000000..d713acb98186 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.DeleteWatchlistRequest + */ +class DeleteWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. + * @param bool $force Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * @return \Google\Cloud\Chronicle\V1\DeleteWatchlistRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @type bool $force + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the watchlist to delete. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any entities under this watchlist will also be + * deleted. (Otherwise, the request will only work if the watchlist has no + * entities.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php new file mode 100644 index 000000000000..9475a9dc17ed --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php @@ -0,0 +1,125 @@ +google.cloud.chronicle.v1.DuplicateChartRequest + */ +class DuplicateChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The dashboard chart name to duplicate. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + + /** + * @param string $name Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\DuplicateChartRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type string $dashboard_chart + * Required. The dashboard chart name to duplicate. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name that involves chart duplication. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The dashboard chart name to duplicate. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Required. The dashboard chart name to duplicate. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php new file mode 100644 index 000000000000..f8f041f4917e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php @@ -0,0 +1,121 @@ +google.cloud.chronicle.v1.DuplicateChartResponse + */ +class DuplicateChartResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + protected $native_dashboard = null; + /** + * Duplicated chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + protected $dashboard_chart = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Dashboard with chart added in definition. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Duplicated chart resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Dashboard with chart added in definition. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Duplicated chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Duplicated chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php new file mode 100644 index 000000000000..3792bba9ae5c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php @@ -0,0 +1,142 @@ +google.cloud.chronicle.v1.DuplicateNativeDashboardRequest + */ +class DuplicateNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $native_dashboard = null; + + /** + * @param string $name Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * @return \Google\Cloud\Chronicle\V1\DuplicateNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard): self + { + return (new self()) + ->setName($name) + ->setNativeDashboard($nativeDashboard); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to duplicate. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Required. Any fields that need modification can be passed through this like + * name, description etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php new file mode 100644 index 000000000000..cad00c146146 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php @@ -0,0 +1,318 @@ +google.cloud.chronicle.v1.EditChartRequest + */ +class EditChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Query for the edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_query = null; + /** + * Optional. Edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_chart = null; + /** + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $edit_mask = null; + /** + * Optional. Language Features present in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $language_features; + + /** + * @param string $name Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery Optional. Query for the edited chart. + * @param \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart Optional. Edited chart. + * @param \Google\Protobuf\FieldMask $editMask Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * @return \Google\Cloud\Chronicle\V1\EditChartRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery, \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart, \Google\Protobuf\FieldMask $editMask): self + { + return (new self()) + ->setName($name) + ->setDashboardQuery($dashboardQuery) + ->setDashboardChart($dashboardChart) + ->setEditMask($editMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Cloud\Chronicle\V1\DashboardQuery $dashboard_query + * Optional. Query for the edited chart. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Optional. Edited chart. + * @type \Google\Protobuf\FieldMask $edit_mask + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * @type int[] $language_features + * Optional. Language Features present in the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to edit chart in. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Query for the edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null + */ + public function getDashboardQuery() + { + return $this->dashboard_query; + } + + public function hasDashboardQuery() + { + return isset($this->dashboard_query); + } + + public function clearDashboardQuery() + { + unset($this->dashboard_query); + } + + /** + * Optional. Query for the edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var + * @return $this + */ + public function setDashboardQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->dashboard_query = $var; + + return $this; + } + + /** + * Optional. Edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Optional. Edited chart. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + + /** + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getEditMask() + { + return $this->edit_mask; + } + + public function hasEditMask() + { + return isset($this->edit_mask); + } + + public function clearEditMask() + { + unset($this->edit_mask); + } + + /** + * Required. The list of fields to edit for chart and query. + * Supported paths in chart are - + * dashboard_chart.display_name + * dashboard_chart.description + * dashboard_chart.chart_datasource.data_sources + * dashboard_chart.visualization + * dashboard_chart.visualization.button + * dashboard_chart.visualization.markdown + * dashboard_chart.drill_down_config + * Supported paths in query are - + * dashboard_query.query + * dashboard_query.input + * + * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setEditMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->edit_mask = $var; + + return $this; + } + + /** + * Optional. Language Features present in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getLanguageFeatures() + { + return $this->language_features; + } + + /** + * Optional. Language Features present in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setLanguageFeatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\LanguageFeature::class); + $this->language_features = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php new file mode 100644 index 000000000000..dc3b323f23d3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php @@ -0,0 +1,121 @@ +google.cloud.chronicle.v1.EditChartResponse + */ +class EditChartResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Edited dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + */ + protected $native_dashboard = null; + /** + * Edited chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + */ + protected $dashboard_chart = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Edited dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart + * Edited chart resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Edited dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Edited dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Edited chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @return \Google\Cloud\Chronicle\V1\DashboardChart|null + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + public function hasDashboardChart() + { + return isset($this->dashboard_chart); + } + + public function clearDashboardChart() + { + unset($this->dashboard_chart); + } + + /** + * Edited chart resource. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; + * @param \Google\Cloud\Chronicle\V1\DashboardChart $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php new file mode 100644 index 000000000000..73f303fb1bc3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php @@ -0,0 +1,257 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryRequest + */ +class ExecuteDashboardQueryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = null; + /** + * Optional. Dashboard level filters other than query string. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $filters; + /** + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * + * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $clear_cache = false; + /** + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * + * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_previous_time_range = false; + + /** + * @param string $parent Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see DashboardQueryServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $query Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\DashboardQuery $query): self + { + return (new self()) + ->setParent($parent) + ->setQuery($query); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\DashboardQuery $query + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * @type \Google\Cloud\Chronicle\V1\DashboardFilter[] $filters + * Optional. Dashboard level filters other than query string. + * @type bool $clear_cache + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * @type bool $use_previous_time_range + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, under which to run this dashboardQuery. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null + */ + public function getQuery() + { + return $this->query; + } + + public function hasQuery() + { + return isset($this->query); + } + + public function clearQuery() + { + unset($this->query); + } + + /** + * Required. The query to execute and get results back for. + * QueryID or 'query', 'input.time_window' fields will be used. Use + * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard + * query. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->query = $var; + + return $this; + } + + /** + * Optional. Dashboard level filters other than query string. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * Optional. Dashboard level filters other than query string. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardFilter::class); + $this->filters = $arr; + + return $this; + } + + /** + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * + * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getClearCache() + { + return $this->clear_cache; + } + + /** + * Optional. When true, the backend would read from the database, rather than + * fetching data directly from the cache. + * + * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setClearCache($var) + { + GPBUtil::checkBool($var); + $this->clear_cache = $var; + + return $this; + } + + /** + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * + * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsePreviousTimeRange() + { + return $this->use_previous_time_range; + } + + /** + * Optional. When true, the backend will execute the query against the + * previous time range of the query. + * + * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsePreviousTimeRange($var) + { + GPBUtil::checkBool($var); + $this->use_previous_time_range = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php new file mode 100644 index 000000000000..3df4d3c979fa --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php @@ -0,0 +1,261 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse + */ +class ExecuteDashboardQueryResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Result rows that are queried. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; + */ + private $results; + /** + * Datasource of the query and results. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + */ + private $data_sources; + /** + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * + * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $last_backend_cache_refreshed_time = null; + /** + * Time window against which query was executed. + * + * Generated from protobuf field .google.type.Interval time_window = 5; + */ + protected $time_window = null; + /** + * Runtime errors + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; + */ + private $query_runtime_errors; + /** + * Optional. Language features found in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $language_features; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData[] $results + * Result rows that are queried. + * @type int[] $data_sources + * Datasource of the query and results. + * @type \Google\Protobuf\Timestamp $last_backend_cache_refreshed_time + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * @type \Google\Type\Interval $time_window + * Time window against which query was executed. + * @type \Google\Cloud\Chronicle\V1\QueryRuntimeError[] $query_runtime_errors + * Runtime errors + * @type int[] $language_features + * Optional. Language features found in the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Result rows that are queried. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData> + */ + public function getResults() + { + return $this->results; + } + + /** + * Result rows that are queried. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData::class); + $this->results = $arr; + + return $this; + } + + /** + * Datasource of the query and results. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @return RepeatedField + */ + public function getDataSources() + { + return $this->data_sources; + } + + /** + * Datasource of the query and results. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; + * @param int[] $var + * @return $this + */ + public function setDataSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\DataSource::class); + $this->data_sources = $arr; + + return $this; + } + + /** + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * + * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastBackendCacheRefreshedTime() + { + return $this->last_backend_cache_refreshed_time; + } + + public function hasLastBackendCacheRefreshedTime() + { + return isset($this->last_backend_cache_refreshed_time); + } + + public function clearLastBackendCacheRefreshedTime() + { + unset($this->last_backend_cache_refreshed_time); + } + + /** + * Optional. Last time the cache was refreshed. This would be used by the UI + * to show the last updated time. + * + * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastBackendCacheRefreshedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_backend_cache_refreshed_time = $var; + + return $this; + } + + /** + * Time window against which query was executed. + * + * Generated from protobuf field .google.type.Interval time_window = 5; + * @return \Google\Type\Interval|null + */ + public function getTimeWindow() + { + return $this->time_window; + } + + public function hasTimeWindow() + { + return isset($this->time_window); + } + + public function clearTimeWindow() + { + unset($this->time_window); + } + + /** + * Time window against which query was executed. + * + * Generated from protobuf field .google.type.Interval time_window = 5; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setTimeWindow($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->time_window = $var; + + return $this; + } + + /** + * Runtime errors + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\QueryRuntimeError> + */ + public function getQueryRuntimeErrors() + { + return $this->query_runtime_errors; + } + + /** + * Runtime errors + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; + * @param \Google\Cloud\Chronicle\V1\QueryRuntimeError[] $var + * @return $this + */ + public function setQueryRuntimeErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\QueryRuntimeError::class); + $this->query_runtime_errors = $arr; + + return $this; + } + + /** + * Optional. Language features found in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getLanguageFeatures() + { + return $this->language_features; + } + + /** + * Optional. Language features found in the query. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setLanguageFeatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\LanguageFeature::class); + $this->language_features = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php new file mode 100644 index 000000000000..b8e4df0aca8b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php @@ -0,0 +1,143 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData + */ +class ColumnData extends \Google\Protobuf\Internal\Message +{ + /** + * Used to store column names. + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + /** + * To store column data. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; + */ + private $values; + /** + * To store column metadata. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; + */ + protected $metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Used to store column names. + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType[] $values + * To store column data. + * @type \Google\Cloud\Chronicle\V1\ColumnMetadata $metadata + * To store column metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Used to store column names. + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Used to store column names. + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * To store column data. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType> + */ + public function getValues() + { + return $this->values; + } + + /** + * To store column data. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType::class); + $this->values = $arr; + + return $this; + } + + /** + * To store column metadata. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; + * @return \Google\Cloud\Chronicle\V1\ColumnMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * To store column metadata. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; + * @param \Google\Cloud\Chronicle\V1\ColumnMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ColumnMetadata::class); + $this->metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php new file mode 100644 index 000000000000..7f504659a31c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php @@ -0,0 +1,108 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType + */ +class ColumnType extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue $value + * Single value in a column. + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList $list + * List of values in a column e.g. IPs + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Single value in a column. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue value = 1; + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue|null + */ + public function getValue() + { + return $this->readOneof(1); + } + + public function hasValue() + { + return $this->hasOneof(1); + } + + /** + * Single value in a column. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue value = 1; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * List of values in a column e.g. IPs + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List list = 2; + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList|null + */ + public function getList() + { + return $this->readOneof(2); + } + + public function hasList() + { + return $this->hasOneof(2); + } + + /** + * List of values in a column e.g. IPs + * + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List list = 2; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList $var + * @return $this + */ + public function setList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php new file mode 100644 index 000000000000..6ea5b09b5482 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php @@ -0,0 +1,60 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List + */ +class PBList extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue[] $values + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue> + */ + public function getValues() + { + return $this->values; + } + + /** + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php new file mode 100644 index 000000000000..aba08e522e0d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php @@ -0,0 +1,410 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue + */ +class ColumnValue extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; + */ + protected $metadata = null; + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $null_val + * True if the value is NULL. + * @type bool $bool_val + * Boolean value. + * @type string $bytes_val + * Bytes value. + * @type float $double_val + * Double value. + * @type int|string $int64_val + * Integer value (signed). + * @type int|string $uint64_val + * Un-signed integer value. + * @type string $string_val + * String value. Enum values are returned as strings. + * @type \Google\Protobuf\Timestamp $timestamp_val + * Timestamp values. Does not handle `interval`. + * @type \Google\Type\Date $date_val + * Date values. + * @type \Google\Protobuf\Any $proto_val + * For any proto values that are not any of the above. + * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata $metadata + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * True if the value is NULL. + * + * Generated from protobuf field bool null_val = 1; + * @return bool + */ + public function getNullVal() + { + return $this->readOneof(1); + } + + public function hasNullVal() + { + return $this->hasOneof(1); + } + + /** + * True if the value is NULL. + * + * Generated from protobuf field bool null_val = 1; + * @param bool $var + * @return $this + */ + public function setNullVal($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Boolean value. + * + * Generated from protobuf field bool bool_val = 2; + * @return bool + */ + public function getBoolVal() + { + return $this->readOneof(2); + } + + public function hasBoolVal() + { + return $this->hasOneof(2); + } + + /** + * Boolean value. + * + * Generated from protobuf field bool bool_val = 2; + * @param bool $var + * @return $this + */ + public function setBoolVal($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Bytes value. + * + * Generated from protobuf field bytes bytes_val = 3; + * @return string + */ + public function getBytesVal() + { + return $this->readOneof(3); + } + + public function hasBytesVal() + { + return $this->hasOneof(3); + } + + /** + * Bytes value. + * + * Generated from protobuf field bytes bytes_val = 3; + * @param string $var + * @return $this + */ + public function setBytesVal($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Double value. + * + * Generated from protobuf field double double_val = 4; + * @return float + */ + public function getDoubleVal() + { + return $this->readOneof(4); + } + + public function hasDoubleVal() + { + return $this->hasOneof(4); + } + + /** + * Double value. + * + * Generated from protobuf field double double_val = 4; + * @param float $var + * @return $this + */ + public function setDoubleVal($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Integer value (signed). + * + * Generated from protobuf field int64 int64_val = 5; + * @return int|string + */ + public function getInt64Val() + { + return $this->readOneof(5); + } + + public function hasInt64Val() + { + return $this->hasOneof(5); + } + + /** + * Integer value (signed). + * + * Generated from protobuf field int64 int64_val = 5; + * @param int|string $var + * @return $this + */ + public function setInt64Val($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Un-signed integer value. + * + * Generated from protobuf field uint64 uint64_val = 6; + * @return int|string + */ + public function getUint64Val() + { + return $this->readOneof(6); + } + + public function hasUint64Val() + { + return $this->hasOneof(6); + } + + /** + * Un-signed integer value. + * + * Generated from protobuf field uint64 uint64_val = 6; + * @param int|string $var + * @return $this + */ + public function setUint64Val($var) + { + GPBUtil::checkUint64($var); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * String value. Enum values are returned as strings. + * + * Generated from protobuf field string string_val = 7; + * @return string + */ + public function getStringVal() + { + return $this->readOneof(7); + } + + public function hasStringVal() + { + return $this->hasOneof(7); + } + + /** + * String value. Enum values are returned as strings. + * + * Generated from protobuf field string string_val = 7; + * @param string $var + * @return $this + */ + public function setStringVal($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Timestamp values. Does not handle `interval`. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampVal() + { + return $this->readOneof(8); + } + + public function hasTimestampVal() + { + return $this->hasOneof(8); + } + + /** + * Timestamp values. Does not handle `interval`. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampVal($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Date values. + * + * Generated from protobuf field .google.type.Date date_val = 9; + * @return \Google\Type\Date|null + */ + public function getDateVal() + { + return $this->readOneof(9); + } + + public function hasDateVal() + { + return $this->hasOneof(9); + } + + /** + * Date values. + * + * Generated from protobuf field .google.type.Date date_val = 9; + * @param \Google\Type\Date $var + * @return $this + */ + public function setDateVal($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * For any proto values that are not any of the above. + * + * Generated from protobuf field .google.protobuf.Any proto_val = 10; + * @return \Google\Protobuf\Any|null + */ + public function getProtoVal() + { + return $this->readOneof(10); + } + + public function hasProtoVal() + { + return $this->hasOneof(10); + } + + /** + * For any proto values that are not any of the above. + * + * Generated from protobuf field .google.protobuf.Any proto_val = 10; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setProtoVal($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; + * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; + * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php new file mode 100644 index 000000000000..d3d25849132d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php @@ -0,0 +1,140 @@ +google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata + */ +class ValueMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * "Auto" generated In-app links. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; + */ + private $links; + /** + * Generated from protobuf field repeated string field_paths = 2; + */ + private $field_paths; + /** + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; + */ + protected $timestamp_val = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\InAppLink[] $links + * "Auto" generated In-app links. + * @type string[] $field_paths + * @type \Google\Protobuf\Timestamp $timestamp_val + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * "Auto" generated In-app links. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\InAppLink> + */ + public function getLinks() + { + return $this->links; + } + + /** + * "Auto" generated In-app links. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; + * @param \Google\Cloud\Chronicle\V1\InAppLink[] $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\InAppLink::class); + $this->links = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string field_paths = 2; + * @return RepeatedField + */ + public function getFieldPaths() + { + return $this->field_paths; + } + + /** + * Generated from protobuf field repeated string field_paths = 2; + * @param string[] $var + * @return $this + */ + public function setFieldPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->field_paths = $arr; + + return $this; + } + + /** + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampVal() + { + return $this->timestamp_val; + } + + public function hasTimestampVal() + { + return isset($this->timestamp_val); + } + + public function clearTimestampVal() + { + unset($this->timestamp_val); + } + + /** + * Timestamp value to store the timestamp for the case of the date and + * time data type. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampVal($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp_val = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php new file mode 100644 index 000000000000..042cb057790a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php @@ -0,0 +1,122 @@ +google.cloud.chronicle.v1.ExportNativeDashboardsRequest + */ +class ExportNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the dashboards to export. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $names; + + /** + * @param string $parent Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * @param string[] $names Required. The resource names of the dashboards to export. + * + * @return \Google\Cloud\Chronicle\V1\ExportNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type string[] $names + * Required. The resource names of the dashboards to export. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource that the dashboards to be exported belong to. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the dashboards to export. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the dashboards to export. + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php new file mode 100644 index 000000000000..3f3ed5adb422 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.ExportNativeDashboardsResponse + */ +class ExportNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + protected $destination; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\InlineDestination $inline_destination + * The data for the exported dashboards included directly in the response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The data for the exported dashboards included directly in the response. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InlineDestination inline_destination = 1; + * @return \Google\Cloud\Chronicle\V1\InlineDestination|null + */ + public function getInlineDestination() + { + return $this->readOneof(1); + } + + public function hasInlineDestination() + { + return $this->hasOneof(1); + } + + /** + * The data for the exported dashboards included directly in the response. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InlineDestination inline_destination = 1; + * @param \Google\Cloud\Chronicle\V1\InlineDestination $var + * @return $this + */ + public function setInlineDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\InlineDestination::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("destination"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php new file mode 100644 index 000000000000..8f54c9eaa611 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php @@ -0,0 +1,445 @@ +google.cloud.chronicle.v1.FeaturedContentMetadata + */ +class FeaturedContentMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unique identifier of the featured content. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Output only. The display name of the featured content. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. Timestamp indicating when the item was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp indicating when the item was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Content item author full name. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * + * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $certified = false; + /** + * Output only. The description of the content item. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. Categories the content is associated with. + * + * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $categories; + /** + * Output only. Featured content version (Major.Minor.Patch). + * + * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $version = ''; + /** + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * + * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verified = null; + /** + * Output only. The source type of the content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. Unique identifier of the featured content. + * @type string $display_name + * Output only. The display name of the featured content. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp indicating when the item was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp indicating when the item was updated. + * @type string $author + * Output only. Content item author full name. + * @type bool $certified + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * @type string $description + * Output only. The description of the content item. + * @type string[] $categories + * Output only. Categories the content is associated with. + * @type string $version + * Output only. Featured content version (Major.Minor.Patch). + * @type bool $verified + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * @type int $source_type + * Output only. The source type of the content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unique identifier of the featured content. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. Unique identifier of the featured content. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Output only. The display name of the featured content. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The display name of the featured content. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Timestamp indicating when the item was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp indicating when the item was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp indicating when the item was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp indicating when the item was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Content item author full name. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. Content item author full name. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * + * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCertified() + { + return $this->certified; + } + + /** + * Output only. Determine if this content item is officially certified by + * Google or created by the community. + * + * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCertified($var) + { + GPBUtil::checkBool($var); + $this->certified = $var; + + return $this; + } + + /** + * Output only. The description of the content item. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. The description of the content item. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Categories the content is associated with. + * + * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getCategories() + { + return $this->categories; + } + + /** + * Output only. Categories the content is associated with. + * + * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->categories = $arr; + + return $this; + } + + /** + * Output only. Featured content version (Major.Minor.Patch). + * + * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Output only. Featured content version (Major.Minor.Patch). + * + * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * + * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getVerified() + { + return isset($this->verified) ? $this->verified : false; + } + + public function hasVerified() + { + return isset($this->verified); + } + + public function clearVerified() + { + unset($this->verified); + } + + /** + * Output only. Whether the content is verified by Google (applicable for 3rd + * party content). + * + * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setVerified($var) + { + GPBUtil::checkBool($var); + $this->verified = $var; + + return $this; + } + + /** + * Output only. The source type of the content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSourceType() + { + return $this->source_type; + } + + /** + * Output only. The source type of the content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\FeaturedContentMetadata\ContentSourceType::class); + $this->source_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php new file mode 100644 index 000000000000..534cef11ee20 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType + */ +class ContentSourceType +{ + /** + * Unspecified content source type + * + * Generated from protobuf enum CONTENT_SOURCE_TYPE_UNSPECIFIED = 0; + */ + const CONTENT_SOURCE_TYPE_UNSPECIFIED = 0; + /** + * Certified Google content source type + * + * Generated from protobuf enum GOOGLE = 1; + */ + const GOOGLE = 1; + /** + * Community content source type + * + * Generated from protobuf enum COMMUNITY = 2; + */ + const COMMUNITY = 2; + /** + * Partner content source type + * + * Generated from protobuf enum PARTNER = 3; + */ + const PARTNER = 3; + + private static $valueToName = [ + self::CONTENT_SOURCE_TYPE_UNSPECIFIED => 'CONTENT_SOURCE_TYPE_UNSPECIFIED', + self::GOOGLE => 'GOOGLE', + self::COMMUNITY => 'COMMUNITY', + self::PARTNER => 'PARTNER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php new file mode 100644 index 000000000000..6ad1cded0da0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php @@ -0,0 +1,163 @@ +google.cloud.chronicle.v1.FeaturedContentNativeDashboard + */ +class FeaturedContentNativeDashboard extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Metadata about the FeaturedContentNativeDashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $content_metadata = null; + /** + * Optional. The dashboard content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard_content = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @type \Google\Cloud\Chronicle\V1\FeaturedContentMetadata $content_metadata + * Output only. Metadata about the FeaturedContentNativeDashboard. + * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries $dashboard_content + * Optional. The dashboard content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the FeaturedContentNativeDashboard. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Metadata about the FeaturedContentNativeDashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\FeaturedContentMetadata|null + */ + public function getContentMetadata() + { + return $this->content_metadata; + } + + public function hasContentMetadata() + { + return isset($this->content_metadata); + } + + public function clearContentMetadata() + { + unset($this->content_metadata); + } + + /** + * Output only. Metadata about the FeaturedContentNativeDashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\FeaturedContentMetadata $var + * @return $this + */ + public function setContentMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\FeaturedContentMetadata::class); + $this->content_metadata = $var; + + return $this; + } + + /** + * Optional. The dashboard content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries|null + */ + public function getDashboardContent() + { + return $this->dashboard_content; + } + + public function hasDashboardContent() + { + return isset($this->dashboard_content); + } + + public function clearDashboardContent() + { + unset($this->dashboard_content); + } + + /** + * Optional. The dashboard content. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries $var + * @return $this + */ + public function setDashboardContent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); + $this->dashboard_content = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php new file mode 100644 index 000000000000..d67629162255 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php @@ -0,0 +1,139 @@ +google.cloud.chronicle.v1.FilterOperator + */ +class FilterOperator +{ + /** + * Default unspecified. + * + * Generated from protobuf enum FILTER_OPERATOR_UNSPECIFIED = 0; + */ + const FILTER_OPERATOR_UNSPECIFIED = 0; + /** + * Generated from protobuf enum EQUAL = 1; + */ + const EQUAL = 1; + /** + * Generated from protobuf enum NOT_EQUAL = 2; + */ + const NOT_EQUAL = 2; + /** + * Generated from protobuf enum IN = 3; + */ + const IN = 3; + /** + * Generated from protobuf enum GREATER_THAN = 4; + */ + const GREATER_THAN = 4; + /** + * Generated from protobuf enum GREATER_THAN_OR_EQUAL_TO = 5; + */ + const GREATER_THAN_OR_EQUAL_TO = 5; + /** + * Generated from protobuf enum LESS_THAN = 6; + */ + const LESS_THAN = 6; + /** + * Generated from protobuf enum LESS_THAN_OR_EQUAL_TO = 7; + */ + const LESS_THAN_OR_EQUAL_TO = 7; + /** + * Generated from protobuf enum BETWEEN = 8; + */ + const BETWEEN = 8; + /** + * Generated from protobuf enum PAST = 9; + */ + const PAST = 9; + /** + * Generated from protobuf enum IS_NULL = 10; + */ + const IS_NULL = 10; + /** + * Generated from protobuf enum IS_NOT_NULL = 11; + */ + const IS_NOT_NULL = 11; + /** + * Generated from protobuf enum STARTS_WITH = 12; + */ + const STARTS_WITH = 12; + /** + * Generated from protobuf enum ENDS_WITH = 13; + */ + const ENDS_WITH = 13; + /** + * Generated from protobuf enum DOES_NOT_STARTS_WITH = 14; + */ + const DOES_NOT_STARTS_WITH = 14; + /** + * Generated from protobuf enum DOES_NOT_ENDS_WITH = 15; + */ + const DOES_NOT_ENDS_WITH = 15; + /** + * Generated from protobuf enum NOT_IN = 16; + */ + const NOT_IN = 16; + /** + * CONTAINS is used for substring match. + * + * Generated from protobuf enum CONTAINS = 17; + */ + const CONTAINS = 17; + /** + * Used if we want to check if the field does not contain the substring. + * + * Generated from protobuf enum DOES_NOT_CONTAIN = 18; + */ + const DOES_NOT_CONTAIN = 18; + + private static $valueToName = [ + self::FILTER_OPERATOR_UNSPECIFIED => 'FILTER_OPERATOR_UNSPECIFIED', + self::EQUAL => 'EQUAL', + self::NOT_EQUAL => 'NOT_EQUAL', + self::IN => 'IN', + self::GREATER_THAN => 'GREATER_THAN', + self::GREATER_THAN_OR_EQUAL_TO => 'GREATER_THAN_OR_EQUAL_TO', + self::LESS_THAN => 'LESS_THAN', + self::LESS_THAN_OR_EQUAL_TO => 'LESS_THAN_OR_EQUAL_TO', + self::BETWEEN => 'BETWEEN', + self::PAST => 'PAST', + self::IS_NULL => 'IS_NULL', + self::IS_NOT_NULL => 'IS_NOT_NULL', + self::STARTS_WITH => 'STARTS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::DOES_NOT_STARTS_WITH => 'DOES_NOT_STARTS_WITH', + self::DOES_NOT_ENDS_WITH => 'DOES_NOT_ENDS_WITH', + self::NOT_IN => 'NOT_IN', + self::CONTAINS => 'CONTAINS', + self::DOES_NOT_CONTAIN => 'DOES_NOT_CONTAIN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php new file mode 100644 index 000000000000..142ad9a745d4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php @@ -0,0 +1,107 @@ +google.cloud.chronicle.v1.FilterOperatorAndValues + */ +class FilterOperatorAndValues extends \Google\Protobuf\Internal\Message +{ + /** + * Operator for a single filter modifier. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; + */ + protected $filter_operator = 0; + /** + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * + * Generated from protobuf field repeated string field_values = 2; + */ + private $field_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $filter_operator + * Operator for a single filter modifier. + * @type string[] $field_values + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Operator for a single filter modifier. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; + * @return int + */ + public function getFilterOperator() + { + return $this->filter_operator; + } + + /** + * Operator for a single filter modifier. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; + * @param int $var + * @return $this + */ + public function setFilterOperator($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\FilterOperator::class); + $this->filter_operator = $var; + + return $this; + } + + /** + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * + * Generated from protobuf field repeated string field_values = 2; + * @return RepeatedField + */ + public function getFieldValues() + { + return $this->field_values; + } + + /** + * Values for the modifier. All operators should have a single value other + * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds + * like -86400 is past 1 day. + * + * Generated from protobuf field repeated string field_values = 2; + * @param string[] $var + * @return $this + */ + public function setFieldValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->field_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetBigQueryExportRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetBigQueryExportRequest.php new file mode 100644 index 000000000000..b95f81e655d8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetBigQueryExportRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetBigQueryExportRequest + */ +class GetBigQueryExportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the BigqueryExport to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the BigqueryExport to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * Please see {@see BigQueryExportServiceClient::bigQueryExportName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetBigQueryExportRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the BigqueryExport to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\BigQueryExport::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the BigqueryExport to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the BigqueryExport to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php new file mode 100644 index 000000000000..11a3b7ba09f3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDashboardChartRequest + */ +class GetDashboardChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * Please see {@see DashboardChartServiceClient::dashboardChartName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDashboardChartRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the dashboardChart to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php new file mode 100644 index 000000000000..0c607fe266f4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDashboardQueryRequest + */ +class GetDashboardQueryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * Please see {@see DashboardQueryServiceClient::dashboardQueryName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDashboardQueryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the dashboardQuery to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php new file mode 100644 index 000000000000..74aead7733a7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataAccessLabelRequest + */ +class GetDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataAccessLabelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access label to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php new file mode 100644 index 000000000000..0ee76b341d49 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataAccessScopeRequest + */ +class GetDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataAccessScopeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ID of the data access scope to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php new file mode 100644 index 000000000000..b00e5d52ec7d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest + */ +class GetDataTableOperationErrorsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * Please see {@see DataTableServiceClient::dataTableOperationErrorsName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataTableOperationErrorsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name for the data table operation errors. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php new file mode 100644 index 000000000000..ab2aac02a02c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataTableRequest + */ +class GetDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataTableRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table to retrieve. + * Format: + * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php new file mode 100644 index 000000000000..3c1918a3f2be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetDataTableRowRequest + */ +class GetDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetDataTableRowRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the data table row i,e row_id. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php new file mode 100644 index 000000000000..7a4ee8ab0153 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest + */ +class GetFeaturedContentNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * Please see {@see FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetFeaturedContentNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php new file mode 100644 index 000000000000..f7f10e18fe26 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetInstanceRequest + */ +class GetInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * Please see {@see InstanceServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetInstanceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the instance to retrieve. + * Format: + * `projects/{project_id}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php new file mode 100644 index 000000000000..e637b5b6f217 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php @@ -0,0 +1,129 @@ +google.cloud.chronicle.v1.GetNativeDashboardRequest + */ +class GetNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $name Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type int $view + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to fetch. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\NativeDashboardView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php new file mode 100644 index 000000000000..baf589cbd38c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php @@ -0,0 +1,129 @@ +google.cloud.chronicle.v1.GetReferenceListRequest + */ +class GetReferenceListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; + */ + protected $view = 0; + + /** + * @param string $name Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * Please see {@see ReferenceListServiceClient::referenceListName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetReferenceListRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * @type int $view + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the reference list to retrieve. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * How much of the ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php new file mode 100644 index 000000000000..2d46a2a1ae1f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetRetrohuntRequest + */ +class GetRetrohuntRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * Please see {@see RuleServiceClient::retrohuntName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetRetrohuntRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the retrohunt to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php new file mode 100644 index 000000000000..c5defab4535b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.GetRuleDeploymentRequest + */ +class GetRuleDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * Please see {@see RuleServiceClient::ruleDeploymentName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetRuleDeploymentRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule deployment to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php new file mode 100644 index 000000000000..d43e6dff3705 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php @@ -0,0 +1,129 @@ +google.cloud.chronicle.v1.GetRuleRequest + */ +class GetRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; + */ + protected $view = 0; + + /** + * @param string $name Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetRuleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type int $view + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The view field indicates the scope of fields to populate for the Rule being + * returned. If unspecified, defaults to FULL. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php new file mode 100644 index 000000000000..056e4ed0fcf8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php @@ -0,0 +1,96 @@ +google.cloud.chronicle.v1.GetWatchlistRequest + */ +class GetWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\GetWatchlistRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The parent, which owns this collection of watchlists. + * The name of the watchlist to retrieve. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php new file mode 100644 index 000000000000..f671e484e6da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.ImportExportStatus + */ +class ImportExportStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the dashboard if it was supplied in the request. + * + * Generated from protobuf field string dashboard = 1; + */ + protected $dashboard = ''; + /** + * Output only. Status of the import/export operation. + * + * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dashboard + * The resource name of the dashboard if it was supplied in the request. + * @type \Google\Rpc\Status $status + * Output only. Status of the import/export operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the dashboard if it was supplied in the request. + * + * Generated from protobuf field string dashboard = 1; + * @return string + */ + public function getDashboard() + { + return $this->dashboard; + } + + /** + * The resource name of the dashboard if it was supplied in the request. + * + * Generated from protobuf field string dashboard = 1; + * @param string $var + * @return $this + */ + public function setDashboard($var) + { + GPBUtil::checkString($var, True); + $this->dashboard = $var; + + return $this; + } + + /** + * Output only. Status of the import/export operation. + * + * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getStatus() + { + return $this->status; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. Status of the import/export operation. + * + * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php new file mode 100644 index 000000000000..731274371bb9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource + */ +class ImportNativeDashboardsInlineSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $dashboards; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $dashboards + * Required. Dashboards with charts and queries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries> + */ + public function getDashboards() + { + return $this->dashboards; + } + + /** + * Required. Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $var + * @return $this + */ + public function setDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); + $this->dashboards = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php new file mode 100644 index 000000000000..19dad270814c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php @@ -0,0 +1,132 @@ +google.cloud.chronicle.v1.ImportNativeDashboardsRequest + */ +class ImportNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The data will imported from this proto. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $source = null; + + /** + * @param string $parent Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source Required. The data will imported from this proto. + * + * @return \Google\Cloud\Chronicle\V1\ImportNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source): self + { + return (new self()) + ->setParent($parent) + ->setSource($source); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source + * Required. The data will imported from this proto. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this dashboard will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The data will imported from this proto. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * Required. The data will imported from this proto. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource::class); + $this->source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php new file mode 100644 index 000000000000..a89d2e54dbd5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php @@ -0,0 +1,91 @@ +google.cloud.chronicle.v1.ImportNativeDashboardsResponse + */ +class ImportNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $results; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ImportExportStatus[] $results + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ImportExportStatus> + */ + public function getResults() + { + return $this->results; + } + + /** + * Output only. Represents the status of an import operation for multiple + * dashboards. Each dashboard's import status is tracked. A status of OK + * indicates the dashboard was ready for import. Otherwise, an appropriate + * error code and message are provided. Importantly, the import process is + * all-or-nothing: if even one dashboard fails to import, the entire import + * operation is aborted, and none of the dashboards are imported. The order of + * the statuses will be the same as in the import request. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\ImportExportStatus[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ImportExportStatus::class); + $this->results = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php new file mode 100644 index 000000000000..c3a7107895a1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.InAppLink + */ +class InAppLink extends \Google\Protobuf\Internal\Message +{ + /** + * URL to redirect to. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + /** + * Label for the link. + * + * Generated from protobuf field string label = 2; + */ + protected $label = ''; + /** + * Icon url for the link. + * + * Generated from protobuf field string icon_url = 3; + */ + protected $icon_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * URL to redirect to. + * @type string $label + * Label for the link. + * @type string $icon_url + * Icon url for the link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * URL to redirect to. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * URL to redirect to. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Label for the link. + * + * Generated from protobuf field string label = 2; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Label for the link. + * + * Generated from protobuf field string label = 2; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Icon url for the link. + * + * Generated from protobuf field string icon_url = 3; + * @return string + */ + public function getIconUrl() + { + return $this->icon_url; + } + + /** + * Icon url for the link. + * + * Generated from protobuf field string icon_url = 3; + * @param string $var + * @return $this + */ + public function setIconUrl($var) + { + GPBUtil::checkString($var, True); + $this->icon_url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php new file mode 100644 index 000000000000..de4fea8fbc81 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php @@ -0,0 +1,109 @@ +google.cloud.chronicle.v1.IngestionLabel + */ +class IngestionLabel extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The key of the ingestion label. Always required. + * + * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ingestion_label_key = ''; + /** + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * + * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ingestion_label_value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ingestion_label_key + * Required. The key of the ingestion label. Always required. + * @type string $ingestion_label_value + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The key of the ingestion label. Always required. + * + * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getIngestionLabelKey() + { + return $this->ingestion_label_key; + } + + /** + * Required. The key of the ingestion label. Always required. + * + * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setIngestionLabelKey($var) + { + GPBUtil::checkString($var, True); + $this->ingestion_label_key = $var; + + return $this; + } + + /** + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * + * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getIngestionLabelValue() + { + return $this->ingestion_label_value; + } + + /** + * Optional. The value of the ingestion label. Optional. An object + * with no provided value and some key provided would match + * against the given key and ANY value. + * + * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setIngestionLabelValue($var) + { + GPBUtil::checkString($var, True); + $this->ingestion_label_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php new file mode 100644 index 000000000000..866b74665fdf --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.InlineDestination + */ +class InlineDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; + */ + private $dashboards; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $dashboards + * Dashboards with charts and queries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries> + */ + public function getDashboards() + { + return $this->dashboards; + } + + /** + * Dashboards with charts and queries. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $var + * @return $this + */ + public function setDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); + $this->dashboards = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php new file mode 100644 index 000000000000..a8afa8fd340e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php @@ -0,0 +1,137 @@ +google.cloud.chronicle.v1.InputsUsed + */ +class InputsUsed extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether the rule queries UDM events. + * + * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $uses_udm = false; + /** + * Optional. Whether the rule queries entity events. + * + * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $uses_entity = false; + /** + * Optional. Whether the rule queries detections. + * + * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $uses_detection = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $uses_udm + * Optional. Whether the rule queries UDM events. + * @type bool $uses_entity + * Optional. Whether the rule queries entity events. + * @type bool $uses_detection + * Optional. Whether the rule queries detections. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether the rule queries UDM events. + * + * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsesUdm() + { + return $this->uses_udm; + } + + /** + * Optional. Whether the rule queries UDM events. + * + * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsesUdm($var) + { + GPBUtil::checkBool($var); + $this->uses_udm = $var; + + return $this; + } + + /** + * Optional. Whether the rule queries entity events. + * + * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsesEntity() + { + return $this->uses_entity; + } + + /** + * Optional. Whether the rule queries entity events. + * + * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsesEntity($var) + { + GPBUtil::checkBool($var); + $this->uses_entity = $var; + + return $this; + } + + /** + * Optional. Whether the rule queries detections. + * + * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUsesDetection() + { + return $this->uses_detection; + } + + /** + * Optional. Whether the rule queries detections. + * + * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUsesDetection($var) + { + GPBUtil::checkBool($var); + $this->uses_detection = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php new file mode 100644 index 000000000000..2b0c1a42587a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php @@ -0,0 +1,135 @@ +google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest + */ +class InstallFeaturedContentNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The FeaturedContentNativeDashboard to install. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $featured_content_native_dashboard = null; + + /** + * @param string $name Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * Please see {@see FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\InstallFeaturedContentNativeDashboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * @type \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard $featured_content_native_dashboard + * Optional. The FeaturedContentNativeDashboard to install. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the FeaturedContentNativeDashboard to + * install. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The FeaturedContentNativeDashboard to install. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard|null + */ + public function getFeaturedContentNativeDashboard() + { + return $this->featured_content_native_dashboard; + } + + public function hasFeaturedContentNativeDashboard() + { + return isset($this->featured_content_native_dashboard); + } + + public function clearFeaturedContentNativeDashboard() + { + unset($this->featured_content_native_dashboard); + } + + /** + * Optional. The FeaturedContentNativeDashboard to install. + * + * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard $var + * @return $this + */ + public function setFeaturedContentNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::class); + $this->featured_content_native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php new file mode 100644 index 000000000000..5571fee0f8fb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse + */ +class InstallFeaturedContentNativeDashboardResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * + * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $native_dashboard = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $native_dashboard + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * + * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + /** + * Optional. The resource name of the NativeDashboard created. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} + * + * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkString($var, True); + $this->native_dashboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php new file mode 100644 index 000000000000..4f364828a412 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php @@ -0,0 +1,71 @@ +google.cloud.chronicle.v1.Instance + */ +class Instance extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of this instance. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php new file mode 100644 index 000000000000..60f00ada61ce --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php @@ -0,0 +1,70 @@ +google.cloud.chronicle.v1.LanguageFeature + */ +class LanguageFeature +{ + /** + * Language feature is unknown. + * + * Generated from protobuf enum LANGUAGE_FEATURE_UNSPECIFIED = 0; + */ + const LANGUAGE_FEATURE_UNSPECIFIED = 0; + /** + * Language feature is joins. + * + * Generated from protobuf enum JOINS = 1; + */ + const JOINS = 1; + /** + * Language feature is stages. + * + * Generated from protobuf enum STAGES = 2; + */ + const STAGES = 2; + /** + * Language feature is data table. + * + * Generated from protobuf enum DATA_TABLES = 3; + */ + const DATA_TABLES = 3; + + private static $valueToName = [ + self::LANGUAGE_FEATURE_UNSPECIFIED => 'LANGUAGE_FEATURE_UNSPECIFIED', + self::JOINS => 'JOINS', + self::STAGES => 'STAGES', + self::DATA_TABLES => 'DATA_TABLES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LatestExportJobState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LatestExportJobState.php new file mode 100644 index 000000000000..917a94a9f718 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LatestExportJobState.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.LatestExportJobState + */ +class LatestExportJobState +{ + /** + * The latest export job state is unspecified. + * + * Generated from protobuf enum LATEST_EXPORT_JOB_STATE_UNSPECIFIED = 0; + */ + const LATEST_EXPORT_JOB_STATE_UNSPECIFIED = 0; + /** + * The latest export job state is successful. + * + * Generated from protobuf enum LATEST_EXPORT_JOB_STATE_SUCCESS = 1; + */ + const LATEST_EXPORT_JOB_STATE_SUCCESS = 1; + /** + * The latest export job state is failed. + * + * Generated from protobuf enum LATEST_EXPORT_JOB_STATE_FAILED = 2; + */ + const LATEST_EXPORT_JOB_STATE_FAILED = 2; + + private static $valueToName = [ + self::LATEST_EXPORT_JOB_STATE_UNSPECIFIED => 'LATEST_EXPORT_JOB_STATE_UNSPECIFIED', + self::LATEST_EXPORT_JOB_STATE_SUCCESS => 'LATEST_EXPORT_JOB_STATE_SUCCESS', + self::LATEST_EXPORT_JOB_STATE_FAILED => 'LATEST_EXPORT_JOB_STATE_FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php new file mode 100644 index 000000000000..a850d2d49de5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php @@ -0,0 +1,58 @@ +google.cloud.chronicle.v1.LegendAlign + */ +class LegendAlign +{ + /** + * Generated from protobuf enum LEGEND_ALIGN_UNSPECIFIED = 0; + */ + const LEGEND_ALIGN_UNSPECIFIED = 0; + /** + * Generated from protobuf enum AUTO = 1; + */ + const AUTO = 1; + /** + * Generated from protobuf enum LEFT = 2; + */ + const LEFT = 2; + /** + * Generated from protobuf enum RIGHT = 3; + */ + const RIGHT = 3; + + private static $valueToName = [ + self::LEGEND_ALIGN_UNSPECIFIED => 'LEGEND_ALIGN_UNSPECIFIED', + self::AUTO => 'AUTO', + self::LEFT => 'LEFT', + self::RIGHT => 'RIGHT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php new file mode 100644 index 000000000000..4a62d42e57bd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php @@ -0,0 +1,53 @@ +google.cloud.chronicle.v1.LegendOrient + */ +class LegendOrient +{ + /** + * Generated from protobuf enum LEGEND_ORIENT_UNSPECIFIED = 0; + */ + const LEGEND_ORIENT_UNSPECIFIED = 0; + /** + * Generated from protobuf enum VERTICAL = 1; + */ + const VERTICAL = 1; + /** + * Generated from protobuf enum HORIZONTAL = 2; + */ + const HORIZONTAL = 2; + + private static $valueToName = [ + self::LEGEND_ORIENT_UNSPECIFIED => 'LEGEND_ORIENT_UNSPECIFIED', + self::VERTICAL => 'VERTICAL', + self::HORIZONTAL => 'HORIZONTAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php new file mode 100644 index 000000000000..40f14437c42a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php @@ -0,0 +1,220 @@ +google.cloud.chronicle.v1.ListDataAccessLabelsRequest + */ +class ListDataAccessLabelsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataAccessLabelsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data access label will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of data access labels to return. The service may return + * fewer than this value. If unspecified, at most 100 data access labels will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDataAccessLabelsRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessLabel and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php new file mode 100644 index 000000000000..0fb2a491bf5d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListDataAccessLabelsResponse + */ +class ListDataAccessLabelsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data access labels. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; + */ + private $data_access_labels; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessLabel[] $data_access_labels + * List of data access labels. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * List of data access labels. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabel> + */ + public function getDataAccessLabels() + { + return $this->data_access_labels; + } + + /** + * List of data access labels. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel[] $var + * @return $this + */ + public function setDataAccessLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); + $this->data_access_labels = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php new file mode 100644 index 000000000000..54813ad9638e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php @@ -0,0 +1,220 @@ +google.cloud.chronicle.v1.ListDataAccessScopesRequest + */ +class ListDataAccessScopesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataAccessScopesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data access scope will be created. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of data access scopes to return. The service may return + * fewer than this value. If unspecified, at most 100 data access scopes will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDataAccessScopesRequest` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter which should follow the guidelines of AIP-160. + * Supports filtering on all fieds of DataAccessScope and all operations as + * mentioned in https://google.aip.dev/160. + * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR + * display_name:\"-21-1\"". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php new file mode 100644 index 000000000000..fd1d5cd91bc8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php @@ -0,0 +1,149 @@ +google.cloud.chronicle.v1.ListDataAccessScopesResponse + */ +class ListDataAccessScopesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data access scopes. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; + */ + private $data_access_scopes; + /** + * Whether or not global scope is granted to the user. + * + * Generated from protobuf field optional bool global_data_access_scope_granted = 3; + */ + protected $global_data_access_scope_granted = null; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessScope[] $data_access_scopes + * List of data access scopes. + * @type bool $global_data_access_scope_granted + * Whether or not global scope is granted to the user. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * List of data access scopes. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessScope> + */ + public function getDataAccessScopes() + { + return $this->data_access_scopes; + } + + /** + * List of data access scopes. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; + * @param \Google\Cloud\Chronicle\V1\DataAccessScope[] $var + * @return $this + */ + public function setDataAccessScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessScope::class); + $this->data_access_scopes = $arr; + + return $this; + } + + /** + * Whether or not global scope is granted to the user. + * + * Generated from protobuf field optional bool global_data_access_scope_granted = 3; + * @return bool + */ + public function getGlobalDataAccessScopeGranted() + { + return isset($this->global_data_access_scope_granted) ? $this->global_data_access_scope_granted : false; + } + + public function hasGlobalDataAccessScopeGranted() + { + return isset($this->global_data_access_scope_granted); + } + + public function clearGlobalDataAccessScopeGranted() + { + unset($this->global_data_access_scope_granted); + } + + /** + * Whether or not global scope is granted to the user. + * + * Generated from protobuf field optional bool global_data_access_scope_granted = 3; + * @param bool $var + * @return $this + */ + public function setGlobalDataAccessScopeGranted($var) + { + GPBUtil::checkBool($var); + $this->global_data_access_scope_granted = $var; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php new file mode 100644 index 000000000000..3289a1b5e1cc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php @@ -0,0 +1,247 @@ +google.cloud.chronicle.v1.ListDataTableRowsRequest + */ +class ListDataTableRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDataTableRows` call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataTableRowsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @type int $page_size + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataTableRows` call. + * @type string $order_by + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * @type string $filter + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource id of the data table. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of data table rows to return. The service may + * return fewer than this value. If unspecified, at most 100 data table rows + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDataTableRows` call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDataTableRows` call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter facilitating search over data table rows. This filter + * performs a case-insensitive substring match on the row values. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php new file mode 100644 index 000000000000..7cde914b2a14 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListDataTableRowsResponse + */ +class ListDataTableRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of the data table rows returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + */ + private $data_table_rows; + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows + * The list of the data table rows returned. + * @type string $next_page_token + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * The list of the data table rows returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> + */ + public function getDataTableRows() + { + return $this->data_table_rows; + } + + /** + * The list of the data table rows returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; + * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var + * @return $this + */ + public function setDataTableRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_rows = $arr; + + return $this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php new file mode 100644 index 000000000000..bb06c76adbf4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php @@ -0,0 +1,220 @@ +google.cloud.chronicle.v1.ListDataTablesRequest + */ +class ListDataTablesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListDataTablesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type int $page_size + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * @type string $order_by + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this data table will be created. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of data tables to return. The service may + * return fewer than this value. If unspecified, at most 100 data tables will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDataTables` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataTables` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Configures ordering of DataTables in the response. + * Note: Our implementation currently supports order by "create_time asc" only + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php new file mode 100644 index 000000000000..51e7bfc065c6 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListDataTablesResponse + */ +class ListDataTablesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of the data tables returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + */ + private $data_tables; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTable[] $data_tables + * The list of the data tables returned. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * The list of the data tables returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTable> + */ + public function getDataTables() + { + return $this->data_tables; + } + + /** + * The list of the data tables returned. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; + * @param \Google\Cloud\Chronicle\V1\DataTable[] $var + * @return $this + */ + public function setDataTables($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTable::class); + $this->data_tables = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php new file mode 100644 index 000000000000..85bffca5276c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php @@ -0,0 +1,277 @@ +google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest + */ +class ListFeaturedContentNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * Please see {@see FeaturedContentNativeDashboardServiceClient::contentHubName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListFeaturedContentNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * @type int $page_size + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * @type string $filter + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of + * FeaturedContentNativeDashboards. Format: + * projects/{project}/locations/{location}/instances/{instance}/contentHub + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of FeaturedContentNativeDashboards to return. + * The service may return fewer than this value. If unspecified, at most 100 + * FeaturedContentNativeDashboards will be returned. The maximum value is 100; + * values above 100 will be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `ListFeaturedContentNativeDashboards` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filter to apply to list the FeaturedContentNativeDashboards. + * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. + * Supported fields for filtering: + * * `name`: The resource name of the featured content. + * * `content_metadata.description`: The description of the featured + * content. + * When a literal value is provided without a field, it will perform a + * substring search across both `name` and `content_metadata.description`. + * Examples: + * * `"test"`: Matches featured content where either the name or description + * contains "test" as a substring. + * * `name="test"`: Matches featured content where the name contains "test". + * * `content_metadata.description="test"`: Matches featured content where + * the description contains "test". + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php new file mode 100644 index 000000000000..8258ec2f5485 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php @@ -0,0 +1,109 @@ +google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse + */ +class ListFeaturedContentNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; + */ + private $featured_content_native_dashboards; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard[] $featured_content_native_dashboards + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard> + */ + public function getFeaturedContentNativeDashboards() + { + return $this->featured_content_native_dashboards; + } + + /** + * The list of FeaturedContentNativeDashboards. + * Ordered by name by default. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; + * @param \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard[] $var + * @return $this + */ + public function setFeaturedContentNativeDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::class); + $this->featured_content_native_dashboards = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php new file mode 100644 index 000000000000..19e90d6b59df --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php @@ -0,0 +1,208 @@ +google.cloud.chronicle.v1.ListNativeDashboardsRequest + */ +class ListNativeDashboardsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $parent Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListNativeDashboardsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * @type int $page_size + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * @type string $page_token + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * @type int $view + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent owning this dashboard collection. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of dashboards to return. The service may + * return fewer than this value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDashboards` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDashboards` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. View indicates the scope of fields to populate when returning the + * dashboard resource. If unspecified, defaults to the basic view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\NativeDashboardView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php new file mode 100644 index 000000000000..1284ba4e0a82 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListNativeDashboardsResponse + */ +class ListNativeDashboardsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The dashboards from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; + */ + private $native_dashboards; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard[] $native_dashboards + * The dashboards from the specified chronicle instance. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * The dashboards from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboard> + */ + public function getNativeDashboards() + { + return $this->native_dashboards; + } + + /** + * The dashboards from the specified chronicle instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard[] $var + * @return $this + */ + public function setNativeDashboards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboards = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php new file mode 100644 index 000000000000..f06a8a98b070 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php @@ -0,0 +1,221 @@ +google.cloud.chronicle.v1.ListReferenceListsRequest + */ +class ListReferenceListsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; + */ + protected $view = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListReferenceListsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * @type int $view + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of reference lists. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of reference lists to return. + * The service may return fewer than this value. + * If unspecified, at most 100 reference lists will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListReferenceLists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListReferenceLists` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * How much of each ReferenceList to view. Defaults to + * REFERENCE_LIST_VIEW_BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php new file mode 100644 index 000000000000..9c7b02ac252a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php @@ -0,0 +1,109 @@ +google.cloud.chronicle.v1.ListReferenceListsResponse + */ +class ListReferenceListsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The reference lists. + * Ordered in ascending alphabetical order by name. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; + */ + private $reference_lists; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ReferenceList[] $reference_lists + * The reference lists. + * Ordered in ascending alphabetical order by name. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * The reference lists. + * Ordered in ascending alphabetical order by name. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceList> + */ + public function getReferenceLists() + { + return $this->reference_lists; + } + + /** + * The reference lists. + * Ordered in ascending alphabetical order by name. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; + * @param \Google\Cloud\Chronicle\V1\ReferenceList[] $var + * @return $this + */ + public function setReferenceLists($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceList::class); + $this->reference_lists = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php new file mode 100644 index 000000000000..0fb98bf934cf --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php @@ -0,0 +1,225 @@ +google.cloud.chronicle.v1.ListRetrohuntsRequest + */ +class ListRetrohuntsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRetrohuntsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type int $page_size + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * @type string $filter + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The rule that the retrohunts belong to. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of retrohunt to return. The service may return fewer + * than this value. If unspecified, at most 100 retrohunts will be returned. + * The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListRetrohunts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRetrohunts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * state + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php new file mode 100644 index 000000000000..c4dc57d829af --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRetrohuntsResponse + */ +class ListRetrohuntsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The retrohunts from the specified rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; + */ + private $retrohunts; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Retrohunt[] $retrohunts + * The retrohunts from the specified rule. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The retrohunts from the specified rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Retrohunt> + */ + public function getRetrohunts() + { + return $this->retrohunts; + } + + /** + * The retrohunts from the specified rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; + * @param \Google\Cloud\Chronicle\V1\Retrohunt[] $var + * @return $this + */ + public function setRetrohunts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Retrohunt::class); + $this->retrohunts = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php new file mode 100644 index 000000000000..a9135574e7c7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php @@ -0,0 +1,230 @@ +google.cloud.chronicle.v1.ListRuleDeploymentsRequest + */ +class ListRuleDeploymentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRuleDeploymentsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * @type int $page_size + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * @type string $filter + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The collection of all parents which own all rule deployments. The + * "-" wildcard token must be used as the rule identifier in the resource + * path. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/-` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of rule deployments to return. The service may return + * fewer than this value. If unspecified, at most 100 rule deployments will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListRuleDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleDeployments` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter that can be used to retrieve specific rule deployments. + * The following fields are filterable: + * archived, name + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php new file mode 100644 index 000000000000..b3057a270969 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRuleDeploymentsResponse + */ +class ListRuleDeploymentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The rule deployments from all rules. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; + */ + private $rule_deployments; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\RuleDeployment[] $rule_deployments + * The rule deployments from all rules. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The rule deployments from all rules. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\RuleDeployment> + */ + public function getRuleDeployments() + { + return $this->rule_deployments; + } + + /** + * The rule deployments from all rules. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; + * @param \Google\Cloud\Chronicle\V1\RuleDeployment[] $var + * @return $this + */ + public function setRuleDeployments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\RuleDeployment::class); + $this->rule_deployments = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php new file mode 100644 index 000000000000..a22efe8c8aff --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php @@ -0,0 +1,221 @@ +google.cloud.chronicle.v1.ListRuleRevisionsRequest + */ +class ListRuleRevisionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + */ + protected $view = 0; + + /** + * @param string $name Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRuleRevisionsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type int $page_size + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * @type int $view + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the rule to list revisions for. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of revisions to return per page. The service may return + * fewer than this value. If unspecified, at most 100 revisions will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The page token, received from a previous `ListRuleRevisions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRuleRevisions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The view field indicates the scope of fields to populate for the revision + * being returned. If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php new file mode 100644 index 000000000000..9b6fb1ea283d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRuleRevisionsResponse + */ +class ListRuleRevisionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The revisions of the rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + */ + private $rules; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Rule[] $rules + * The revisions of the rule. + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The revisions of the rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * The revisions of the rule. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @param \Google\Cloud\Chronicle\V1\Rule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rules = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php new file mode 100644 index 000000000000..9a5c5ce2394c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php @@ -0,0 +1,263 @@ +google.cloud.chronicle.v1.ListRulesRequest + */ +class ListRulesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + */ + protected $view = 0; + /** + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * + * Generated from protobuf field string filter = 5; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListRulesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * @type int $view + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * @type string $filter + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of rules. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of rules to return. The service may return fewer than + * this value. If unspecified, at most 100 rules will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListRules` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * view indicates the scope of fields to populate for the Rule being returned. + * If unspecified, defaults to BASIC. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); + $this->view = $var; + + return $this; + } + + /** + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * + * Generated from protobuf field string filter = 5; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Only the following filters are allowed: + * "reference_lists:{reference_list_name}" + * "data_tables:{data_table_name}" + * "display_name:{display_name}" + * + * Generated from protobuf field string filter = 5; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php new file mode 100644 index 000000000000..acf552de7aac --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListRulesResponse + */ +class ListRulesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The rules from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + */ + private $rules; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Rule[] $rules + * The rules from the specified instance. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The rules from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * The rules from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; + * @param \Google\Cloud\Chronicle\V1\Rule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rules = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php new file mode 100644 index 000000000000..0fef99adc24d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php @@ -0,0 +1,232 @@ +google.cloud.chronicle.v1.ListWatchlistsRequest + */ +class ListWatchlistsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ListWatchlistsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * @type int $page_size + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * @type string $page_token + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * @type string $filter + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of watchlists. + * Format: `projects/{project}/locations/{location}/instances/{instance}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of watchlists to return. + * The service may return fewer than this value. + * If unspecified, at most 200 watchlists will be returned. + * The maximum value is 200; values above 200 will be coerced to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListWatchlists` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListWatchlists` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Which watchlist to return in aip.dev/160 form. + * Currently, only the following filters are supported: + * - `watchlist_user_preferences.pinned=true` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` + * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php new file mode 100644 index 000000000000..7c89c05776a3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php @@ -0,0 +1,105 @@ +google.cloud.chronicle.v1.ListWatchlistsResponse + */ +class ListWatchlistsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The watchlists from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $watchlists; + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Watchlist[] $watchlists + * Optional. The watchlists from the specified instance. + * @type string $next_page_token + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The watchlists from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\Watchlist> + */ + public function getWatchlists() + { + return $this->watchlists; + } + + /** + * Optional. The watchlists from the specified instance. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Watchlist[] $var + * @return $this + */ + public function setWatchlists($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Watchlist::class); + $this->watchlists = $arr; + + return $this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next + * page. If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php new file mode 100644 index 000000000000..9749a826c422 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php @@ -0,0 +1,111 @@ +google.cloud.chronicle.v1.Markdown + */ +class Markdown extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Markdown content. + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $content = ''; + /** + * Optional. Properties for the markdown. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $content + * Required. Markdown content. + * @type \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties $properties + * Optional. Properties for the markdown. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Required. Markdown content. + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * Required. Markdown content. + * + * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, True); + $this->content = $var; + + return $this; + } + + /** + * Optional. Properties for the markdown. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. Properties for the markdown. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties::class); + $this->properties = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php new file mode 100644 index 000000000000..d9de9725ab3e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.Markdown.MarkdownProperties + */ +class MarkdownProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Background color of the markdown. + * + * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $background_color = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $background_color + * Optional. Background color of the markdown. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Background color of the markdown. + * + * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBackgroundColor() + { + return $this->background_color; + } + + /** + * Optional. Background color of the markdown. + * + * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBackgroundColor($var) + { + GPBUtil::checkString($var, True); + $this->background_color = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php new file mode 100644 index 000000000000..cf9521d4e2ea --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.MetricDisplayTrend + */ +class MetricDisplayTrend +{ + /** + * Trend is not specified. + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_UNSPECIFIED = 0; + */ + const METRIC_DISPLAY_TREND_UNSPECIFIED = 0; + /** + * Trend data in absolute value + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_ABSOLUTE_VALUE = 2; + */ + const METRIC_DISPLAY_TREND_ABSOLUTE_VALUE = 2; + /** + * Trend data in percentage + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_PERCENTAGE = 3; + */ + const METRIC_DISPLAY_TREND_PERCENTAGE = 3; + /** + * Trend data in both absolute value and percentage + * + * Generated from protobuf enum METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE = 4; + */ + const METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE = 4; + + private static $valueToName = [ + self::METRIC_DISPLAY_TREND_UNSPECIFIED => 'METRIC_DISPLAY_TREND_UNSPECIFIED', + self::METRIC_DISPLAY_TREND_ABSOLUTE_VALUE => 'METRIC_DISPLAY_TREND_ABSOLUTE_VALUE', + self::METRIC_DISPLAY_TREND_PERCENTAGE => 'METRIC_DISPLAY_TREND_PERCENTAGE', + self::METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE => 'METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php new file mode 100644 index 000000000000..b7e1c16c9289 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.MetricFormat + */ +class MetricFormat +{ + /** + * Metric format is not specified. + * + * Generated from protobuf enum METRIC_FORMAT_UNSPECIFIED = 0; + */ + const METRIC_FORMAT_UNSPECIFIED = 0; + /** + * Metric format in number + * + * Generated from protobuf enum METRIC_FORMAT_NUMBER = 1; + */ + const METRIC_FORMAT_NUMBER = 1; + /** + * Metric format in plain text + * + * Generated from protobuf enum METRIC_FORMAT_PLAIN_TEXT = 2; + */ + const METRIC_FORMAT_PLAIN_TEXT = 2; + + private static $valueToName = [ + self::METRIC_FORMAT_UNSPECIFIED => 'METRIC_FORMAT_UNSPECIFIED', + self::METRIC_FORMAT_NUMBER => 'METRIC_FORMAT_NUMBER', + self::METRIC_FORMAT_PLAIN_TEXT => 'METRIC_FORMAT_PLAIN_TEXT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php new file mode 100644 index 000000000000..20a0f130035f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.MetricTrendType + */ +class MetricTrendType +{ + /** + * Trend type is not specified. + * + * Generated from protobuf enum METRIC_TREND_TYPE_UNSPECIFIED = 0; + */ + const METRIC_TREND_TYPE_UNSPECIFIED = 0; + /** + * The trend type is regular(green for positive delta) + * + * Generated from protobuf enum METRIC_TREND_TYPE_REGULAR = 1; + */ + const METRIC_TREND_TYPE_REGULAR = 1; + /** + * The trend type is inverse(red for positive delta) + * + * Generated from protobuf enum METRIC_TREND_TYPE_INVERSE = 2; + */ + const METRIC_TREND_TYPE_INVERSE = 2; + + private static $valueToName = [ + self::METRIC_TREND_TYPE_UNSPECIFIED => 'METRIC_TREND_TYPE_UNSPECIFIED', + self::METRIC_TREND_TYPE_REGULAR => 'METRIC_TREND_TYPE_REGULAR', + self::METRIC_TREND_TYPE_INVERSE => 'METRIC_TREND_TYPE_INVERSE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php new file mode 100644 index 000000000000..3968678c6358 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php @@ -0,0 +1,493 @@ +google.cloud.chronicle.v1.NativeDashboard + */ +class NativeDashboard extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the dashboard. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Dashboard display name/title visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of the dashboard. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $definition = null; + /** + * Output only. Whether it's an out of the box or custom created dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Output only. Creation time of dashboard. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time the dashboard was last edited. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. User who created the dashboard. + * + * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_user_id = ''; + /** + * Output only. User who last edited the dashboard. + * + * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_user_id = ''; + /** + * Output only. User Preferences for a dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dashboard_user_data = null; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Output only. Access of the dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the dashboard. + * @type string $display_name + * Required. Dashboard display name/title visible to users. + * @type string $description + * Optional. Description of the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardDefinition $definition + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * @type int $type + * Output only. Whether it's an out of the box or custom created dashboard. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Creation time of dashboard. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time the dashboard was last edited. + * @type string $create_user_id + * Output only. User who created the dashboard. + * @type string $update_user_id + * Output only. User who last edited the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardUserData $dashboard_user_data + * Output only. User Preferences for a dashboard + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type int $access + * Output only. Access of the dashboard + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the dashboard. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the dashboard. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Dashboard display name/title visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Dashboard display name/title visible to users. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the dashboard. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the dashboard. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\DashboardDefinition|null + */ + public function getDefinition() + { + return $this->definition; + } + + public function hasDefinition() + { + return isset($this->definition); + } + + public function clearDefinition() + { + unset($this->definition); + } + + /** + * Optional. Definition of the dashboard like metadata, visualization and + * datasource configuration etc. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardDefinition $var + * @return $this + */ + public function setDefinition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition::class); + $this->definition = $var; + + return $this; + } + + /** + * Output only. Whether it's an out of the box or custom created dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. Whether it's an out of the box or custom created dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DashboardType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Creation time of dashboard. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Creation time of dashboard. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time the dashboard was last edited. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time the dashboard was last edited. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. User who created the dashboard. + * + * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreateUserId() + { + return $this->create_user_id; + } + + /** + * Output only. User who created the dashboard. + * + * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreateUserId($var) + { + GPBUtil::checkString($var, True); + $this->create_user_id = $var; + + return $this; + } + + /** + * Output only. User who last edited the dashboard. + * + * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUpdateUserId() + { + return $this->update_user_id; + } + + /** + * Output only. User who last edited the dashboard. + * + * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUpdateUserId($var) + { + GPBUtil::checkString($var, True); + $this->update_user_id = $var; + + return $this; + } + + /** + * Output only. User Preferences for a dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\DashboardUserData|null + */ + public function getDashboardUserData() + { + return $this->dashboard_user_data; + } + + public function hasDashboardUserData() + { + return isset($this->dashboard_user_data); + } + + public function clearDashboardUserData() + { + unset($this->dashboard_user_data); + } + + /** + * Output only. User Preferences for a dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\DashboardUserData $var + * @return $this + */ + public function setDashboardUserData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardUserData::class); + $this->dashboard_user_data = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. Access of the dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAccess() + { + return $this->access; + } + + /** + * Output only. Access of the dashboard + * + * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAccess($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DashboardAccess::class); + $this->access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php new file mode 100644 index 000000000000..6ca1db683166 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php @@ -0,0 +1,62 @@ +google.cloud.chronicle.v1.NativeDashboardView + */ +class NativeDashboardView +{ + /** + * Defaults to basic. + * + * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_UNSPECIFIED = 0; + */ + const NATIVE_DASHBOARD_VIEW_UNSPECIFIED = 0; + /** + * Include basic metadata about the dashboard without full definition. + * + * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_BASIC = 1; + */ + const NATIVE_DASHBOARD_VIEW_BASIC = 1; + /** + * Include everything. + * + * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_FULL = 2; + */ + const NATIVE_DASHBOARD_VIEW_FULL = 2; + + private static $valueToName = [ + self::NATIVE_DASHBOARD_VIEW_UNSPECIFIED => 'NATIVE_DASHBOARD_VIEW_UNSPECIFIED', + self::NATIVE_DASHBOARD_VIEW_BASIC => 'NATIVE_DASHBOARD_VIEW_BASIC', + self::NATIVE_DASHBOARD_VIEW_FULL => 'NATIVE_DASHBOARD_VIEW_FULL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php new file mode 100644 index 000000000000..aaf937550d17 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php @@ -0,0 +1,145 @@ +google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries + */ +class NativeDashboardWithChartsAndQueries extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Native dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dashboard = null; + /** + * Optional. Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $dashboard_charts; + /** + * Optional. Queries in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $dashboard_queries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $dashboard + * Optional. Native dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardChart[] $dashboard_charts + * Optional. Charts in the dashboard. + * @type \Google\Cloud\Chronicle\V1\DashboardQuery[] $dashboard_queries + * Optional. Queries in the dashboard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Native dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getDashboard() + { + return $this->dashboard; + } + + public function hasDashboard() + { + return isset($this->dashboard); + } + + public function clearDashboard() + { + unset($this->dashboard); + } + + /** + * Optional. Native dashboard. + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->dashboard = $var; + + return $this; + } + + /** + * Optional. Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart> + */ + public function getDashboardCharts() + { + return $this->dashboard_charts; + } + + /** + * Optional. Charts in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardChart[] $var + * @return $this + */ + public function setDashboardCharts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart::class); + $this->dashboard_charts = $arr; + + return $this; + } + + /** + * Optional. Queries in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardQuery> + */ + public function getDashboardQueries() + { + return $this->dashboard_queries; + } + + /** + * Optional. Queries in the dashboard. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\DashboardQuery[] $var + * @return $this + */ + public function setDashboardQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardQuery::class); + $this->dashboard_queries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php new file mode 100644 index 000000000000..51984fd662c3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.PlotMode + */ +class PlotMode +{ + /** + * Plot mode is not specified. + * + * Generated from protobuf enum PLOT_MODE_UNSPECIFIED = 0; + */ + const PLOT_MODE_UNSPECIFIED = 0; + /** + * Plot mode is points. + * + * Generated from protobuf enum PLOT_MODE_POINTS = 1; + */ + const PLOT_MODE_POINTS = 1; + /** + * Plot mode is heatmap. + * + * Generated from protobuf enum PLOT_MODE_HEATMAP = 2; + */ + const PLOT_MODE_HEATMAP = 2; + /** + * Plot mode is both points and heatmap. + * + * Generated from protobuf enum PLOT_MODE_BOTH = 3; + */ + const PLOT_MODE_BOTH = 3; + + private static $valueToName = [ + self::PLOT_MODE_UNSPECIFIED => 'PLOT_MODE_UNSPECIFIED', + self::PLOT_MODE_POINTS => 'PLOT_MODE_POINTS', + self::PLOT_MODE_HEATMAP => 'PLOT_MODE_HEATMAP', + self::PLOT_MODE_BOTH => 'PLOT_MODE_BOTH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php new file mode 100644 index 000000000000..fae88d764577 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.PointSizeType + */ +class PointSizeType +{ + /** + * Point size is not specified. + * + * Generated from protobuf enum POINT_SIZE_TYPE_UNSPECIFIED = 0; + */ + const POINT_SIZE_TYPE_UNSPECIFIED = 0; + /** + * Point size is fixed. + * + * Generated from protobuf enum POINT_SIZE_TYPE_FIXED = 1; + */ + const POINT_SIZE_TYPE_FIXED = 1; + /** + * Point size is proportional to the size of the data point. + * + * Generated from protobuf enum POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE = 2; + */ + const POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE = 2; + + private static $valueToName = [ + self::POINT_SIZE_TYPE_UNSPECIFIED => 'POINT_SIZE_TYPE_UNSPECIFIED', + self::POINT_SIZE_TYPE_FIXED => 'POINT_SIZE_TYPE_FIXED', + self::POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE => 'POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ProvisionBigQueryExportRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ProvisionBigQueryExportRequest.php new file mode 100644 index 000000000000..41622f5cc77a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ProvisionBigQueryExportRequest.php @@ -0,0 +1,86 @@ +google.cloud.chronicle.v1.ProvisionBigQueryExportRequest + */ +class ProvisionBigQueryExportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The instance for which BigQuery export is being provisioned. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * @param string $parent Required. The instance for which BigQuery export is being provisioned. + * Format: projects/{project}/locations/{location}/instances/{instance} + * Please see {@see BigQueryExportServiceClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\ProvisionBigQueryExportRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The instance for which BigQuery export is being provisioned. + * Format: projects/{project}/locations/{location}/instances/{instance} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\BigQueryExport::initOnce(); + parent::__construct($data); + } + + /** + * Required. The instance for which BigQuery export is being provisioned. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The instance for which BigQuery export is being provisioned. + * Format: projects/{project}/locations/{location}/instances/{instance} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php new file mode 100644 index 000000000000..032140db1d4e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php @@ -0,0 +1,203 @@ +google.cloud.chronicle.v1.QueryRuntimeError + */ +class QueryRuntimeError extends \Google\Protobuf\Internal\Message +{ + /** + * Short Description of the error. + * + * Generated from protobuf field string error_title = 1; + */ + protected $error_title = ''; + /** + * Error message + * + * Generated from protobuf field string error_description = 2; + */ + protected $error_description = ''; + /** + * Severity of the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; + */ + protected $error_severity = 0; + /** + * Metadata for the error. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; + */ + private $metadata; + /** + * Reason for the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; + */ + protected $warning_reason = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $error_title + * Short Description of the error. + * @type string $error_description + * Error message + * @type int $error_severity + * Severity of the error. + * @type \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata[] $metadata + * Metadata for the error. + * @type int $warning_reason + * Reason for the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Short Description of the error. + * + * Generated from protobuf field string error_title = 1; + * @return string + */ + public function getErrorTitle() + { + return $this->error_title; + } + + /** + * Short Description of the error. + * + * Generated from protobuf field string error_title = 1; + * @param string $var + * @return $this + */ + public function setErrorTitle($var) + { + GPBUtil::checkString($var, True); + $this->error_title = $var; + + return $this; + } + + /** + * Error message + * + * Generated from protobuf field string error_description = 2; + * @return string + */ + public function getErrorDescription() + { + return $this->error_description; + } + + /** + * Error message + * + * Generated from protobuf field string error_description = 2; + * @param string $var + * @return $this + */ + public function setErrorDescription($var) + { + GPBUtil::checkString($var, True); + $this->error_description = $var; + + return $this; + } + + /** + * Severity of the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; + * @return int + */ + public function getErrorSeverity() + { + return $this->error_severity; + } + + /** + * Severity of the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; + * @param int $var + * @return $this + */ + public function setErrorSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\ErrorSeverity::class); + $this->error_severity = $var; + + return $this; + } + + /** + * Metadata for the error. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata> + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Metadata for the error. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; + * @param \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata[] $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata::class); + $this->metadata = $arr; + + return $this; + } + + /** + * Reason for the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; + * @return int + */ + public function getWarningReason() + { + return $this->warning_reason; + } + + /** + * Reason for the error. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; + * @param int $var + * @return $this + */ + public function setWarningReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\WarningReason::class); + $this->warning_reason = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php new file mode 100644 index 000000000000..3b79186ecf3b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php @@ -0,0 +1,61 @@ +google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity + */ +class ErrorSeverity +{ + /** + * Severity is unknown. + * + * Generated from protobuf enum ERROR_SEVERITY_UNSPECIFIED = 0; + */ + const ERROR_SEVERITY_UNSPECIFIED = 0; + /** + * Severity is warning. + * + * Generated from protobuf enum WARNING = 1; + */ + const WARNING = 1; + /** + * Error is severe. + * + * Generated from protobuf enum SEVERE = 2; + */ + const SEVERE = 2; + + private static $valueToName = [ + self::ERROR_SEVERITY_UNSPECIFIED => 'ERROR_SEVERITY_UNSPECIFIED', + self::WARNING => 'WARNING', + self::SEVERE => 'SEVERE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php new file mode 100644 index 000000000000..aba7c3c6faf9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php @@ -0,0 +1,54 @@ +google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey + */ +class MetadataKey +{ + /** + * Key is unknown. + * + * Generated from protobuf enum METADATA_KEY_UNSPECIFIED = 0; + */ + const METADATA_KEY_UNSPECIFIED = 0; + /** + * Key is row limit. + * + * Generated from protobuf enum ROW_LIMIT = 1; + */ + const ROW_LIMIT = 1; + + private static $valueToName = [ + self::METADATA_KEY_UNSPECIFIED => 'METADATA_KEY_UNSPECIFIED', + self::ROW_LIMIT => 'ROW_LIMIT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php new file mode 100644 index 000000000000..fcf2088ace2a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata + */ +class QueryRuntimeErrorMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Metadata key. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; + */ + protected $key = 0; + /** + * Metadata value. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $key + * Metadata key. + * @type string $value + * Metadata value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Metadata key. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; + * @return int + */ + public function getKey() + { + return $this->key; + } + + /** + * Metadata key. + * + * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; + * @param int $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\MetadataKey::class); + $this->key = $var; + + return $this; + } + + /** + * Metadata value. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Metadata value. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php new file mode 100644 index 000000000000..3caba628f773 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.QueryRuntimeError.WarningReason + */ +class WarningReason +{ + /** + * Reason is unknown. + * + * Generated from protobuf enum WARNING_REASON_UNSPECIFIED = 0; + */ + const WARNING_REASON_UNSPECIFIED = 0; + /** + * Reason is row limit exceeded. + * + * Generated from protobuf enum ROW_LIMIT_EXCEEDED = 1; + */ + const ROW_LIMIT_EXCEEDED = 1; + /** + * Reason is default row limit exceeded. + * + * Generated from protobuf enum DEFAULT_ROW_LIMIT_EXCEEDED = 2; + */ + const DEFAULT_ROW_LIMIT_EXCEEDED = 2; + /** + * Reason is curated query default row limit exceeded. + * + * Generated from protobuf enum CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED = 3; + */ + const CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED = 3; + + private static $valueToName = [ + self::WARNING_REASON_UNSPECIFIED => 'WARNING_REASON_UNSPECIFIED', + self::ROW_LIMIT_EXCEEDED => 'ROW_LIMIT_EXCEEDED', + self::DEFAULT_ROW_LIMIT_EXCEEDED => 'DEFAULT_ROW_LIMIT_EXCEEDED', + self::CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED => 'CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php new file mode 100644 index 000000000000..fa290dd6040a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php @@ -0,0 +1,409 @@ +google.cloud.chronicle.v1.ReferenceList + */ +class ReferenceList extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The unique display name of the reference list. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The timestamp when the reference list was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_create_time = null; + /** + * Required. A user-provided description of the reference list. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = ''; + /** + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + private $entries; + /** + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $rules; + /** + * Required. The syntax type indicating how list entries should be validated. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $syntax_type = 0; + /** + * Output only. The count of self-authored rules using the reference list. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_associations_count = 0; + /** + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; + */ + protected $scope_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * @type string $display_name + * Output only. The unique display name of the reference list. + * @type \Google\Protobuf\Timestamp $revision_create_time + * Output only. The timestamp when the reference list was last updated. + * @type string $description + * Required. A user-provided description of the reference list. + * @type \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $entries + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * @type string[] $rules + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * @type int $syntax_type + * Required. The syntax type indicating how list entries should be validated. + * @type int $rule_associations_count + * Output only. The count of self-authored rules using the reference list. + * @type \Google\Cloud\Chronicle\V1\ScopeInfo $scope_info + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the reference list. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The unique display name of the reference list. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The unique display name of the reference list. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The timestamp when the reference list was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRevisionCreateTime() + { + return $this->revision_create_time; + } + + public function hasRevisionCreateTime() + { + return isset($this->revision_create_time); + } + + public function clearRevisionCreateTime() + { + unset($this->revision_create_time); + } + + /** + * Output only. The timestamp when the reference list was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRevisionCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->revision_create_time = $var; + + return $this; + } + + /** + * Required. A user-provided description of the reference list. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Required. A user-provided description of the reference list. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceListEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * Required. The entries of the reference list. + * When listed, they are returned in the order that was specified at creation + * or update. The combined size of the values of the reference list may not + * exceed 6MB. + * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceListEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getRules() + { + return $this->rules; + } + + /** + * Output only. The resource names for the associated self-authored Rules that + * use this reference list. This is returned only when the view is + * REFERENCE_LIST_VIEW_FULL. + * + * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->rules = $arr; + + return $this; + } + + /** + * Required. The syntax type indicating how list entries should be validated. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getSyntaxType() + { + return $this->syntax_type; + } + + /** + * Required. The syntax type indicating how list entries should be validated. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setSyntaxType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListSyntaxType::class); + $this->syntax_type = $var; + + return $this; + } + + /** + * Output only. The count of self-authored rules using the reference list. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRuleAssociationsCount() + { + return $this->rule_associations_count; + } + + /** + * Output only. The count of self-authored rules using the reference list. + * + * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRuleAssociationsCount($var) + { + GPBUtil::checkInt32($var); + $this->rule_associations_count = $var; + + return $this; + } + + /** + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; + * @return \Google\Cloud\Chronicle\V1\ScopeInfo|null + */ + public function getScopeInfo() + { + return $this->scope_info; + } + + public function hasScopeInfo() + { + return isset($this->scope_info); + } + + public function clearScopeInfo() + { + unset($this->scope_info); + } + + /** + * The scope info of the reference list. + * During reference list creation, if this field is not set, the reference + * list without scopes (an unscoped list) will be created for an unscoped + * user. For a scoped user, this field must be set. During reference list + * update, if scope_info is requested to be updated, this field must be set. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; + * @param \Google\Cloud\Chronicle\V1\ScopeInfo $var + * @return $this + */ + public function setScopeInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ScopeInfo::class); + $this->scope_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php new file mode 100644 index 000000000000..09d9360018ce --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.ReferenceListEntry + */ +class ReferenceListEntry extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The value of the entry. Maximum length is 512 characters. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * Required. The value of the entry. Maximum length is 512 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The value of the entry. Maximum length is 512 characters. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The value of the entry. Maximum length is 512 characters. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php new file mode 100644 index 000000000000..56675595cb8a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.ReferenceListScope + */ +class ReferenceListScope extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * + * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $scope_names; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $scope_names + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * + * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getScopeNames() + { + return $this->scope_names; + } + + /** + * Optional. The list of scope names of the reference list. The scope names + * should be full resource names and should be of the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. + * + * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setScopeNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->scope_names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php new file mode 100644 index 000000000000..1cc19918caec --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.ReferenceListSyntaxType + */ +class ReferenceListSyntaxType +{ + /** + * Defaults to REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; + */ + const REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; + /** + * List contains plain text patterns. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; + */ + const REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; + /** + * List contains only Regular Expression patterns. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; + */ + const REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; + /** + * List contains only CIDR patterns. + * + * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; + */ + const REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; + + private static $valueToName = [ + self::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED => 'REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED', + self::REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING => 'REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING', + self::REFERENCE_LIST_SYNTAX_TYPE_REGEX => 'REFERENCE_LIST_SYNTAX_TYPE_REGEX', + self::REFERENCE_LIST_SYNTAX_TYPE_CIDR => 'REFERENCE_LIST_SYNTAX_TYPE_CIDR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php new file mode 100644 index 000000000000..78d29ab7d594 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.ReferenceListView + */ +class ReferenceListView +{ + /** + * The default / unset value. + * The API will default to the BASIC view for ListReferenceLists. + * The API will default to the FULL view for methods that return a single + * ReferenceList resource. + * + * Generated from protobuf enum REFERENCE_LIST_VIEW_UNSPECIFIED = 0; + */ + const REFERENCE_LIST_VIEW_UNSPECIFIED = 0; + /** + * Include metadata about the ReferenceList. + * This is the default view for ListReferenceLists. + * + * Generated from protobuf enum REFERENCE_LIST_VIEW_BASIC = 1; + */ + const REFERENCE_LIST_VIEW_BASIC = 1; + /** + * Include all details about the ReferenceList: metadata, content lines, + * associated rule counts. This is the default view for GetReferenceList. + * + * Generated from protobuf enum REFERENCE_LIST_VIEW_FULL = 2; + */ + const REFERENCE_LIST_VIEW_FULL = 2; + + private static $valueToName = [ + self::REFERENCE_LIST_VIEW_UNSPECIFIED => 'REFERENCE_LIST_VIEW_UNSPECIFIED', + self::REFERENCE_LIST_VIEW_BASIC => 'REFERENCE_LIST_VIEW_BASIC', + self::REFERENCE_LIST_VIEW_FULL => 'REFERENCE_LIST_VIEW_FULL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php new file mode 100644 index 000000000000..ddf1a53ca080 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php @@ -0,0 +1,125 @@ +google.cloud.chronicle.v1.RemoveChartRequest + */ +class RemoveChartRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The dashboard chart name to remove. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $dashboard_chart = ''; + + /** + * @param string $name Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. + * + * @return \Google\Cloud\Chronicle\V1\RemoveChartRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type string $dashboard_chart + * Required. The dashboard chart name to remove. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The dashboard name to remove chart from. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The dashboard chart name to remove. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getDashboardChart() + { + return $this->dashboard_chart; + } + + /** + * Required. The dashboard chart name to remove. + * + * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDashboardChart($var) + { + GPBUtil::checkString($var, True); + $this->dashboard_chart = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php new file mode 100644 index 000000000000..359a3507de25 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php @@ -0,0 +1,68 @@ +google.cloud.chronicle.v1.RenderType + */ +class RenderType +{ + /** + * Defaults to Unspecified. + * + * Generated from protobuf enum RENDER_TYPE_UNSPECIFIED = 0; + */ + const RENDER_TYPE_UNSPECIFIED = 0; + /** + * Text render type. + * + * Generated from protobuf enum RENDER_TYPE_TEXT = 1; + */ + const RENDER_TYPE_TEXT = 1; + /** + * Icon render type. + * + * Generated from protobuf enum RENDER_TYPE_ICON = 2; + */ + const RENDER_TYPE_ICON = 2; + /** + * Icon and text render type. + * + * Generated from protobuf enum RENDER_TYPE_ICON_AND_TEXT = 3; + */ + const RENDER_TYPE_ICON_AND_TEXT = 3; + + private static $valueToName = [ + self::RENDER_TYPE_UNSPECIFIED => 'RENDER_TYPE_UNSPECIFIED', + self::RENDER_TYPE_TEXT => 'RENDER_TYPE_TEXT', + self::RENDER_TYPE_ICON => 'RENDER_TYPE_ICON', + self::RENDER_TYPE_ICON_AND_TEXT => 'RENDER_TYPE_ICON_AND_TEXT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php new file mode 100644 index 000000000000..39703c9069fd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php @@ -0,0 +1,255 @@ +google.cloud.chronicle.v1.Retrohunt + */ +class Retrohunt extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The start and end time of the event time range this retrohunt + * processes. + * + * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $process_interval = null; + /** + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * + * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_interval = null; + /** + * Output only. The state of the retrohunt. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $progress_percentage = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * @type \Google\Type\Interval $process_interval + * Required. The start and end time of the event time range this retrohunt + * processes. + * @type \Google\Type\Interval $execution_interval + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * @type int $state + * Output only. The state of the retrohunt. + * @type float $progress_percentage + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the retrohunt. + * Retrohunt is the child of a rule revision. {rule} in the format below is + * structured as {rule_id\@revision_id}. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The start and end time of the event time range this retrohunt + * processes. + * + * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Interval|null + */ + public function getProcessInterval() + { + return $this->process_interval; + } + + public function hasProcessInterval() + { + return isset($this->process_interval); + } + + public function clearProcessInterval() + { + unset($this->process_interval); + } + + /** + * Required. The start and end time of the event time range this retrohunt + * processes. + * + * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setProcessInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->process_interval = $var; + + return $this; + } + + /** + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * + * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getExecutionInterval() + { + return $this->execution_interval; + } + + public function hasExecutionInterval() + { + return isset($this->execution_interval); + } + + public function clearExecutionInterval() + { + unset($this->execution_interval); + } + + /** + * Output only. The start and end time of the retrohunt execution. If the + * retrohunt is not yet finished, the end time of the interval will not be + * populated. + * + * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setExecutionInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->execution_interval = $var; + + return $this; + } + + /** + * Output only. The state of the retrohunt. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The state of the retrohunt. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Retrohunt\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getProgressPercentage() + { + return $this->progress_percentage; + } + + /** + * Output only. Percent progress of the retrohunt towards completion, from + * 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setProgressPercentage($var) + { + GPBUtil::checkFloat($var); + $this->progress_percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php new file mode 100644 index 000000000000..0c54a8ff495c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.Retrohunt.State + */ +class State +{ + /** + * Unspecified or unknown retrohunt state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Running state. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * Done state. + * + * Generated from protobuf enum DONE = 2; + */ + const DONE = 2; + /** + * Cancelled state. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + /** + * Failed state. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + self::CANCELLED => 'CANCELLED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php new file mode 100644 index 000000000000..87deefb9bb2e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php @@ -0,0 +1,157 @@ +google.cloud.chronicle.v1.RetrohuntMetadata + */ +class RetrohuntMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { + */ + protected $retrohunt = ''; + /** + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * + * Generated from protobuf field .google.type.Interval execution_interval = 2; + */ + protected $execution_interval = null; + /** + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 3; + */ + protected $progress_percentage = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $retrohunt + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * @type \Google\Type\Interval $execution_interval + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * @type float $progress_percentage + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getRetrohunt() + { + return $this->retrohunt; + } + + /** + * The name of the retrohunt. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` + * + * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRetrohunt($var) + { + GPBUtil::checkString($var, True); + $this->retrohunt = $var; + + return $this; + } + + /** + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * + * Generated from protobuf field .google.type.Interval execution_interval = 2; + * @return \Google\Type\Interval|null + */ + public function getExecutionInterval() + { + return $this->execution_interval; + } + + public function hasExecutionInterval() + { + return isset($this->execution_interval); + } + + public function clearExecutionInterval() + { + unset($this->execution_interval); + } + + /** + * The start and end time of the retrohunt execution. If the retrohunt is not + * yet finished, the end time of the interval will not be filled. + * + * Generated from protobuf field .google.type.Interval execution_interval = 2; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setExecutionInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->execution_interval = $var; + + return $this; + } + + /** + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 3; + * @return float + */ + public function getProgressPercentage() + { + return $this->progress_percentage; + } + + /** + * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. + * + * Generated from protobuf field float progress_percentage = 3; + * @param float $var + * @return $this + */ + public function setProgressPercentage($var) + { + GPBUtil::checkFloat($var); + $this->progress_percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php new file mode 100644 index 000000000000..d1fced9182be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php @@ -0,0 +1,810 @@ +google.cloud.chronicle.v1.Rule + */ +class Rule extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * + * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_id = ''; + /** + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * The YARA-L content of the rule. + * Populated in FULL view. + * + * Generated from protobuf field string text = 4; + */ + protected $text = ''; + /** + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $severity = null; + /** + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * + * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $metadata; + /** + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision_create_time = null; + /** + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compilation_state = 0; + /** + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * + * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $reference_lists; + /** + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $allowed_run_frequencies; + /** + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string etag = 15; + */ + protected $etag = ''; + /** + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * + * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { + */ + protected $scope = ''; + /** + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $compilation_diagnostics; + /** + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * + * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $near_real_time_live_rule_eligible = false; + /** + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $inputs_used = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type string $revision_id + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * @type string $display_name + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * @type string $text + * The YARA-L content of the rule. + * Populated in FULL view. + * @type string $author + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * @type \Google\Cloud\Chronicle\V1\Severity $severity + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * @type \Google\Protobuf\Timestamp $revision_create_time + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * @type int $compilation_state + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * @type int $type + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * @type string[] $reference_lists + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * @type int[] $allowed_run_frequencies + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * @type string $etag + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * @type string $scope + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * @type \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $compilation_diagnostics + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * @type bool $near_real_time_live_rule_eligible + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * @type \Google\Cloud\Chronicle\V1\InputsUsed $inputs_used + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Full resource name for the rule. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * + * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRevisionId() + { + return $this->revision_id; + } + + /** + * Output only. The revision ID of the rule. + * A new revision is created whenever the rule text is changed in any way. + * Format: `v_{10 digits}_{9 digits}` + * Populated in REVISION_METADATA_ONLY view and FULL view. + * + * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRevisionId($var) + { + GPBUtil::checkString($var, True); + $this->revision_id = $var; + + return $this; + } + + /** + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. Display name of the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The YARA-L content of the rule. + * Populated in FULL view. + * + * Generated from protobuf field string text = 4; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The YARA-L content of the rule. + * Populated in FULL view. + * + * Generated from protobuf field string text = 4; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. The author of the rule. Extracted from the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\Severity|null + */ + public function getSeverity() + { + return $this->severity; + } + + public function hasSeverity() + { + return isset($this->severity); + } + + public function clearSeverity() + { + unset($this->severity); + } + + /** + * Output only. The severity of the rule as specified in the meta section of + * text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\Severity $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * + * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Output only. Additional metadata specified in the meta section of text. + * Populated in FULL view. + * + * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata = $arr; + + return $this; + } + + /** + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the rule was created. + * Populated in FULL view. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRevisionCreateTime() + { + return $this->revision_create_time; + } + + public function hasRevisionCreateTime() + { + return isset($this->revision_create_time); + } + + public function clearRevisionCreateTime() + { + unset($this->revision_create_time); + } + + /** + * Output only. The timestamp of when the rule revision was created. + * Populated in FULL, REVISION_METADATA_ONLY views. + * + * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRevisionCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->revision_create_time = $var; + + return $this; + } + + /** + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompilationState() + { + return $this->compilation_state; + } + + /** + * Output only. The current compilation state of the rule. + * Populated in FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompilationState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Rule\CompilationState::class); + $this->compilation_state = $var; + + return $this; + } + + /** + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. User-facing type of the rule. Extracted from the events + * section of rule text. Populated in BASIC view and FULL view. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * + * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getReferenceLists() + { + return $this->reference_lists; + } + + /** + * Output only. Resource names of the reference lists used in this rule. + * Populated in FULL view. + * + * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setReferenceLists($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->reference_lists = $arr; + + return $this; + } + + /** + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getAllowedRunFrequencies() + { + return $this->allowed_run_frequencies; + } + + /** + * Output only. The run frequencies that are allowed for the rule. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setAllowedRunFrequencies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\RunFrequency::class); + $this->allowed_run_frequencies = $arr; + + return $this; + } + + /** + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string etag = 15; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The etag for this rule. + * If this is provided on update, the request will succeed if and only if it + * matches the server-computed value, and will fail with an ABORTED error + * otherwise. + * Populated in BASIC view and FULL view. + * + * Generated from protobuf field string etag = 15; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * + * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { + * @return string + */ + public function getScope() + { + return $this->scope; + } + + /** + * Resource name of the DataAccessScope bound to this rule. + * Populated in BASIC view and FULL view. + * If reference lists are used in the rule, validations will be performed + * against this scope to ensure that the reference lists are compatible with + * both the user's and the rule's scopes. + * The scope should be in the format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. + * + * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkString($var, True); + $this->scope = $var; + + return $this; + } + + /** + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Chronicle\V1\CompilationDiagnostic> + */ + public function getCompilationDiagnostics() + { + return $this->compilation_diagnostics; + } + + /** + * Output only. A list of a rule's corresponding compilation diagnostic + * messages such as compilation errors and compilation warnings. Populated in + * FULL view. + * + * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $var + * @return $this + */ + public function setCompilationDiagnostics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CompilationDiagnostic::class); + $this->compilation_diagnostics = $arr; + + return $this; + } + + /** + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * + * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getNearRealTimeLiveRuleEligible() + { + return $this->near_real_time_live_rule_eligible; + } + + /** + * Output only. Indicate the rule can run in near real time live rule. + * If this is true, the rule uses the near real time live rule when the run + * frequency is set to LIVE. + * + * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setNearRealTimeLiveRuleEligible($var) + { + GPBUtil::checkBool($var); + $this->near_real_time_live_rule_eligible = $var; + + return $this; + } + + /** + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\InputsUsed|null + */ + public function getInputsUsed() + { + return $this->inputs_used; + } + + public function hasInputsUsed() + { + return isset($this->inputs_used); + } + + public function clearInputsUsed() + { + unset($this->inputs_used); + } + + /** + * Output only. The set of inputs used in the rule. For example, if the rule + * uses $e.principal.hostname, then the uses_udm field will be true. + * + * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\InputsUsed $var + * @return $this + */ + public function setInputsUsed($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\InputsUsed::class); + $this->inputs_used = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php new file mode 100644 index 000000000000..fde2594a8645 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php @@ -0,0 +1,63 @@ +google.cloud.chronicle.v1.Rule.CompilationState + */ +class CompilationState +{ + /** + * The compilation state is unspecified/unknown. + * + * Generated from protobuf enum COMPILATION_STATE_UNSPECIFIED = 0; + */ + const COMPILATION_STATE_UNSPECIFIED = 0; + /** + * The Rule can successfully compile. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The Rule cannot successfully compile. + * This is possible if a backwards-incompatible change was made to the + * compiler. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + + private static $valueToName = [ + self::COMPILATION_STATE_UNSPECIFIED => 'COMPILATION_STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php new file mode 100644 index 000000000000..59c5d3f3033c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php @@ -0,0 +1,477 @@ +google.cloud.chronicle.v1.RuleDeployment + */ +class RuleDeployment extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Whether the rule is currently deployed continuously against incoming data. + * + * Generated from protobuf field bool enabled = 2; + */ + protected $enabled = false; + /** + * Whether detections resulting from this deployment should be considered + * alerts. + * + * Generated from protobuf field bool alerting = 3; + */ + protected $alerting = false; + /** + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * + * Generated from protobuf field bool archived = 4; + */ + protected $archived = false; + /** + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $archive_time = null; + /** + * The run frequency of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; + */ + protected $run_frequency = 0; + /** + * Output only. The execution state of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_state = 0; + /** + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $producer_rules; + /** + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $consumer_rules; + /** + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * + * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_alert_status_change_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * @type bool $enabled + * Whether the rule is currently deployed continuously against incoming data. + * @type bool $alerting + * Whether detections resulting from this deployment should be considered + * alerts. + * @type bool $archived + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * @type \Google\Protobuf\Timestamp $archive_time + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * @type int $run_frequency + * The run frequency of the rule deployment. + * @type int $execution_state + * Output only. The execution state of the rule deployment. + * @type string[] $producer_rules + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type string[] $consumer_rules + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type \Google\Protobuf\Timestamp $last_alert_status_change_time + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the rule deployment. + * Note that RuleDeployment is a child of the overall Rule, not any individual + * revision, so the resource ID segment for the Rule resource must not + * reference a specific revision. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Whether the rule is currently deployed continuously against incoming data. + * + * Generated from protobuf field bool enabled = 2; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the rule is currently deployed continuously against incoming data. + * + * Generated from protobuf field bool enabled = 2; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Whether detections resulting from this deployment should be considered + * alerts. + * + * Generated from protobuf field bool alerting = 3; + * @return bool + */ + public function getAlerting() + { + return $this->alerting; + } + + /** + * Whether detections resulting from this deployment should be considered + * alerts. + * + * Generated from protobuf field bool alerting = 3; + * @param bool $var + * @return $this + */ + public function setAlerting($var) + { + GPBUtil::checkBool($var); + $this->alerting = $var; + + return $this; + } + + /** + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * + * Generated from protobuf field bool archived = 4; + * @return bool + */ + public function getArchived() + { + return $this->archived; + } + + /** + * The archive state of the rule deployment. + * Cannot be set to true unless enabled is set to false. + * If set to true, alerting will automatically be set to false. + * If currently set to true, enabled, alerting, and run_frequency cannot be + * updated. + * + * Generated from protobuf field bool archived = 4; + * @param bool $var + * @return $this + */ + public function setArchived($var) + { + GPBUtil::checkBool($var); + $this->archived = $var; + + return $this; + } + + /** + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getArchiveTime() + { + return $this->archive_time; + } + + public function hasArchiveTime() + { + return isset($this->archive_time); + } + + public function clearArchiveTime() + { + unset($this->archive_time); + } + + /** + * Output only. The timestamp when the rule deployment archive state was last + * set to true. If the rule deployment's current archive state is not set to + * true, the field will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setArchiveTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->archive_time = $var; + + return $this; + } + + /** + * The run frequency of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; + * @return int + */ + public function getRunFrequency() + { + return $this->run_frequency; + } + + /** + * The run frequency of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; + * @param int $var + * @return $this + */ + public function setRunFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RunFrequency::class); + $this->run_frequency = $var; + + return $this; + } + + /** + * Output only. The execution state of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getExecutionState() + { + return $this->execution_state; + } + + /** + * Output only. The execution state of the rule deployment. + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setExecutionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleDeployment\ExecutionState::class); + $this->execution_state = $var; + + return $this; + } + + /** + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getProducerRules() + { + return $this->producer_rules; + } + + /** + * Output only. The names of the associated/chained producer rules. Rules are + * considered producers for this rule if this rule explicitly filters on their + * ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setProducerRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->producer_rules = $arr; + + return $this; + } + + /** + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getConsumerRules() + { + return $this->consumer_rules; + } + + /** + * Output only. The names of the associated/chained consumer rules. Rules are + * considered consumers of this rule if their rule text explicitly filters on + * this rule's ruleid. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setConsumerRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->consumer_rules = $arr; + + return $this; + } + + /** + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * + * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastAlertStatusChangeTime() + { + return $this->last_alert_status_change_time; + } + + public function hasLastAlertStatusChangeTime() + { + return isset($this->last_alert_status_change_time); + } + + public function clearLastAlertStatusChangeTime() + { + unset($this->last_alert_status_change_time); + } + + /** + * Output only. The timestamp when the rule deployment alert state was lastly + * changed. This is filled regardless of the current alert state. E.g. if the + * current alert status is false, this timestamp will be the timestamp when + * the alert status was changed to false. + * + * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastAlertStatusChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_alert_status_change_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php new file mode 100644 index 000000000000..c942861abbcc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php @@ -0,0 +1,72 @@ +google.cloud.chronicle.v1.RuleDeployment.ExecutionState + */ +class ExecutionState +{ + /** + * Unspecified or unknown execution state. + * + * Generated from protobuf enum EXECUTION_STATE_UNSPECIFIED = 0; + */ + const EXECUTION_STATE_UNSPECIFIED = 0; + /** + * Default execution state. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * Rules in limited state may not have their executions guaranteed. + * + * Generated from protobuf enum LIMITED = 2; + */ + const LIMITED = 2; + /** + * Paused rules are not executed at all. + * + * Generated from protobuf enum PAUSED = 3; + */ + const PAUSED = 3; + + private static $valueToName = [ + self::EXECUTION_STATE_UNSPECIFIED => 'EXECUTION_STATE_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + self::LIMITED => 'LIMITED', + self::PAUSED => 'PAUSED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php new file mode 100644 index 000000000000..fd4d0dbae098 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php @@ -0,0 +1,62 @@ +google.cloud.chronicle.v1.RuleType + */ +class RuleType +{ + /** + * The rule type is unspecified/unknown. + * + * Generated from protobuf enum RULE_TYPE_UNSPECIFIED = 0; + */ + const RULE_TYPE_UNSPECIFIED = 0; + /** + * Rule checks for the existence of a single event. + * + * Generated from protobuf enum SINGLE_EVENT = 1; + */ + const SINGLE_EVENT = 1; + /** + * Rule checks for correlation between multiple events + * + * Generated from protobuf enum MULTI_EVENT = 2; + */ + const MULTI_EVENT = 2; + + private static $valueToName = [ + self::RULE_TYPE_UNSPECIFIED => 'RULE_TYPE_UNSPECIFIED', + self::SINGLE_EVENT => 'SINGLE_EVENT', + self::MULTI_EVENT => 'MULTI_EVENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php new file mode 100644 index 000000000000..a79782aed652 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php @@ -0,0 +1,77 @@ +google.cloud.chronicle.v1.RuleView + */ +class RuleView +{ + /** + * The default/unset value. + * The API will default to the BASIC view for ListRules/ListRuleRevisions. + * The API will default to the FULL view for GetRule. + * + * Generated from protobuf enum RULE_VIEW_UNSPECIFIED = 0; + */ + const RULE_VIEW_UNSPECIFIED = 0; + /** + * Include basic metadata about the rule, but not the full contents. + * Returned fields include: revision_id, revision_create_time, display_name, + * author, severity, type, allowed_run_frequency, + * near_real_time_live_rule_eligible, etag, and scope. + * This is the default value for ListRules and ListRuleRevisions. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Include all fields. + * This is the default value for GetRule. + * + * Generated from protobuf enum FULL = 2; + */ + const FULL = 2; + /** + * Include basic metadata about the rule's revision only. + * Returned fields include: revision_id and revision_create_time. + * + * Generated from protobuf enum REVISION_METADATA_ONLY = 3; + */ + const REVISION_METADATA_ONLY = 3; + + private static $valueToName = [ + self::RULE_VIEW_UNSPECIFIED => 'RULE_VIEW_UNSPECIFIED', + self::BASIC => 'BASIC', + self::FULL => 'FULL', + self::REVISION_METADATA_ONLY => 'REVISION_METADATA_ONLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php new file mode 100644 index 000000000000..0540b9c3cfd8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php @@ -0,0 +1,69 @@ +google.cloud.chronicle.v1.RunFrequency + */ +class RunFrequency +{ + /** + * The run frequency is unspecified/unknown. + * + * Generated from protobuf enum RUN_FREQUENCY_UNSPECIFIED = 0; + */ + const RUN_FREQUENCY_UNSPECIFIED = 0; + /** + * Executes in real time. + * + * Generated from protobuf enum LIVE = 1; + */ + const LIVE = 1; + /** + * Executes once per hour. + * + * Generated from protobuf enum HOURLY = 2; + */ + const HOURLY = 2; + /** + * Executes once per day. + * + * Generated from protobuf enum DAILY = 3; + */ + const DAILY = 3; + + private static $valueToName = [ + self::RUN_FREQUENCY_UNSPECIFIED => 'RUN_FREQUENCY_UNSPECIFIED', + self::LIVE => 'LIVE', + self::HOURLY => 'HOURLY', + self::DAILY => 'DAILY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php new file mode 100644 index 000000000000..69d47b86337b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php @@ -0,0 +1,81 @@ +google.cloud.chronicle.v1.ScopeInfo + */ +class ScopeInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list_scope = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ReferenceListScope $reference_list_scope + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ReferenceListScope|null + */ + public function getReferenceListScope() + { + return $this->reference_list_scope; + } + + public function hasReferenceListScope() + { + return isset($this->reference_list_scope); + } + + public function clearReferenceListScope() + { + unset($this->reference_list_scope); + } + + /** + * Required. The list of scope names of the reference list, if the list is + * empty the reference list is treated as unscoped. + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceListScope $var + * @return $this + */ + public function setReferenceListScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceListScope::class); + $this->reference_list_scope = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php new file mode 100644 index 000000000000..74f6af984bfe --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php @@ -0,0 +1,63 @@ +google.cloud.chronicle.v1.SeriesStackStrategy + */ +class SeriesStackStrategy +{ + /** + * Generated from protobuf enum SERIES_STACK_STRATEGY_UNSPECIFIED = 0; + */ + const SERIES_STACK_STRATEGY_UNSPECIFIED = 0; + /** + * Generated from protobuf enum SAMESIGN = 1; + */ + const SAMESIGN = 1; + /** + * Generated from protobuf enum ALL = 2; + */ + const ALL = 2; + /** + * Generated from protobuf enum POSITIVE = 3; + */ + const POSITIVE = 3; + /** + * Generated from protobuf enum NEGATIVE = 4; + */ + const NEGATIVE = 4; + + private static $valueToName = [ + self::SERIES_STACK_STRATEGY_UNSPECIFIED => 'SERIES_STACK_STRATEGY_UNSPECIFIED', + self::SAMESIGN => 'SAMESIGN', + self::ALL => 'ALL', + self::POSITIVE => 'POSITIVE', + self::NEGATIVE => 'NEGATIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php new file mode 100644 index 000000000000..7bb8e3e0dc63 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php @@ -0,0 +1,84 @@ +google.cloud.chronicle.v1.SeriesType + */ +class SeriesType +{ + /** + * Generated from protobuf enum SERIES_TYPE_UNSPECIFIED = 0; + */ + const SERIES_TYPE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum LINE = 1; + */ + const LINE = 1; + /** + * Generated from protobuf enum BAR = 2; + */ + const BAR = 2; + /** + * Generated from protobuf enum PIE = 3; + */ + const PIE = 3; + /** + * Generated from protobuf enum TEXT = 4; + */ + const TEXT = 4; + /** + * Represents map chart type. + * + * Generated from protobuf enum MAP = 5; + */ + const MAP = 5; + /** + * Represents gauge chart type. + * + * Generated from protobuf enum GAUGE = 6; + */ + const GAUGE = 6; + /** + * Represents scatterplot chart type. + * + * Generated from protobuf enum SCATTERPLOT = 7; + */ + const SCATTERPLOT = 7; + + private static $valueToName = [ + self::SERIES_TYPE_UNSPECIFIED => 'SERIES_TYPE_UNSPECIFIED', + self::LINE => 'LINE', + self::BAR => 'BAR', + self::PIE => 'PIE', + self::TEXT => 'TEXT', + self::MAP => 'MAP', + self::GAUGE => 'GAUGE', + self::SCATTERPLOT => 'SCATTERPLOT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php new file mode 100644 index 000000000000..8d2c048917ac --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php @@ -0,0 +1,71 @@ +google.cloud.chronicle.v1.Severity + */ +class Severity extends \Google\Protobuf\Internal\Message +{ + /** + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the severity level. Extracted from the meta section of + * the rule text. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php new file mode 100644 index 000000000000..63e868885a31 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php @@ -0,0 +1,69 @@ +google.cloud.chronicle.v1.TileType + */ +class TileType +{ + /** + * Defaults to VISUALIZATION. + * + * Generated from protobuf enum TILE_TYPE_UNSPECIFIED = 0; + */ + const TILE_TYPE_UNSPECIFIED = 0; + /** + * Visualization i.e., bar charts, pie charts etc. + * + * Generated from protobuf enum TILE_TYPE_VISUALIZATION = 1; + */ + const TILE_TYPE_VISUALIZATION = 1; + /** + * Button with hyperlink. + * + * Generated from protobuf enum TILE_TYPE_BUTTON = 2; + */ + const TILE_TYPE_BUTTON = 2; + /** + * Markdown tile. + * + * Generated from protobuf enum TILE_TYPE_MARKDOWN = 3; + */ + const TILE_TYPE_MARKDOWN = 3; + + private static $valueToName = [ + self::TILE_TYPE_UNSPECIFIED => 'TILE_TYPE_UNSPECIFIED', + self::TILE_TYPE_VISUALIZATION => 'TILE_TYPE_VISUALIZATION', + self::TILE_TYPE_BUTTON => 'TILE_TYPE_BUTTON', + self::TILE_TYPE_MARKDOWN => 'TILE_TYPE_MARKDOWN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php new file mode 100644 index 000000000000..e7f6968ce5e3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php @@ -0,0 +1,82 @@ +google.cloud.chronicle.v1.TimeUnit + */ +class TimeUnit +{ + /** + * Default unspecified. + * + * Generated from protobuf enum TIME_UNIT_UNSPECIFIED = 0; + */ + const TIME_UNIT_UNSPECIFIED = 0; + /** + * Generated from protobuf enum SECOND = 1; + */ + const SECOND = 1; + /** + * Generated from protobuf enum MINUTE = 2; + */ + const MINUTE = 2; + /** + * Generated from protobuf enum HOUR = 3; + */ + const HOUR = 3; + /** + * Generated from protobuf enum DAY = 4; + */ + const DAY = 4; + /** + * Generated from protobuf enum WEEK = 5; + */ + const WEEK = 5; + /** + * Generated from protobuf enum MONTH = 6; + */ + const MONTH = 6; + /** + * Generated from protobuf enum YEAR = 7; + */ + const YEAR = 7; + + private static $valueToName = [ + self::TIME_UNIT_UNSPECIFIED => 'TIME_UNIT_UNSPECIFIED', + self::SECOND => 'SECOND', + self::MINUTE => 'MINUTE', + self::HOUR => 'HOUR', + self::DAY => 'DAY', + self::WEEK => 'WEEK', + self::MONTH => 'MONTH', + self::YEAR => 'YEAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php new file mode 100644 index 000000000000..47894d135e50 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php @@ -0,0 +1,203 @@ +google.cloud.chronicle.v1.TimestampMetadata + */ +class TimestampMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Time format of the timestamp column. + * + * Generated from protobuf field string time_format = 1; + */ + protected $time_format = ''; + /** + * Time zone of the timestamp column. + * + * Generated from protobuf field string time_zone = 2; + */ + protected $time_zone = ''; + /** + * Time granularity of the timestamp column. + * + * Generated from protobuf field string time_granularity = 3; + */ + protected $time_granularity = ''; + /** + * Whether the timestamp column is sortable in UI. + * + * Generated from protobuf field bool is_sortable = 4; + */ + protected $is_sortable = false; + /** + * Whether the timestamp column is interpolable in UI. + * + * Generated from protobuf field bool is_interpolable = 5; + */ + protected $is_interpolable = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $time_format + * Time format of the timestamp column. + * @type string $time_zone + * Time zone of the timestamp column. + * @type string $time_granularity + * Time granularity of the timestamp column. + * @type bool $is_sortable + * Whether the timestamp column is sortable in UI. + * @type bool $is_interpolable + * Whether the timestamp column is interpolable in UI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); + parent::__construct($data); + } + + /** + * Time format of the timestamp column. + * + * Generated from protobuf field string time_format = 1; + * @return string + */ + public function getTimeFormat() + { + return $this->time_format; + } + + /** + * Time format of the timestamp column. + * + * Generated from protobuf field string time_format = 1; + * @param string $var + * @return $this + */ + public function setTimeFormat($var) + { + GPBUtil::checkString($var, True); + $this->time_format = $var; + + return $this; + } + + /** + * Time zone of the timestamp column. + * + * Generated from protobuf field string time_zone = 2; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Time zone of the timestamp column. + * + * Generated from protobuf field string time_zone = 2; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Time granularity of the timestamp column. + * + * Generated from protobuf field string time_granularity = 3; + * @return string + */ + public function getTimeGranularity() + { + return $this->time_granularity; + } + + /** + * Time granularity of the timestamp column. + * + * Generated from protobuf field string time_granularity = 3; + * @param string $var + * @return $this + */ + public function setTimeGranularity($var) + { + GPBUtil::checkString($var, True); + $this->time_granularity = $var; + + return $this; + } + + /** + * Whether the timestamp column is sortable in UI. + * + * Generated from protobuf field bool is_sortable = 4; + * @return bool + */ + public function getIsSortable() + { + return $this->is_sortable; + } + + /** + * Whether the timestamp column is sortable in UI. + * + * Generated from protobuf field bool is_sortable = 4; + * @param bool $var + * @return $this + */ + public function setIsSortable($var) + { + GPBUtil::checkBool($var); + $this->is_sortable = $var; + + return $this; + } + + /** + * Whether the timestamp column is interpolable in UI. + * + * Generated from protobuf field bool is_interpolable = 5; + * @return bool + */ + public function getIsInterpolable() + { + return $this->is_interpolable; + } + + /** + * Whether the timestamp column is interpolable in UI. + * + * Generated from protobuf field bool is_interpolable = 5; + * @param bool $var + * @return $this + */ + public function setIsInterpolable($var) + { + GPBUtil::checkBool($var); + $this->is_interpolable = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php new file mode 100644 index 000000000000..abbed5759b26 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php @@ -0,0 +1,58 @@ +google.cloud.chronicle.v1.ToolTipTrigger + */ +class ToolTipTrigger +{ + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_UNSPECIFIED = 0; + */ + const TOOLTIP_TRIGGER_UNSPECIFIED = 0; + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_NONE = 1; + */ + const TOOLTIP_TRIGGER_NONE = 1; + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_ITEM = 2; + */ + const TOOLTIP_TRIGGER_ITEM = 2; + /** + * Generated from protobuf enum TOOLTIP_TRIGGER_AXIS = 3; + */ + const TOOLTIP_TRIGGER_AXIS = 3; + + private static $valueToName = [ + self::TOOLTIP_TRIGGER_UNSPECIFIED => 'TOOLTIP_TRIGGER_UNSPECIFIED', + self::TOOLTIP_TRIGGER_NONE => 'TOOLTIP_TRIGGER_NONE', + self::TOOLTIP_TRIGGER_ITEM => 'TOOLTIP_TRIGGER_ITEM', + self::TOOLTIP_TRIGGER_AXIS => 'TOOLTIP_TRIGGER_AXIS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateBigQueryExportRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateBigQueryExportRequest.php new file mode 100644 index 000000000000..c58b70a8a007 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateBigQueryExportRequest.php @@ -0,0 +1,146 @@ +google.cloud.chronicle.v1.UpdateBigQueryExportRequest + */ +class UpdateBigQueryExportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The BigQueryExport settings to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field .google.cloud.chronicle.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $big_query_export = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\BigQueryExport $bigQueryExport Required. The BigQueryExport settings to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Cloud\Chronicle\V1\UpdateBigQueryExportRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\BigQueryExport $bigQueryExport, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setBigQueryExport($bigQueryExport) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\BigQueryExport $big_query_export + * Required. The BigQueryExport settings to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\BigQueryExport::initOnce(); + parent::__construct($data); + } + + /** + * Required. The BigQueryExport settings to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field .google.cloud.chronicle.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\BigQueryExport|null + */ + public function getBigQueryExport() + { + return $this->big_query_export; + } + + public function hasBigQueryExport() + { + return isset($this->big_query_export); + } + + public function clearBigQueryExport() + { + unset($this->big_query_export); + } + + /** + * Required. The BigQueryExport settings to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * + * Generated from protobuf field .google.cloud.chronicle.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\BigQueryExport $var + * @return $this + */ + public function setBigQueryExport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\BigQueryExport::class); + $this->big_query_export = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php new file mode 100644 index 000000000000..6830fde1824e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php @@ -0,0 +1,167 @@ +google.cloud.chronicle.v1.UpdateDataAccessLabelRequest + */ +class UpdateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_label = null; + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. The data access label to update. + * + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessLabelRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAccessLabel($dataAccessLabel) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null + */ + public function getDataAccessLabel() + { + return $this->data_access_label; + } + + public function hasDataAccessLabel() + { + return isset($this->data_access_label); + } + + public function clearDataAccessLabel() + { + unset($this->data_access_label); + } + + /** + * Required. The data access label to update. + * The label's `name` field is used to identify the label to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var + * @return $this + */ + public function setDataAccessLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); + $this->data_access_label = $var; + + return $this; + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description and definition + * fields are supported for update; an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php new file mode 100644 index 000000000000..b332994c240e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php @@ -0,0 +1,172 @@ +google.cloud.chronicle.v1.UpdateDataAccessScopeRequest + */ +class UpdateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_access_scope = null; + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. The data access scope to update. + * + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessScopeRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAccessScope($dataAccessScope) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null + */ + public function getDataAccessScope() + { + return $this->data_access_scope; + } + + public function hasDataAccessScope() + { + return isset($this->data_access_scope); + } + + public function clearDataAccessScope() + { + unset($this->data_access_scope); + } + + /** + * Required. The data access scope to update. + * The scope's `name` field is used to identify the scope to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var + * @return $this + */ + public function setDataAccessScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); + $this->data_access_scope = $var; + + return $this; + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. Currently, only the description, the allowed + * and denied labels list fields are supported for update; + * an update call that attempts to update any + * other fields will return INVALID_ARGUMENT. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php new file mode 100644 index 000000000000..db7d985e7a3d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php @@ -0,0 +1,161 @@ +google.cloud.chronicle.v1.UpdateDataTableRequest + */ +class UpdateDataTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table = null; + /** + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataTable $dataTable, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataTable($dataTable) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTable $data_table + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTable|null + */ + public function getDataTable() + { + return $this->data_table; + } + + public function hasDataTable() + { + return isset($this->data_table); + } + + public function clearDataTable() + { + unset($this->data_table); + } + + /** + * Required. This field is used to identify the datatable to update. + * Format: + * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTable $var + * @return $this + */ + public function setDataTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); + $this->data_table = $var; + + return $this; + } + + /** + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of metadata fields to update. Currently data tables only + * support updating the `description`, `row_time_to_live` and `scope_info` + * fields. When no field mask is supplied, all non-empty fields will be + * updated. A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php new file mode 100644 index 000000000000..9f1bc32f4b5b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php @@ -0,0 +1,156 @@ +google.cloud.chronicle.v1.UpdateDataTableRowRequest + */ +class UpdateDataTableRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_table_row = null; + /** + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataTableRow($dataTableRow) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\DataTableRow|null + */ + public function getDataTableRow() + { + return $this->data_table_row; + } + + public function hasDataTableRow() + { + return isset($this->data_table_row); + } + + public function clearDataTableRow() + { + unset($this->data_table_row); + } + + /** + * Required. Format: + * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * + * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\DataTableRow $var + * @return $this + */ + public function setDataTableRow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); + $this->data_table_row = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. Currently data table rows only + * support updating the `values` field. When no field mask is supplied, all + * non-empty fields will be updated. A field mask of "*" will update all + * fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php new file mode 100644 index 000000000000..7af3a6cab0e8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php @@ -0,0 +1,197 @@ +google.cloud.chronicle.v1.UpdateNativeDashboardRequest + */ +class UpdateNativeDashboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $native_dashboard = null; + /** + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. The dashboard to update. + * + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @param \Google\Protobuf\FieldMask $updateMask Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * @return \Google\Cloud\Chronicle\V1\UpdateNativeDashboardRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * @type \Google\Protobuf\FieldMask $update_mask + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); + parent::__construct($data); + } + + /** + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null + */ + public function getNativeDashboard() + { + return $this->native_dashboard; + } + + public function hasNativeDashboard() + { + return isset($this->native_dashboard); + } + + public function clearNativeDashboard() + { + unset($this->native_dashboard); + } + + /** + * Required. The dashboard to update. + * The dashboard's `name` field is used to identify the dashboard to update. + * Format: + * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var + * @return $this + */ + public function setNativeDashboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); + $this->native_dashboard = $var; + + return $this; + } + + /** + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. LINT.IfChange(update_mask_values) + * The list of fields to update. + * Supported paths are - + * display_name + * description + * definition.filters + * definition.charts + * type + * access + * dashboard_user_data.is_pinned + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php new file mode 100644 index 000000000000..f38d1db1fad1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php @@ -0,0 +1,167 @@ +google.cloud.chronicle.v1.UpdateReferenceListRequest + */ +class UpdateReferenceListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reference_list = null; + /** + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to update. + * + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * @return \Google\Cloud\Chronicle\V1\UpdateReferenceListRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\ReferenceList $referenceList, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setReferenceList($referenceList) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); + parent::__construct($data); + } + + /** + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\ReferenceList|null + */ + public function getReferenceList() + { + return $this->reference_list; + } + + public function hasReferenceList() + { + return isset($this->reference_list); + } + + public function clearReferenceList() + { + unset($this->reference_list); + } + + /** + * Required. The reference list to update. + * The reference list's `name` field is used to identify the reference list to + * update. + * Format: + * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\ReferenceList $var + * @return $this + */ + public function setReferenceList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); + $this->reference_list = $var; + + return $this; + } + + /** + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. + * When no field mask is supplied, all non-empty fields will be updated. + * A field mask of "*" will update all fields, whether empty or not. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php new file mode 100644 index 000000000000..b6628f53c50e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php @@ -0,0 +1,152 @@ +google.cloud.chronicle.v1.UpdateRuleDeploymentRequest + */ +class UpdateRuleDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rule_deployment = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment Required. The rule deployment to update. + * + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Cloud\Chronicle\V1\UpdateRuleDeploymentRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\RuleDeployment $rule_deployment + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\RuleDeployment|null + */ + public function getRuleDeployment() + { + return $this->rule_deployment; + } + + public function hasRuleDeployment() + { + return isset($this->rule_deployment); + } + + public function clearRuleDeployment() + { + unset($this->rule_deployment); + } + + /** + * Required. The rule deployment to update. + * The rule deployment's `name` field is used to identify the rule deployment + * to update. Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` + * + * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\RuleDeployment $var + * @return $this + */ + public function setRuleDeployment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\RuleDeployment::class); + $this->rule_deployment = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php new file mode 100644 index 000000000000..4d51451d9e75 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php @@ -0,0 +1,157 @@ +google.cloud.chronicle.v1.UpdateRuleRequest + */ +class UpdateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rule = null; + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to update. + * + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * @return \Google\Cloud\Chronicle\V1\UpdateRuleRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\Rule $rule, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRule($rule) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Rule $rule + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * @type \Google\Protobuf\FieldMask $update_mask + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); + parent::__construct($data); + } + + /** + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Rule|null + */ + public function getRule() + { + return $this->rule; + } + + public function hasRule() + { + return isset($this->rule); + } + + public function clearRule() + { + unset($this->rule); + } + + /** + * Required. The rule to update. + * The rule's `name` field is used to identify the rule to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Rule $var + * @return $this + */ + public function setRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); + $this->rule = $var; + + return $this; + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The list of fields to update. If not included, all fields with a non-empty + * value will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php new file mode 100644 index 000000000000..9afffa4ab421 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php @@ -0,0 +1,152 @@ +google.cloud.chronicle.v1.UpdateWatchlistRequest + */ +class UpdateWatchlistRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $watchlist = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to update. + * + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Cloud\Chronicle\V1\UpdateWatchlistRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Chronicle\V1\Watchlist $watchlist, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setWatchlist($watchlist) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Watchlist|null + */ + public function getWatchlist() + { + return $this->watchlist; + } + + public function hasWatchlist() + { + return isset($this->watchlist); + } + + public function clearWatchlist() + { + unset($this->watchlist); + } + + /** + * Required. The watchlist to update. + * The watchlist's `name` field is used to identify the watchlist to update. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Watchlist $var + * @return $this + */ + public function setWatchlist($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); + $this->watchlist = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php new file mode 100644 index 000000000000..f936d25469b0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php @@ -0,0 +1,62 @@ +google.cloud.chronicle.v1.VisualMapType + */ +class VisualMapType +{ + /** + * Visual map type is not specified + * + * Generated from protobuf enum VISUAL_MAP_TYPE_UNSPECIFIED = 0; + */ + const VISUAL_MAP_TYPE_UNSPECIFIED = 0; + /** + * Continuous visual map + * + * Generated from protobuf enum CONTINUOUS = 1; + */ + const CONTINUOUS = 1; + /** + * Piecewise visual map + * + * Generated from protobuf enum PIECEWISE = 2; + */ + const PIECEWISE = 2; + + private static $valueToName = [ + self::VISUAL_MAP_TYPE_UNSPECIFIED => 'VISUAL_MAP_TYPE_UNSPECIFIED', + self::CONTINUOUS => 'CONTINUOUS', + self::PIECEWISE => 'PIECEWISE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php new file mode 100644 index 000000000000..2c3553e82f3e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php @@ -0,0 +1,414 @@ +google.cloud.chronicle.v1.Watchlist + */ +class Watchlist extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of the watchlist. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * + * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $multiplying_factor = 0.0; + /** + * Required. Mechanism to populate entities in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_population_mechanism = null; + /** + * Output only. Entity count in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entity_count = null; + /** + * Output only. Time the watchlist was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time the watchlist was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User preferences for watchlist configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $watchlist_user_preferences = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * @type string $display_name + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * @type string $description + * Optional. Description of the watchlist. + * @type float $multiplying_factor + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $entity_population_mechanism + * Required. Mechanism to populate entities in the watchlist. + * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $entity_count + * Output only. Entity count in the watchlist. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time the watchlist was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time the watchlist was last updated. + * @type \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $watchlist_user_preferences + * Optional. User preferences for watchlist configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the watchlist. + * Format: + * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name of the watchlist. + * Note that it must be at least one character and less than 63 characters + * (https://google.aip.dev/148). + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the watchlist. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the watchlist. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * + * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getMultiplyingFactor() + { + return $this->multiplying_factor; + } + + /** + * Optional. Weight applied to the risk score for entities + * in this watchlist. + * The default is 1.0 if it is not specified. + * + * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setMultiplyingFactor($var) + { + GPBUtil::checkFloat($var); + $this->multiplying_factor = $var; + + return $this; + } + + /** + * Required. Mechanism to populate entities in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism|null + */ + public function getEntityPopulationMechanism() + { + return $this->entity_population_mechanism; + } + + public function hasEntityPopulationMechanism() + { + return isset($this->entity_population_mechanism); + } + + public function clearEntityPopulationMechanism() + { + unset($this->entity_population_mechanism); + } + + /** + * Required. Mechanism to populate entities in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $var + * @return $this + */ + public function setEntityPopulationMechanism($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism::class); + $this->entity_population_mechanism = $var; + + return $this; + } + + /** + * Output only. Entity count in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityCount|null + */ + public function getEntityCount() + { + return $this->entity_count; + } + + public function hasEntityCount() + { + return isset($this->entity_count); + } + + public function clearEntityCount() + { + unset($this->entity_count); + } + + /** + * Output only. Entity count in the watchlist. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $var + * @return $this + */ + public function setEntityCount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityCount::class); + $this->entity_count = $var; + + return $this; + } + + /** + * Output only. Time the watchlist was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time the watchlist was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time the watchlist was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time the watchlist was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. User preferences for watchlist configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\WatchlistUserPreferences|null + */ + public function getWatchlistUserPreferences() + { + return $this->watchlist_user_preferences; + } + + public function hasWatchlistUserPreferences() + { + return isset($this->watchlist_user_preferences); + } + + public function clearWatchlistUserPreferences() + { + unset($this->watchlist_user_preferences); + } + + /** + * Optional. User preferences for watchlist configuration. + * + * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $var + * @return $this + */ + public function setWatchlistUserPreferences($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\WatchlistUserPreferences::class); + $this->watchlist_user_preferences = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php new file mode 100644 index 000000000000..6ed43d57e34a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php @@ -0,0 +1,101 @@ +google.cloud.chronicle.v1.Watchlist.EntityCount + */ +class EntityCount extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Count of user type entities in the watchlist. + * + * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $user = 0; + /** + * Output only. Count of asset type entities in the watchlist. + * + * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $asset = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $user + * Output only. Count of user type entities in the watchlist. + * @type int $asset + * Output only. Count of asset type entities in the watchlist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Count of user type entities in the watchlist. + * + * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getUser() + { + return $this->user; + } + + /** + * Output only. Count of user type entities in the watchlist. + * + * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkInt32($var); + $this->user = $var; + + return $this; + } + + /** + * Output only. Count of asset type entities in the watchlist. + * + * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAsset() + { + return $this->asset; + } + + /** + * Output only. Count of asset type entities in the watchlist. + * + * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkInt32($var); + $this->asset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php new file mode 100644 index 000000000000..1d821fb12d88 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php @@ -0,0 +1,75 @@ +google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism + */ +class EntityPopulationMechanism extends \Google\Protobuf\Internal\Message +{ + protected $mechanism; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $manual + * Optional. Entities are added manually. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Entities are added manually. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual|null + */ + public function getManual() + { + return $this->readOneof(1); + } + + public function hasManual() + { + return $this->hasOneof(1); + } + + /** + * Optional. Entities are added manually. + * + * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $var + * @return $this + */ + public function setManual($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getMechanism() + { + return $this->whichOneof("mechanism"); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php new file mode 100644 index 000000000000..610033c25683 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php @@ -0,0 +1,33 @@ +google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual + */ +class Manual extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php new file mode 100644 index 000000000000..1e28b313f6fe --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php @@ -0,0 +1,67 @@ +google.cloud.chronicle.v1.WatchlistUserPreferences + */ +class WatchlistUserPreferences extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether the watchlist is pinned on the dashboard. + * + * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $pinned = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $pinned + * Optional. Whether the watchlist is pinned on the dashboard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether the watchlist is pinned on the dashboard. + * + * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getPinned() + { + return $this->pinned; + } + + /** + * Optional. Whether the watchlist is pinned on the dashboard. + * + * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setPinned($var) + { + GPBUtil::checkBool($var); + $this->pinned = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/get_big_query_export.php b/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/get_big_query_export.php new file mode 100644 index 000000000000..449de6c7716f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/get_big_query_export.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var BigQueryExport $response */ + $response = $bigQueryExportServiceClient->getBigQueryExport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigQueryExportServiceClient::bigQueryExportName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + get_big_query_export_sample($formattedName); +} +// [END chronicle_v1_generated_BigQueryExportService_GetBigQueryExport_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php b/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php new file mode 100644 index 000000000000..c068f46e5ac9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var BigQueryExport $response */ + $response = $bigQueryExportServiceClient->provisionBigQueryExport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigQueryExportServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + provision_big_query_export_sample($formattedParent); +} +// [END chronicle_v1_generated_BigQueryExportService_ProvisionBigQueryExport_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/update_big_query_export.php b/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/update_big_query_export.php new file mode 100644 index 000000000000..96ce9e19f5c4 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/update_big_query_export.php @@ -0,0 +1,59 @@ +setBigQueryExport($bigQueryExport); + + // Call the API and handle any network failures. + try { + /** @var BigQueryExport $response */ + $response = $bigQueryExportServiceClient->updateBigQueryExport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chronicle_v1_generated_BigQueryExportService_UpdateBigQueryExport_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php new file mode 100644 index 000000000000..66f67ce6e53e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php @@ -0,0 +1,91 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchGetDashboardChartsResponse $response */ + $response = $dashboardChartServiceClient->batchGetDashboardCharts($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DashboardChartServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $formattedNamesElement = DashboardChartServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + batch_get_dashboard_charts_sample($formattedParent, $formattedNamesElement); +} +// [END chronicle_v1_generated_DashboardChartService_BatchGetDashboardCharts_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php new file mode 100644 index 000000000000..423aa931ff5a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DashboardChart $response */ + $response = $dashboardChartServiceClient->getDashboardChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DashboardChartServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + get_dashboard_chart_sample($formattedName); +} +// [END chronicle_v1_generated_DashboardChartService_GetDashboardChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php new file mode 100644 index 000000000000..43ee3d3b78f1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php @@ -0,0 +1,85 @@ +setQuery($queryQuery) + ->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + + // Call the API and handle any network failures. + try { + /** @var ExecuteDashboardQueryResponse $response */ + $response = $dashboardQueryServiceClient->executeDashboardQuery($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DashboardQueryServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $queryQuery = '[QUERY]'; + + execute_dashboard_query_sample($formattedParent, $queryQuery); +} +// [END chronicle_v1_generated_DashboardQueryService_ExecuteDashboardQuery_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php new file mode 100644 index 000000000000..0065d62b4eca --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DashboardQuery $response */ + $response = $dashboardQueryServiceClient->getDashboardQuery($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DashboardQueryServiceClient::dashboardQueryName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[QUERY]' + ); + + get_dashboard_query_sample($formattedName); +} +// [END chronicle_v1_generated_DashboardQueryService_GetDashboardQuery_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php new file mode 100644 index 000000000000..0623874acf9e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php @@ -0,0 +1,89 @@ +setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + + // Call the API and handle any network failures. + try { + /** @var DataAccessLabel $response */ + $response = $dataAccessControlServiceClient->createDataAccessLabel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $dataAccessLabelId = '[DATA_ACCESS_LABEL_ID]'; + + create_data_access_label_sample($formattedParent, $dataAccessLabelId); +} +// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php new file mode 100644 index 000000000000..5219ceb6ae38 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php @@ -0,0 +1,105 @@ +setName($formattedDataAccessScopeName); + $request = (new CreateDataAccessScopeRequest()) + ->setParent($formattedParent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + + // Call the API and handle any network failures. + try { + /** @var DataAccessScope $response */ + $response = $dataAccessControlServiceClient->createDataAccessScope($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + $dataAccessScopeId = '[DATA_ACCESS_SCOPE_ID]'; + + create_data_access_scope_sample( + $formattedParent, + $formattedDataAccessScopeName, + $dataAccessScopeId + ); +} +// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php new file mode 100644 index 000000000000..3c885880892f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataAccessControlServiceClient->deleteDataAccessLabel($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessLabelName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_LABEL]' + ); + + delete_data_access_label_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php new file mode 100644 index 000000000000..41f166b0bf41 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataAccessControlServiceClient->deleteDataAccessScope($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + + delete_data_access_scope_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php new file mode 100644 index 000000000000..7b8c83109598 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAccessLabel $response */ + $response = $dataAccessControlServiceClient->getDataAccessLabel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessLabelName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_LABEL]' + ); + + get_data_access_label_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php new file mode 100644 index 000000000000..e434c9be6db8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAccessScope $response */ + $response = $dataAccessControlServiceClient->getDataAccessScope($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + + get_data_access_scope_sample($formattedName); +} +// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php new file mode 100644 index 000000000000..f831204ae17d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAccessControlServiceClient->listDataAccessLabels($request); + + /** @var DataAccessLabel $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_data_access_labels_sample($formattedParent); +} +// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessLabels_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php new file mode 100644 index 000000000000..ac4cfa39ba9e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataAccessControlServiceClient->listDataAccessScopes($request); + + /** @var DataAccessScope $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataAccessControlServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_data_access_scopes_sample($formattedParent); +} +// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessScopes_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php new file mode 100644 index 000000000000..e949373ca7f3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php @@ -0,0 +1,59 @@ +setDataAccessLabel($dataAccessLabel); + + // Call the API and handle any network failures. + try { + /** @var DataAccessLabel $response */ + $response = $dataAccessControlServiceClient->updateDataAccessLabel($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php new file mode 100644 index 000000000000..33d0d8a4424b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php @@ -0,0 +1,79 @@ +setName($formattedDataAccessScopeName); + $request = (new UpdateDataAccessScopeRequest()) + ->setDataAccessScope($dataAccessScope); + + // Call the API and handle any network failures. + try { + /** @var DataAccessScope $response */ + $response = $dataAccessControlServiceClient->updateDataAccessScope($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_ACCESS_SCOPE]' + ); + + update_data_access_scope_sample($formattedDataAccessScopeName); +} +// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php new file mode 100644 index 000000000000..1f64d05306a3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php @@ -0,0 +1,108 @@ +setValues($requestsDataTableRowValues); + $createDataTableRowRequest = (new CreateDataTableRowRequest()) + ->setParent($formattedRequestsParent) + ->setDataTableRow($requestsDataTableRow); + $requests = [$createDataTableRowRequest,]; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkCreateDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkCreateDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $formattedRequestsParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $requestsDataTableRowValuesElement = '[VALUES]'; + + bulk_create_data_table_rows_sample( + $formattedParent, + $formattedRequestsParent, + $requestsDataTableRowValuesElement + ); +} +// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php new file mode 100644 index 000000000000..5dff1680a8d2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php @@ -0,0 +1,96 @@ +setName($formattedRequestsName); + $requests = [$getDataTableRowRequest,]; + $request = (new BulkGetDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkGetDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkGetDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $formattedRequestsName = DataTableServiceClient::dataTableRowName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]', + '[DATA_TABLE_ROW]' + ); + + bulk_get_data_table_rows_sample($formattedParent, $formattedRequestsName); +} +// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php new file mode 100644 index 000000000000..719f12db7676 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php @@ -0,0 +1,108 @@ +setValues($requestsDataTableRowValues); + $createDataTableRowRequest = (new CreateDataTableRowRequest()) + ->setParent($formattedRequestsParent) + ->setDataTableRow($requestsDataTableRow); + $requests = [$createDataTableRowRequest,]; + $request = (new BulkReplaceDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkReplaceDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkReplaceDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $formattedRequestsParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $requestsDataTableRowValuesElement = '[VALUES]'; + + bulk_replace_data_table_rows_sample( + $formattedParent, + $formattedRequestsParent, + $requestsDataTableRowValuesElement + ); +} +// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php new file mode 100644 index 000000000000..c5b35718149f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php @@ -0,0 +1,92 @@ +setValues($requestsDataTableRowValues); + $updateDataTableRowRequest = (new UpdateDataTableRowRequest()) + ->setDataTableRow($requestsDataTableRow); + $requests = [$updateDataTableRowRequest,]; + $request = (new BulkUpdateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BulkUpdateDataTableRowsResponse $response */ + $response = $dataTableServiceClient->bulkUpdateDataTableRows($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $requestsDataTableRowValuesElement = '[VALUES]'; + + bulk_update_data_table_rows_sample($formattedParent, $requestsDataTableRowValuesElement); +} +// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php new file mode 100644 index 000000000000..bca1084349da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php @@ -0,0 +1,87 @@ +setDescription($dataTableDescription); + $request = (new CreateDataTableRequest()) + ->setParent($formattedParent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + + // Call the API and handle any network failures. + try { + /** @var DataTable $response */ + $response = $dataTableServiceClient->createDataTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataTableDescription = '[DESCRIPTION]'; + $dataTableId = '[DATA_TABLE_ID]'; + + create_data_table_sample($formattedParent, $dataTableDescription, $dataTableId); +} +// [END chronicle_v1_generated_DataTableService_CreateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php new file mode 100644 index 000000000000..4c2f774cc155 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php @@ -0,0 +1,87 @@ +setValues($dataTableRowValues); + $request = (new CreateDataTableRowRequest()) + ->setParent($formattedParent) + ->setDataTableRow($dataTableRow); + + // Call the API and handle any network failures. + try { + /** @var DataTableRow $response */ + $response = $dataTableServiceClient->createDataTableRow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + $dataTableRowValuesElement = '[VALUES]'; + + create_data_table_row_sample($formattedParent, $dataTableRowValuesElement); +} +// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php new file mode 100644 index 000000000000..28c77cdb6435 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataTableServiceClient->deleteDataTable($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + + delete_data_table_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php new file mode 100644 index 000000000000..82188421d34a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataTableServiceClient->deleteDataTableRow($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableRowName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]', + '[DATA_TABLE_ROW]' + ); + + delete_data_table_row_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php new file mode 100644 index 000000000000..f8c92cf8d5be --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataTable $response */ + $response = $dataTableServiceClient->getDataTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + + get_data_table_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_GetDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php new file mode 100644 index 000000000000..354a4397517f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataTableOperationErrors $response */ + $response = $dataTableServiceClient->getDataTableOperationErrors($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableOperationErrorsName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE_OPERATION_ERRORS]' + ); + + get_data_table_operation_errors_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php new file mode 100644 index 000000000000..90790e1fd6b3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataTableRow $response */ + $response = $dataTableServiceClient->getDataTableRow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataTableServiceClient::dataTableRowName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]', + '[DATA_TABLE_ROW]' + ); + + get_data_table_row_sample($formattedName); +} +// [END chronicle_v1_generated_DataTableService_GetDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php new file mode 100644 index 000000000000..d38cc698f7fd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataTableServiceClient->listDataTableRows($request); + + /** @var DataTableRow $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::dataTableName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DATA_TABLE]' + ); + + list_data_table_rows_sample($formattedParent); +} +// [END chronicle_v1_generated_DataTableService_ListDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php new file mode 100644 index 000000000000..87d6c459c2f2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataTableServiceClient->listDataTables($request); + + /** @var DataTable $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + list_data_tables_sample($formattedParent); +} +// [END chronicle_v1_generated_DataTableService_ListDataTables_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php new file mode 100644 index 000000000000..56d2a5d3e41c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php @@ -0,0 +1,72 @@ +setDescription($dataTableDescription); + $request = (new UpdateDataTableRequest()) + ->setDataTable($dataTable); + + // Call the API and handle any network failures. + try { + /** @var DataTable $response */ + $response = $dataTableServiceClient->updateDataTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $dataTableDescription = '[DESCRIPTION]'; + + update_data_table_sample($dataTableDescription); +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php new file mode 100644 index 000000000000..a3b430d80898 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php @@ -0,0 +1,74 @@ +setValues($dataTableRowValues); + $request = (new UpdateDataTableRowRequest()) + ->setDataTableRow($dataTableRow); + + // Call the API and handle any network failures. + try { + /** @var DataTableRow $response */ + $response = $dataTableServiceClient->updateDataTableRow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $dataTableRowValuesElement = '[VALUES]'; + + update_data_table_row_sample($dataTableRowValuesElement); +} +// [END chronicle_v1_generated_DataTableService_UpdateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php new file mode 100644 index 000000000000..fc91d0f75173 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php @@ -0,0 +1,83 @@ +setDisplayName($watchlistDisplayName) + ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + + // Call the API and handle any network failures. + try { + /** @var Watchlist $response */ + $response = $entityServiceClient->createWatchlist($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlistDisplayName = '[DISPLAY_NAME]'; + + create_watchlist_sample($formattedParent, $watchlistDisplayName); +} +// [END chronicle_v1_generated_EntityService_CreateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php new file mode 100644 index 000000000000..a4f794c71488 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $entityServiceClient->deleteWatchlist($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = EntityServiceClient::watchlistName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[WATCHLIST]' + ); + + delete_watchlist_sample($formattedName); +} +// [END chronicle_v1_generated_EntityService_DeleteWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php new file mode 100644 index 000000000000..f2c0679734af --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Watchlist $response */ + $response = $entityServiceClient->getWatchlist($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = EntityServiceClient::watchlistName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[WATCHLIST]' + ); + + get_watchlist_sample($formattedName); +} +// [END chronicle_v1_generated_EntityService_GetWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php new file mode 100644 index 000000000000..b3db33e4e1d2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $entityServiceClient->listWatchlists($request); + + /** @var Watchlist $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + list_watchlists_sample($formattedParent); +} +// [END chronicle_v1_generated_EntityService_ListWatchlists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php new file mode 100644 index 000000000000..193fe9ee02c9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php @@ -0,0 +1,77 @@ +setDisplayName($watchlistDisplayName) + ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new UpdateWatchlistRequest()) + ->setWatchlist($watchlist); + + // Call the API and handle any network failures. + try { + /** @var Watchlist $response */ + $response = $entityServiceClient->updateWatchlist($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $watchlistDisplayName = '[DISPLAY_NAME]'; + + update_watchlist_sample($watchlistDisplayName); +} +// [END chronicle_v1_generated_EntityService_UpdateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php new file mode 100644 index 000000000000..fe4828f66e9f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FeaturedContentNativeDashboard $response */ + $response = $featuredContentNativeDashboardServiceClient->getFeaturedContentNativeDashboard( + $request + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + + get_featured_content_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_GetFeaturedContentNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php new file mode 100644 index 000000000000..36d013db73da --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var InstallFeaturedContentNativeDashboardResponse $response */ + $response = $featuredContentNativeDashboardServiceClient->installFeaturedContentNativeDashboard( + $request + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[FEATURED_CONTENT_NATIVE_DASHBOARD]' + ); + + install_featured_content_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_InstallFeaturedContentNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php new file mode 100644 index 000000000000..411b56b48a14 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php @@ -0,0 +1,84 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $featuredContentNativeDashboardServiceClient->listFeaturedContentNativeDashboards( + $request + ); + + /** @var FeaturedContentNativeDashboard $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = FeaturedContentNativeDashboardServiceClient::contentHubName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_featured_content_native_dashboards_sample($formattedParent); +} +// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_ListFeaturedContentNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php b/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php new file mode 100644 index 000000000000..3f58906ea662 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Instance $response */ + $response = $instanceServiceClient->getInstance($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = InstanceServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + get_instance_sample($formattedName); +} +// [END chronicle_v1_generated_InstanceService_GetInstance_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php new file mode 100644 index 000000000000..72e37f68b09f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php @@ -0,0 +1,90 @@ +setDisplayName($dashboardChartDisplayName) + ->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + + // Call the API and handle any network failures. + try { + /** @var AddChartResponse $response */ + $response = $nativeDashboardServiceClient->addChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $dashboardChartDisplayName = '[DISPLAY_NAME]'; + + add_chart_sample($formattedName, $dashboardChartDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_AddChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php new file mode 100644 index 000000000000..4f21c73ab361 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php @@ -0,0 +1,83 @@ +setDisplayName($nativeDashboardDisplayName); + $request = (new CreateNativeDashboardRequest()) + ->setParent($formattedParent) + ->setNativeDashboard($nativeDashboard); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->createNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $nativeDashboardDisplayName = '[DISPLAY_NAME]'; + + create_native_dashboard_sample($formattedParent, $nativeDashboardDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_CreateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php new file mode 100644 index 000000000000..68ec8e4fb935 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $nativeDashboardServiceClient->deleteNativeDashboard($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + + delete_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_NativeDashboardService_DeleteNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php new file mode 100644 index 000000000000..4e391f360625 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php @@ -0,0 +1,87 @@ +setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + + // Call the API and handle any network failures. + try { + /** @var DuplicateChartResponse $response */ + $response = $nativeDashboardServiceClient->duplicateChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $formattedDashboardChart = NativeDashboardServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + duplicate_chart_sample($formattedName, $formattedDashboardChart); +} +// [END chronicle_v1_generated_NativeDashboardService_DuplicateChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php new file mode 100644 index 000000000000..33cfc432d361 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php @@ -0,0 +1,85 @@ +setDisplayName($nativeDashboardDisplayName); + $request = (new DuplicateNativeDashboardRequest()) + ->setName($formattedName) + ->setNativeDashboard($nativeDashboard); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->duplicateNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $nativeDashboardDisplayName = '[DISPLAY_NAME]'; + + duplicate_native_dashboard_sample($formattedName, $nativeDashboardDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_DuplicateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php new file mode 100644 index 000000000000..ee90db305e9c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php @@ -0,0 +1,81 @@ +setName($formattedName) + ->setEditMask($editMask); + + // Call the API and handle any network failures. + try { + /** @var EditChartResponse $response */ + $response = $nativeDashboardServiceClient->editChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + + edit_chart_sample($formattedName); +} +// [END chronicle_v1_generated_NativeDashboardService_EditChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php new file mode 100644 index 000000000000..bf7a4303ac1a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php @@ -0,0 +1,80 @@ +setParent($formattedParent) + ->setNames($names); + + // Call the API and handle any network failures. + try { + /** @var ExportNativeDashboardsResponse $response */ + $response = $nativeDashboardServiceClient->exportNativeDashboards($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $namesElement = '[NAMES]'; + + export_native_dashboards_sample($formattedParent, $namesElement); +} +// [END chronicle_v1_generated_NativeDashboardService_ExportNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php new file mode 100644 index 000000000000..ffa530d192c3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->getNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + + get_native_dashboard_sample($formattedName); +} +// [END chronicle_v1_generated_NativeDashboardService_GetNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php new file mode 100644 index 000000000000..e15ab48e5b85 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php @@ -0,0 +1,82 @@ +setDashboards($sourceDashboards); + $request = (new ImportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setSource($source); + + // Call the API and handle any network failures. + try { + /** @var ImportNativeDashboardsResponse $response */ + $response = $nativeDashboardServiceClient->importNativeDashboards($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + import_native_dashboards_sample($formattedParent); +} +// [END chronicle_v1_generated_NativeDashboardService_ImportNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php new file mode 100644 index 000000000000..349d07215475 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $nativeDashboardServiceClient->listNativeDashboards($request); + + /** @var NativeDashboard $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = NativeDashboardServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_native_dashboards_sample($formattedParent); +} +// [END chronicle_v1_generated_NativeDashboardService_ListNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php new file mode 100644 index 000000000000..7c1630028140 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php @@ -0,0 +1,87 @@ +setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->removeChart($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = NativeDashboardServiceClient::nativeDashboardName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[DASHBOARD]' + ); + $formattedDashboardChart = NativeDashboardServiceClient::dashboardChartName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[CHART]' + ); + + remove_chart_sample($formattedName, $formattedDashboardChart); +} +// [END chronicle_v1_generated_NativeDashboardService_RemoveChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php new file mode 100644 index 000000000000..04f2a4465e8d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php @@ -0,0 +1,75 @@ +setDisplayName($nativeDashboardDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateNativeDashboardRequest()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var NativeDashboard $response */ + $response = $nativeDashboardServiceClient->updateNativeDashboard($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $nativeDashboardDisplayName = '[DISPLAY_NAME]'; + + update_native_dashboard_sample($nativeDashboardDisplayName); +} +// [END chronicle_v1_generated_NativeDashboardService_UpdateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php new file mode 100644 index 000000000000..064b32ca29d0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php @@ -0,0 +1,111 @@ +setValue($referenceListEntriesValue); + $referenceListEntries = [$referenceListEntry,]; + $referenceList = (new ReferenceList()) + ->setDescription($referenceListDescription) + ->setEntries($referenceListEntries) + ->setSyntaxType($referenceListSyntaxType); + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + + // Call the API and handle any network failures. + try { + /** @var ReferenceList $response */ + $response = $referenceListServiceClient->createReferenceList($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReferenceListServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + $referenceListDescription = '[DESCRIPTION]'; + $referenceListEntriesValue = '[VALUE]'; + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceListId = '[REFERENCE_LIST_ID]'; + + create_reference_list_sample( + $formattedParent, + $referenceListDescription, + $referenceListEntriesValue, + $referenceListSyntaxType, + $referenceListId + ); +} +// [END chronicle_v1_generated_ReferenceListService_CreateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php new file mode 100644 index 000000000000..5e6d4986fbfb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ReferenceList $response */ + $response = $referenceListServiceClient->getReferenceList($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ReferenceListServiceClient::referenceListName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[REFERENCE_LIST]' + ); + + get_reference_list_sample($formattedName); +} +// [END chronicle_v1_generated_ReferenceListService_GetReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php new file mode 100644 index 000000000000..5fef5d03cbeb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $referenceListServiceClient->listReferenceLists($request); + + /** @var ReferenceList $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReferenceListServiceClient::instanceName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]' + ); + + list_reference_lists_sample($formattedParent); +} +// [END chronicle_v1_generated_ReferenceListService_ListReferenceLists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php new file mode 100644 index 000000000000..2ea81ccc24e2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php @@ -0,0 +1,90 @@ +setValue($referenceListEntriesValue); + $referenceListEntries = [$referenceListEntry,]; + $referenceList = (new ReferenceList()) + ->setDescription($referenceListDescription) + ->setEntries($referenceListEntries) + ->setSyntaxType($referenceListSyntaxType); + $request = (new UpdateReferenceListRequest()) + ->setReferenceList($referenceList); + + // Call the API and handle any network failures. + try { + /** @var ReferenceList $response */ + $response = $referenceListServiceClient->updateReferenceList($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $referenceListDescription = '[DESCRIPTION]'; + $referenceListEntriesValue = '[VALUE]'; + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + + update_reference_list_sample( + $referenceListDescription, + $referenceListEntriesValue, + $referenceListSyntaxType + ); +} +// [END chronicle_v1_generated_ReferenceListService_UpdateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php new file mode 100644 index 000000000000..72fe02a04c79 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php @@ -0,0 +1,90 @@ +setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $ruleServiceClient->createRetrohunt($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Retrohunt $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + create_retrohunt_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_CreateRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php new file mode 100644 index 000000000000..4e49df99d1e9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setRule($rule); + + // Call the API and handle any network failures. + try { + /** @var Rule $response */ + $response = $ruleServiceClient->createRule($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + create_rule_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_CreateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php new file mode 100644 index 000000000000..229fd626bf85 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $ruleServiceClient->deleteRule($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + delete_rule_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_DeleteRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php new file mode 100644 index 000000000000..9a17dfe2f0fc --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Retrohunt $response */ + $response = $ruleServiceClient->getRetrohunt($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::retrohuntName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[RULE]', + '[RETROHUNT]' + ); + + get_retrohunt_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_GetRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php new file mode 100644 index 000000000000..9b7b735b3cbb --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Rule $response */ + $response = $ruleServiceClient->getRule($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + get_rule_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_GetRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php new file mode 100644 index 000000000000..16ac2aee8b32 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var RuleDeployment $response */ + $response = $ruleServiceClient->getRuleDeployment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleDeploymentName( + '[PROJECT]', + '[LOCATION]', + '[INSTANCE]', + '[RULE]' + ); + + get_rule_deployment_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_GetRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php new file mode 100644 index 000000000000..c20092aee588 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRetrohunts($request); + + /** @var Retrohunt $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + list_retrohunts_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_ListRetrohunts_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php new file mode 100644 index 000000000000..0a63256b173c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRuleDeployments($request); + + /** @var RuleDeployment $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + list_rule_deployments_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_ListRuleDeployments_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php new file mode 100644 index 000000000000..44ffc527c875 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRuleRevisions($request); + + /** @var Rule $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + + list_rule_revisions_sample($formattedName); +} +// [END chronicle_v1_generated_RuleService_ListRuleRevisions_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php new file mode 100644 index 000000000000..aa9cb76ebdd3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $ruleServiceClient->listRules($request); + + /** @var Rule $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + + list_rules_sample($formattedParent); +} +// [END chronicle_v1_generated_RuleService_ListRules_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php new file mode 100644 index 000000000000..5462edfd5766 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php @@ -0,0 +1,59 @@ +setRule($rule); + + // Call the API and handle any network failures. + try { + /** @var Rule $response */ + $response = $ruleServiceClient->updateRule($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chronicle_v1_generated_RuleService_UpdateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php new file mode 100644 index 000000000000..8d9d5600aec3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php @@ -0,0 +1,83 @@ +setName($ruleDeploymentName); + $updateMask = new FieldMask(); + $request = (new UpdateRuleDeploymentRequest()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var RuleDeployment $response */ + $response = $ruleServiceClient->updateRuleDeployment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $ruleDeploymentName = '[NAME]'; + + update_rule_deployment_sample($ruleDeploymentName); +} +// [END chronicle_v1_generated_RuleService_UpdateRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/BigQueryExportServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/BigQueryExportServiceClient.php new file mode 100644 index 000000000000..e1ef360b650d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/BigQueryExportServiceClient.php @@ -0,0 +1,338 @@ + getBigQueryExportAsync(GetBigQueryExportRequest $request, array $optionalArgs = []) + * @method PromiseInterface provisionBigQueryExportAsync(ProvisionBigQueryExportRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateBigQueryExportAsync(UpdateBigQueryExportRequest $request, array $optionalArgs = []) + */ +final class BigQueryExportServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.BigQueryExportService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/big_query_export_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/big_query_export_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/big_query_export_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/big_query_export_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * big_query_export resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted big_query_export resource. + */ + public static function bigQueryExportName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('bigQueryExport')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - bigQueryExport: projects/{project}/locations/{location}/instances/{instance}/bigQueryExport + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\BigQueryExportServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BigQueryExportServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Get the BigQuery export configuration for a Chronicle instance. + * + * The async variant is + * {@see BigQueryExportServiceClient::getBigQueryExportAsync()} . + * + * @example samples/V1/BigQueryExportServiceClient/get_big_query_export.php + * + * @param GetBigQueryExportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BigQueryExport + * + * @throws ApiException Thrown if the API call fails. + */ + public function getBigQueryExport(GetBigQueryExportRequest $request, array $callOptions = []): BigQueryExport + { + return $this->startApiCall('GetBigQueryExport', $request, $callOptions)->wait(); + } + + /** + * Provision the BigQuery export for a Chronicle instance. This will create + * {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets + * and set default export settings for each data source. + * + * The async variant is + * {@see BigQueryExportServiceClient::provisionBigQueryExportAsync()} . + * + * @example samples/V1/BigQueryExportServiceClient/provision_big_query_export.php + * + * @param ProvisionBigQueryExportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BigQueryExport + * + * @throws ApiException Thrown if the API call fails. + */ + public function provisionBigQueryExport(ProvisionBigQueryExportRequest $request, array $callOptions = []): BigQueryExport + { + return $this->startApiCall('ProvisionBigQueryExport', $request, $callOptions)->wait(); + } + + /** + * Update the BigQuery export configuration for a Chronicle instance. + * + * The async variant is + * {@see BigQueryExportServiceClient::updateBigQueryExportAsync()} . + * + * @example samples/V1/BigQueryExportServiceClient/update_big_query_export.php + * + * @param UpdateBigQueryExportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BigQueryExport + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateBigQueryExport(UpdateBigQueryExportRequest $request, array $callOptions = []): BigQueryExport + { + return $this->startApiCall('UpdateBigQueryExport', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php new file mode 100644 index 000000000000..e705b61f0ad7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php @@ -0,0 +1,310 @@ + batchGetDashboardChartsAsync(BatchGetDashboardChartsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDashboardChartAsync(GetDashboardChartRequest $request, array $optionalArgs = []) + */ +final class DashboardChartServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DashboardChartService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dashboard_chart_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DashboardChartServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DashboardChartServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Get dashboard charts in batches. + * + * The async variant is + * {@see DashboardChartServiceClient::batchGetDashboardChartsAsync()} . + * + * @example samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php + * + * @param BatchGetDashboardChartsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchGetDashboardChartsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchGetDashboardCharts(BatchGetDashboardChartsRequest $request, array $callOptions = []): BatchGetDashboardChartsResponse + { + return $this->startApiCall('BatchGetDashboardCharts', $request, $callOptions)->wait(); + } + + /** + * Get a dashboard chart. + * + * The async variant is + * {@see DashboardChartServiceClient::getDashboardChartAsync()} . + * + * @example samples/V1/DashboardChartServiceClient/get_dashboard_chart.php + * + * @param GetDashboardChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DashboardChart + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDashboardChart(GetDashboardChartRequest $request, array $callOptions = []): DashboardChart + { + return $this->startApiCall('GetDashboardChart', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php new file mode 100644 index 000000000000..d3af52f0d47a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php @@ -0,0 +1,332 @@ + executeDashboardQueryAsync(ExecuteDashboardQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDashboardQueryAsync(GetDashboardQueryRequest $request, array $optionalArgs = []) + */ +final class DashboardQueryServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DashboardQueryService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dashboard_query_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dashboard_query_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dashboard_query_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dashboard_query_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_query resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $query + * + * @return string The formatted dashboard_query resource. + */ + public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string + { + return self::getPathTemplate('dashboardQuery')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'query' => $query, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DashboardQueryServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DashboardQueryServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Execute a query and return the data. + * + * The async variant is + * {@see DashboardQueryServiceClient::executeDashboardQueryAsync()} . + * + * @example samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php + * + * @param ExecuteDashboardQueryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ExecuteDashboardQueryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function executeDashboardQuery(ExecuteDashboardQueryRequest $request, array $callOptions = []): ExecuteDashboardQueryResponse + { + return $this->startApiCall('ExecuteDashboardQuery', $request, $callOptions)->wait(); + } + + /** + * Get a dashboard query. + * + * The async variant is + * {@see DashboardQueryServiceClient::getDashboardQueryAsync()} . + * + * @example samples/V1/DashboardQueryServiceClient/get_dashboard_query.php + * + * @param GetDashboardQueryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DashboardQuery + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDashboardQuery(GetDashboardQueryRequest $request, array $callOptions = []): DashboardQuery + { + return $this->startApiCall('GetDashboardQuery', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php new file mode 100644 index 000000000000..11a4d52eccf8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php @@ -0,0 +1,572 @@ + createDataAccessLabelAsync(CreateDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataAccessScopeAsync(CreateDataAccessScopeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAccessLabelAsync(DeleteDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAccessScopeAsync(DeleteDataAccessScopeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAccessLabelAsync(GetDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAccessScopeAsync(GetDataAccessScopeRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAccessLabelsAsync(ListDataAccessLabelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAccessScopesAsync(ListDataAccessScopesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAccessLabelAsync(UpdateDataAccessLabelRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAccessScopeAsync(UpdateDataAccessScopeRequest $request, array $optionalArgs = []) + */ +final class DataAccessControlServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataAccessControlService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/data_access_control_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_access_control_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_access_control_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_access_control_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_label resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessLabel + * + * @return string The formatted data_access_label resource. + */ + public static function dataAccessLabelName(string $project, string $location, string $instance, string $dataAccessLabel): string + { + return self::getPathTemplate('dataAccessLabel')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_label' => $dataAccessLabel, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_scope resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessScope + * + * @return string The formatted data_access_scope resource. + */ + public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string + { + return self::getPathTemplate('dataAccessScope')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_scope' => $dataAccessScope, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dataAccessLabel: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label} + * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DataAccessControlServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataAccessControlServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a data access label. + * Data access labels are applied to incoming event data and selected in data + * access scopes (another resource), and only users with scopes containing the + * label can see data with that label. Currently, the data access label + * resource only includes custom labels, which are labels that correspond + * to UDM queries over event data. + * + * The async variant is + * {@see DataAccessControlServiceClient::createDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/create_data_access_label.php + * + * @param CreateDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessLabel + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataAccessLabel(CreateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel + { + return $this->startApiCall('CreateDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Creates a data access scope. + * Data access scope is a combination of allowed and denied labels attached + * to a permission group. If a scope has allowed labels A and B and denied + * labels C and D, then the group of people attached to the scope + * will have permissions to see all events labeled with A or B (or both) and + * not labeled with either C or D. + * + * The async variant is + * {@see DataAccessControlServiceClient::createDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/create_data_access_scope.php + * + * @param CreateDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessScope + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataAccessScope(CreateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope + { + return $this->startApiCall('CreateDataAccessScope', $request, $callOptions)->wait(); + } + + /** + * Deletes a data access label. When a label is deleted, new + * data that enters in the system will not receive the label, but the label + * will not be removed from old data that still refers to it. + * + * The async variant is + * {@see DataAccessControlServiceClient::deleteDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/delete_data_access_label.php + * + * @param DeleteDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataAccessLabel(DeleteDataAccessLabelRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Deletes a data access scope. + * + * The async variant is + * {@see DataAccessControlServiceClient::deleteDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php + * + * @param DeleteDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataAccessScope(DeleteDataAccessScopeRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataAccessScope', $request, $callOptions)->wait(); + } + + /** + * Gets a data access label. + * + * The async variant is + * {@see DataAccessControlServiceClient::getDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/get_data_access_label.php + * + * @param GetDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessLabel + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataAccessLabel(GetDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel + { + return $this->startApiCall('GetDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Retrieves an existing data access scope. + * + * The async variant is + * {@see DataAccessControlServiceClient::getDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/get_data_access_scope.php + * + * @param GetDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessScope + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataAccessScope(GetDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope + { + return $this->startApiCall('GetDataAccessScope', $request, $callOptions)->wait(); + } + + /** + * Lists all data access labels for the customer. + * + * The async variant is + * {@see DataAccessControlServiceClient::listDataAccessLabelsAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/list_data_access_labels.php + * + * @param ListDataAccessLabelsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataAccessLabels(ListDataAccessLabelsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAccessLabels', $request, $callOptions); + } + + /** + * Lists all existing data access scopes for the customer. + * + * The async variant is + * {@see DataAccessControlServiceClient::listDataAccessScopesAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php + * + * @param ListDataAccessScopesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataAccessScopes(ListDataAccessScopesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAccessScopes', $request, $callOptions); + } + + /** + * Updates a data access label. + * + * The async variant is + * {@see DataAccessControlServiceClient::updateDataAccessLabelAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/update_data_access_label.php + * + * @param UpdateDataAccessLabelRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessLabel + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataAccessLabel(UpdateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel + { + return $this->startApiCall('UpdateDataAccessLabel', $request, $callOptions)->wait(); + } + + /** + * Updates a data access scope. + * + * The async variant is + * {@see DataAccessControlServiceClient::updateDataAccessScopeAsync()} . + * + * @example samples/V1/DataAccessControlServiceClient/update_data_access_scope.php + * + * @param UpdateDataAccessScopeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataAccessScope + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataAccessScope(UpdateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope + { + return $this->startApiCall('UpdateDataAccessScope', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php new file mode 100644 index 000000000000..3a2425a3b967 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php @@ -0,0 +1,747 @@ + bulkCreateDataTableRowsAsync(BulkCreateDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface bulkGetDataTableRowsAsync(BulkGetDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface bulkReplaceDataTableRowsAsync(BulkReplaceDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface bulkUpdateDataTableRowsAsync(BulkUpdateDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataTableAsync(CreateDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataTableRowAsync(CreateDataTableRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataTableAsync(DeleteDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataTableRowAsync(DeleteDataTableRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataTableAsync(GetDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataTableOperationErrorsAsync(GetDataTableOperationErrorsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataTableRowAsync(GetDataTableRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataTableRowsAsync(ListDataTableRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataTablesAsync(ListDataTablesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataTableAsync(UpdateDataTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataTableRowAsync(UpdateDataTableRowRequest $request, array $optionalArgs = []) + */ +final class DataTableServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataTableService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/data_table_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_table_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_table_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_table_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_scope resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessScope + * + * @return string The formatted data_access_scope resource. + */ + public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string + { + return self::getPathTemplate('dataAccessScope')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_scope' => $dataAccessScope, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_table + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataTable + * + * @return string The formatted data_table resource. + */ + public static function dataTableName(string $project, string $location, string $instance, string $dataTable): string + { + return self::getPathTemplate('dataTable')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_table' => $dataTable, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_table_operation_errors resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataTableOperationErrors + * + * @return string The formatted data_table_operation_errors resource. + */ + public static function dataTableOperationErrorsName(string $project, string $location, string $instance, string $dataTableOperationErrors): string + { + return self::getPathTemplate('dataTableOperationErrors')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_table_operation_errors' => $dataTableOperationErrors, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_table_row resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataTable + * @param string $dataTableRow + * + * @return string The formatted data_table_row resource. + */ + public static function dataTableRowName(string $project, string $location, string $instance, string $dataTable, string $dataTableRow): string + { + return self::getPathTemplate('dataTableRow')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_table' => $dataTable, + 'data_table_row' => $dataTableRow, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} + * - dataTable: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} + * - dataTableOperationErrors: projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} + * - dataTableRow: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\DataTableServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataTableServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Create data table rows in bulk. + * + * The async variant is + * {@see DataTableServiceClient::bulkCreateDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php + * + * @param BulkCreateDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkCreateDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkCreateDataTableRows(BulkCreateDataTableRowsRequest $request, array $callOptions = []): BulkCreateDataTableRowsResponse + { + return $this->startApiCall('BulkCreateDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Get data table rows in bulk. + * + * The async variant is {@see DataTableServiceClient::bulkGetDataTableRowsAsync()} + * . + * + * @example samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php + * + * @param BulkGetDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkGetDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkGetDataTableRows(BulkGetDataTableRowsRequest $request, array $callOptions = []): BulkGetDataTableRowsResponse + { + return $this->startApiCall('BulkGetDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Replace all existing data table rows with new data table rows. + * + * The async variant is + * {@see DataTableServiceClient::bulkReplaceDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php + * + * @param BulkReplaceDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkReplaceDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest $request, array $callOptions = []): BulkReplaceDataTableRowsResponse + { + return $this->startApiCall('BulkReplaceDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Update data table rows in bulk. + * + * The async variant is + * {@see DataTableServiceClient::bulkUpdateDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php + * + * @param BulkUpdateDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BulkUpdateDataTableRowsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function bulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest $request, array $callOptions = []): BulkUpdateDataTableRowsResponse + { + return $this->startApiCall('BulkUpdateDataTableRows', $request, $callOptions)->wait(); + } + + /** + * Create a new data table. + * + * The async variant is {@see DataTableServiceClient::createDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/create_data_table.php + * + * @param CreateDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTable + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataTable(CreateDataTableRequest $request, array $callOptions = []): DataTable + { + return $this->startApiCall('CreateDataTable', $request, $callOptions)->wait(); + } + + /** + * Create a new data table row. + * + * The async variant is {@see DataTableServiceClient::createDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/create_data_table_row.php + * + * @param CreateDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableRow + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDataTableRow(CreateDataTableRowRequest $request, array $callOptions = []): DataTableRow + { + return $this->startApiCall('CreateDataTableRow', $request, $callOptions)->wait(); + } + + /** + * Delete data table. + * + * The async variant is {@see DataTableServiceClient::deleteDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/delete_data_table.php + * + * @param DeleteDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataTable(DeleteDataTableRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataTable', $request, $callOptions)->wait(); + } + + /** + * Delete data table row. + * + * The async variant is {@see DataTableServiceClient::deleteDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/delete_data_table_row.php + * + * @param DeleteDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDataTableRow(DeleteDataTableRowRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataTableRow', $request, $callOptions)->wait(); + } + + /** + * Get data table info. + * + * The async variant is {@see DataTableServiceClient::getDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/get_data_table.php + * + * @param GetDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTable + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataTable(GetDataTableRequest $request, array $callOptions = []): DataTable + { + return $this->startApiCall('GetDataTable', $request, $callOptions)->wait(); + } + + /** + * Get the error for a data table operation. + * + * The async variant is + * {@see DataTableServiceClient::getDataTableOperationErrorsAsync()} . + * + * @example samples/V1/DataTableServiceClient/get_data_table_operation_errors.php + * + * @param GetDataTableOperationErrorsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableOperationErrors + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataTableOperationErrors(GetDataTableOperationErrorsRequest $request, array $callOptions = []): DataTableOperationErrors + { + return $this->startApiCall('GetDataTableOperationErrors', $request, $callOptions)->wait(); + } + + /** + * Get data table row + * + * The async variant is {@see DataTableServiceClient::getDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/get_data_table_row.php + * + * @param GetDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableRow + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataTableRow(GetDataTableRowRequest $request, array $callOptions = []): DataTableRow + { + return $this->startApiCall('GetDataTableRow', $request, $callOptions)->wait(); + } + + /** + * List data table rows. + * + * The async variant is {@see DataTableServiceClient::listDataTableRowsAsync()} . + * + * @example samples/V1/DataTableServiceClient/list_data_table_rows.php + * + * @param ListDataTableRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataTableRows(ListDataTableRowsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataTableRows', $request, $callOptions); + } + + /** + * List data tables. + * + * The async variant is {@see DataTableServiceClient::listDataTablesAsync()} . + * + * @example samples/V1/DataTableServiceClient/list_data_tables.php + * + * @param ListDataTablesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDataTables(ListDataTablesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataTables', $request, $callOptions); + } + + /** + * Update data table. + * + * The async variant is {@see DataTableServiceClient::updateDataTableAsync()} . + * + * @example samples/V1/DataTableServiceClient/update_data_table.php + * + * @param UpdateDataTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTable + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataTable(UpdateDataTableRequest $request, array $callOptions = []): DataTable + { + return $this->startApiCall('UpdateDataTable', $request, $callOptions)->wait(); + } + + /** + * Update data table row + * + * The async variant is {@see DataTableServiceClient::updateDataTableRowAsync()} . + * + * @example samples/V1/DataTableServiceClient/update_data_table_row.php + * + * @param UpdateDataTableRowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataTableRow + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDataTableRow(UpdateDataTableRowRequest $request, array $callOptions = []): DataTableRow + { + return $this->startApiCall('UpdateDataTableRow', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php new file mode 100644 index 000000000000..0e4473f59298 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php @@ -0,0 +1,389 @@ + createWatchlistAsync(CreateWatchlistRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWatchlistAsync(DeleteWatchlistRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWatchlistAsync(GetWatchlistRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWatchlistsAsync(ListWatchlistsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWatchlistAsync(UpdateWatchlistRequest $request, array $optionalArgs = []) + */ +final class EntityServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.EntityService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/entity_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/entity_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/entity_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/entity_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a watchlist + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $watchlist + * + * @return string The formatted watchlist resource. + */ + public static function watchlistName(string $project, string $location, string $instance, string $watchlist): string + { + return self::getPathTemplate('watchlist')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'watchlist' => $watchlist, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - watchlist: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\EntityServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new EntityServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a watchlist for the given instance. + * Note that there can be at most 200 watchlists per instance. + * + * The async variant is {@see EntityServiceClient::createWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/create_watchlist.php + * + * @param CreateWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Watchlist + * + * @throws ApiException Thrown if the API call fails. + */ + public function createWatchlist(CreateWatchlistRequest $request, array $callOptions = []): Watchlist + { + return $this->startApiCall('CreateWatchlist', $request, $callOptions)->wait(); + } + + /** + * Deletes the watchlist for the given instance. + * + * The async variant is {@see EntityServiceClient::deleteWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/delete_watchlist.php + * + * @param DeleteWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteWatchlist(DeleteWatchlistRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWatchlist', $request, $callOptions)->wait(); + } + + /** + * Gets watchlist details for the given watchlist ID. + * + * The async variant is {@see EntityServiceClient::getWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/get_watchlist.php + * + * @param GetWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Watchlist + * + * @throws ApiException Thrown if the API call fails. + */ + public function getWatchlist(GetWatchlistRequest $request, array $callOptions = []): Watchlist + { + return $this->startApiCall('GetWatchlist', $request, $callOptions)->wait(); + } + + /** + * Lists all watchlists for the given instance. + * + * The async variant is {@see EntityServiceClient::listWatchlistsAsync()} . + * + * @example samples/V1/EntityServiceClient/list_watchlists.php + * + * @param ListWatchlistsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listWatchlists(ListWatchlistsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWatchlists', $request, $callOptions); + } + + /** + * Updates the watchlist for the given instance. + * + * The async variant is {@see EntityServiceClient::updateWatchlistAsync()} . + * + * @example samples/V1/EntityServiceClient/update_watchlist.php + * + * @param UpdateWatchlistRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Watchlist + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateWatchlist(UpdateWatchlistRequest $request, array $callOptions = []): Watchlist + { + return $this->startApiCall('UpdateWatchlist', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php new file mode 100644 index 000000000000..ef15c0083d7e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php @@ -0,0 +1,431 @@ + getFeaturedContentNativeDashboardAsync(GetFeaturedContentNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface installFeaturedContentNativeDashboardAsync(InstallFeaturedContentNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFeaturedContentNativeDashboardsAsync(ListFeaturedContentNativeDashboardsRequest $request, array $optionalArgs = []) + */ +final class FeaturedContentNativeDashboardServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/featured_content_native_dashboard_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a content_hub + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted content_hub resource. + */ + public static function contentHubName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('contentHub')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_query resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $query + * + * @return string The formatted dashboard_query resource. + */ + public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string + { + return self::getPathTemplate('dashboardQuery')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'query' => $query, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * featured_content_native_dashboard resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $featuredContentNativeDashboard + * + * @return string The formatted featured_content_native_dashboard resource. + */ + public static function featuredContentNativeDashboardName(string $project, string $location, string $instance, string $featuredContentNativeDashboard): string + { + return self::getPathTemplate('featuredContentNativeDashboard')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'featured_content_native_dashboard' => $featuredContentNativeDashboard, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * native_dashboard resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dashboard + * + * @return string The formatted native_dashboard resource. + */ + public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string + { + return self::getPathTemplate('nativeDashboard')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'dashboard' => $dashboard, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - contentHub: projects/{project}/locations/{location}/instances/{instance}/contentHub + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * - featuredContentNativeDashboard: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - nativeDashboard: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboardServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new FeaturedContentNativeDashboardServiceClient(['credentials' => + * $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Get a native dashboard featured content. + * + * The async variant is + * {@see FeaturedContentNativeDashboardServiceClient::getFeaturedContentNativeDashboardAsync()} + * . + * + * @example samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php + * + * @param GetFeaturedContentNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FeaturedContentNativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFeaturedContentNativeDashboard(GetFeaturedContentNativeDashboardRequest $request, array $callOptions = []): FeaturedContentNativeDashboard + { + return $this->startApiCall('GetFeaturedContentNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Install a native dashboard featured content. + * + * The async variant is + * {@see FeaturedContentNativeDashboardServiceClient::installFeaturedContentNativeDashboardAsync()} + * . + * + * @example samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php + * + * @param InstallFeaturedContentNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InstallFeaturedContentNativeDashboardResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function installFeaturedContentNativeDashboard(InstallFeaturedContentNativeDashboardRequest $request, array $callOptions = []): InstallFeaturedContentNativeDashboardResponse + { + return $this->startApiCall('InstallFeaturedContentNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * List all native dashboards featured content. + * + * The async variant is + * {@see FeaturedContentNativeDashboardServiceClient::listFeaturedContentNativeDashboardsAsync()} + * . + * + * @example samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php + * + * @param ListFeaturedContentNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listFeaturedContentNativeDashboards(ListFeaturedContentNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFeaturedContentNativeDashboards', $request, $callOptions); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php new file mode 100644 index 000000000000..da3746e28c93 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php @@ -0,0 +1,255 @@ + getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) + */ +final class InstanceServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.InstanceService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/instance_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/instance_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/instance_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/instance_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - instance: projects/{project}/locations/{location}/instances/{instance} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\InstanceServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new InstanceServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Gets a Instance. + * + * The async variant is {@see InstanceServiceClient::getInstanceAsync()} . + * + * @example samples/V1/InstanceServiceClient/get_instance.php + * + * @param GetInstanceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Instance + * + * @throws ApiException Thrown if the API call fails. + */ + public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance + { + return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php new file mode 100644 index 000000000000..971464871d9a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php @@ -0,0 +1,644 @@ + addChartAsync(AddChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface createNativeDashboardAsync(CreateNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteNativeDashboardAsync(DeleteNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface duplicateChartAsync(DuplicateChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface duplicateNativeDashboardAsync(DuplicateNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface editChartAsync(EditChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportNativeDashboardsAsync(ExportNativeDashboardsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNativeDashboardAsync(GetNativeDashboardRequest $request, array $optionalArgs = []) + * @method PromiseInterface importNativeDashboardsAsync(ImportNativeDashboardsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNativeDashboardsAsync(ListNativeDashboardsRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeChartAsync(RemoveChartRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateNativeDashboardAsync(UpdateNativeDashboardRequest $request, array $optionalArgs = []) + */ +final class NativeDashboardServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.NativeDashboardService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chronicle', + 'https://www.googleapis.com/auth/chronicle.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/native_dashboard_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/native_dashboard_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/native_dashboard_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/native_dashboard_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_chart resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $chart + * + * @return string The formatted dashboard_chart resource. + */ + public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string + { + return self::getPathTemplate('dashboardChart')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'chart' => $chart, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dashboard_query resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $query + * + * @return string The formatted dashboard_query resource. + */ + public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string + { + return self::getPathTemplate('dashboardQuery')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'query' => $query, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * native_dashboard resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dashboard + * + * @return string The formatted native_dashboard resource. + */ + public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string + { + return self::getPathTemplate('nativeDashboard')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'dashboard' => $dashboard, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} + * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - nativeDashboard: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\NativeDashboardServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new NativeDashboardServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Add chart in a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::addChartAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/add_chart.php + * + * @param AddChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AddChartResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function addChart(AddChartRequest $request, array $callOptions = []): AddChartResponse + { + return $this->startApiCall('AddChart', $request, $callOptions)->wait(); + } + + /** + * Create a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::createNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/create_native_dashboard.php + * + * @param CreateNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function createNativeDashboard(CreateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('CreateNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Delete a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::deleteNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php + * + * @param DeleteNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteNativeDashboard(DeleteNativeDashboardRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Duplicate chart in a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::duplicateChartAsync()} + * . + * + * @example samples/V1/NativeDashboardServiceClient/duplicate_chart.php + * + * @param DuplicateChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DuplicateChartResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function duplicateChart(DuplicateChartRequest $request, array $callOptions = []): DuplicateChartResponse + { + return $this->startApiCall('DuplicateChart', $request, $callOptions)->wait(); + } + + /** + * Duplicate a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::duplicateNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php + * + * @param DuplicateNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function duplicateNativeDashboard(DuplicateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('DuplicateNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Edit chart in a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::editChartAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/edit_chart.php + * + * @param EditChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EditChartResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function editChart(EditChartRequest $request, array $callOptions = []): EditChartResponse + { + return $this->startApiCall('EditChart', $request, $callOptions)->wait(); + } + + /** + * Exports the dashboards. + * + * The async variant is + * {@see NativeDashboardServiceClient::exportNativeDashboardsAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/export_native_dashboards.php + * + * @param ExportNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ExportNativeDashboardsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function exportNativeDashboards(ExportNativeDashboardsRequest $request, array $callOptions = []): ExportNativeDashboardsResponse + { + return $this->startApiCall('ExportNativeDashboards', $request, $callOptions)->wait(); + } + + /** + * Get a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::getNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/get_native_dashboard.php + * + * @param GetNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function getNativeDashboard(GetNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('GetNativeDashboard', $request, $callOptions)->wait(); + } + + /** + * Imports the dashboards. + * + * The async variant is + * {@see NativeDashboardServiceClient::importNativeDashboardsAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/import_native_dashboards.php + * + * @param ImportNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ImportNativeDashboardsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function importNativeDashboards(ImportNativeDashboardsRequest $request, array $callOptions = []): ImportNativeDashboardsResponse + { + return $this->startApiCall('ImportNativeDashboards', $request, $callOptions)->wait(); + } + + /** + * List all dashboards. + * + * The async variant is + * {@see NativeDashboardServiceClient::listNativeDashboardsAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/list_native_dashboards.php + * + * @param ListNativeDashboardsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listNativeDashboards(ListNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListNativeDashboards', $request, $callOptions); + } + + /** + * Remove chart from a dashboard. + * + * The async variant is {@see NativeDashboardServiceClient::removeChartAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/remove_chart.php + * + * @param RemoveChartRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function removeChart(RemoveChartRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('RemoveChart', $request, $callOptions)->wait(); + } + + /** + * Update a dashboard. + * + * The async variant is + * {@see NativeDashboardServiceClient::updateNativeDashboardAsync()} . + * + * @example samples/V1/NativeDashboardServiceClient/update_native_dashboard.php + * + * @param UpdateNativeDashboardRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NativeDashboard + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateNativeDashboard(UpdateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard + { + return $this->startApiCall('UpdateNativeDashboard', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php new file mode 100644 index 000000000000..3f922d8c579f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php @@ -0,0 +1,366 @@ + createReferenceListAsync(CreateReferenceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReferenceListAsync(GetReferenceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReferenceListsAsync(ListReferenceListsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateReferenceListAsync(UpdateReferenceListRequest $request, array $optionalArgs = []) + */ +final class ReferenceListServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.ReferenceListService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/reference_list_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/reference_list_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/reference_list_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/reference_list_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * reference_list resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $referenceList + * + * @return string The formatted reference_list resource. + */ + public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string + { + return self::getPathTemplate('referenceList')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'reference_list' => $referenceList, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\ReferenceListServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ReferenceListServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a new reference list. + * + * The async variant is + * {@see ReferenceListServiceClient::createReferenceListAsync()} . + * + * @example samples/V1/ReferenceListServiceClient/create_reference_list.php + * + * @param CreateReferenceListRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReferenceList + * + * @throws ApiException Thrown if the API call fails. + */ + public function createReferenceList(CreateReferenceListRequest $request, array $callOptions = []): ReferenceList + { + return $this->startApiCall('CreateReferenceList', $request, $callOptions)->wait(); + } + + /** + * Gets a single reference list. + * + * The async variant is {@see ReferenceListServiceClient::getReferenceListAsync()} + * . + * + * @example samples/V1/ReferenceListServiceClient/get_reference_list.php + * + * @param GetReferenceListRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReferenceList + * + * @throws ApiException Thrown if the API call fails. + */ + public function getReferenceList(GetReferenceListRequest $request, array $callOptions = []): ReferenceList + { + return $this->startApiCall('GetReferenceList', $request, $callOptions)->wait(); + } + + /** + * Lists a collection of reference lists. + * + * The async variant is + * {@see ReferenceListServiceClient::listReferenceListsAsync()} . + * + * @example samples/V1/ReferenceListServiceClient/list_reference_lists.php + * + * @param ListReferenceListsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listReferenceLists(ListReferenceListsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReferenceLists', $request, $callOptions); + } + + /** + * Updates an existing reference list. + * + * The async variant is + * {@see ReferenceListServiceClient::updateReferenceListAsync()} . + * + * @example samples/V1/ReferenceListServiceClient/update_reference_list.php + * + * @param UpdateReferenceListRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReferenceList + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateReferenceList(UpdateReferenceListRequest $request, array $callOptions = []): ReferenceList + { + return $this->startApiCall('UpdateReferenceList', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php new file mode 100644 index 000000000000..bdbeb342276e --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php @@ -0,0 +1,733 @@ + createRetrohuntAsync(CreateRetrohuntRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRuleAsync(CreateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRuleAsync(DeleteRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRetrohuntAsync(GetRetrohuntRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRuleAsync(GetRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRuleDeploymentAsync(GetRuleDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRetrohuntsAsync(ListRetrohuntsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRuleDeploymentsAsync(ListRuleDeploymentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRuleRevisionsAsync(ListRuleRevisionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRulesAsync(ListRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRuleAsync(UpdateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRuleDeploymentAsync(UpdateRuleDeploymentRequest $request, array $optionalArgs = []) + */ +final class RuleServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.chronicle.v1.RuleService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/rule_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/rule_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/rule_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/rule_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_access_scope resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $dataAccessScope + * + * @return string The formatted data_access_scope resource. + */ + public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string + { + return self::getPathTemplate('dataAccessScope')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'data_access_scope' => $dataAccessScope, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $location, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * reference_list resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $referenceList + * + * @return string The formatted reference_list resource. + */ + public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string + { + return self::getPathTemplate('referenceList')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'reference_list' => $referenceList, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a retrohunt + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $rule + * @param string $retrohunt + * + * @return string The formatted retrohunt resource. + */ + public static function retrohuntName(string $project, string $location, string $instance, string $rule, string $retrohunt): string + { + return self::getPathTemplate('retrohunt')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'rule' => $rule, + 'retrohunt' => $retrohunt, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a rule + * resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $rule + * + * @return string The formatted rule resource. + */ + public static function ruleName(string $project, string $location, string $instance, string $rule): string + { + return self::getPathTemplate('rule')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'rule' => $rule, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * rule_deployment resource. + * + * @param string $project + * @param string $location + * @param string $instance + * @param string $rule + * + * @return string The formatted rule_deployment resource. + */ + public static function ruleDeploymentName(string $project, string $location, string $instance, string $rule): string + { + return self::getPathTemplate('ruleDeployment')->render([ + 'project' => $project, + 'location' => $location, + 'instance' => $instance, + 'rule' => $rule, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} + * - instance: projects/{project}/locations/{location}/instances/{instance} + * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} + * - retrohunt: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt} + * - rule: projects/{project}/locations/{location}/instances/{instance}/rules/{rule} + * - ruleDeployment: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chronicle.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Chronicle\V1\RuleServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new RuleServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Create a Retrohunt. + * + * The async variant is {@see RuleServiceClient::createRetrohuntAsync()} . + * + * @example samples/V1/RuleServiceClient/create_retrohunt.php + * + * @param CreateRetrohuntRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRetrohunt(CreateRetrohuntRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateRetrohunt', $request, $callOptions)->wait(); + } + + /** + * Creates a new Rule. + * + * The async variant is {@see RuleServiceClient::createRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/create_rule.php + * + * @param CreateRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Rule + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRule(CreateRuleRequest $request, array $callOptions = []): Rule + { + return $this->startApiCall('CreateRule', $request, $callOptions)->wait(); + } + + /** + * Deletes a Rule. + * + * The async variant is {@see RuleServiceClient::deleteRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/delete_rule.php + * + * @param DeleteRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteRule(DeleteRuleRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteRule', $request, $callOptions)->wait(); + } + + /** + * Get a Retrohunt. + * + * The async variant is {@see RuleServiceClient::getRetrohuntAsync()} . + * + * @example samples/V1/RuleServiceClient/get_retrohunt.php + * + * @param GetRetrohuntRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Retrohunt + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRetrohunt(GetRetrohuntRequest $request, array $callOptions = []): Retrohunt + { + return $this->startApiCall('GetRetrohunt', $request, $callOptions)->wait(); + } + + /** + * Gets a Rule. + * + * The async variant is {@see RuleServiceClient::getRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/get_rule.php + * + * @param GetRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Rule + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRule(GetRuleRequest $request, array $callOptions = []): Rule + { + return $this->startApiCall('GetRule', $request, $callOptions)->wait(); + } + + /** + * Gets a RuleDeployment. + * + * The async variant is {@see RuleServiceClient::getRuleDeploymentAsync()} . + * + * @example samples/V1/RuleServiceClient/get_rule_deployment.php + * + * @param GetRuleDeploymentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RuleDeployment + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRuleDeployment(GetRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment + { + return $this->startApiCall('GetRuleDeployment', $request, $callOptions)->wait(); + } + + /** + * List Retrohunts. + * + * The async variant is {@see RuleServiceClient::listRetrohuntsAsync()} . + * + * @example samples/V1/RuleServiceClient/list_retrohunts.php + * + * @param ListRetrohuntsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRetrohunts(ListRetrohuntsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRetrohunts', $request, $callOptions); + } + + /** + * Lists RuleDeployments across all Rules. + * + * The async variant is {@see RuleServiceClient::listRuleDeploymentsAsync()} . + * + * @example samples/V1/RuleServiceClient/list_rule_deployments.php + * + * @param ListRuleDeploymentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRuleDeployments(ListRuleDeploymentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRuleDeployments', $request, $callOptions); + } + + /** + * Lists all revisions of the rule. + * + * The async variant is {@see RuleServiceClient::listRuleRevisionsAsync()} . + * + * @example samples/V1/RuleServiceClient/list_rule_revisions.php + * + * @param ListRuleRevisionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRuleRevisions(ListRuleRevisionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRuleRevisions', $request, $callOptions); + } + + /** + * Lists Rules. + * + * The async variant is {@see RuleServiceClient::listRulesAsync()} . + * + * @example samples/V1/RuleServiceClient/list_rules.php + * + * @param ListRulesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRules(ListRulesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRules', $request, $callOptions); + } + + /** + * Updates a Rule. + * + * The async variant is {@see RuleServiceClient::updateRuleAsync()} . + * + * @example samples/V1/RuleServiceClient/update_rule.php + * + * @param UpdateRuleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Rule + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRule(UpdateRuleRequest $request, array $callOptions = []): Rule + { + return $this->startApiCall('UpdateRule', $request, $callOptions)->wait(); + } + + /** + * Updates a RuleDeployment. + * Failures are not necessarily atomic. If there is a request to update + * multiple fields, and any update to a single field fails, an error will be + * returned, but other fields may remain successfully updated. + * + * The async variant is {@see RuleServiceClient::updateRuleDeploymentAsync()} . + * + * @example samples/V1/RuleServiceClient/update_rule_deployment.php + * + * @param UpdateRuleDeploymentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RuleDeployment + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRuleDeployment(UpdateRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment + { + return $this->startApiCall('UpdateRuleDeployment', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..72ec1f023606 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json @@ -0,0 +1,453 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.chronicle.v1", + "libraryPackage": "Google\\Cloud\\Chronicle\\V1", + "services": { + "BigQueryExportService": { + "clients": { + "grpc": { + "libraryClient": "BigQueryExportServiceGapicClient", + "rpcs": { + "GetBigQueryExport": { + "methods": [ + "getBigQueryExport" + ] + }, + "ProvisionBigQueryExport": { + "methods": [ + "provisionBigQueryExport" + ] + }, + "UpdateBigQueryExport": { + "methods": [ + "updateBigQueryExport" + ] + } + } + } + } + }, + "DashboardQueryService": { + "clients": { + "grpc": { + "libraryClient": "DashboardQueryServiceGapicClient", + "rpcs": { + "ExecuteDashboardQuery": { + "methods": [ + "executeDashboardQuery" + ] + }, + "GetDashboardQuery": { + "methods": [ + "getDashboardQuery" + ] + } + } + } + } + }, + "DashboardChartService": { + "clients": { + "grpc": { + "libraryClient": "DashboardChartServiceGapicClient", + "rpcs": { + "BatchGetDashboardCharts": { + "methods": [ + "batchGetDashboardCharts" + ] + }, + "GetDashboardChart": { + "methods": [ + "getDashboardChart" + ] + } + } + } + } + }, + "DataAccessControlService": { + "clients": { + "grpc": { + "libraryClient": "DataAccessControlServiceGapicClient", + "rpcs": { + "CreateDataAccessLabel": { + "methods": [ + "createDataAccessLabel" + ] + }, + "CreateDataAccessScope": { + "methods": [ + "createDataAccessScope" + ] + }, + "DeleteDataAccessLabel": { + "methods": [ + "deleteDataAccessLabel" + ] + }, + "DeleteDataAccessScope": { + "methods": [ + "deleteDataAccessScope" + ] + }, + "GetDataAccessLabel": { + "methods": [ + "getDataAccessLabel" + ] + }, + "GetDataAccessScope": { + "methods": [ + "getDataAccessScope" + ] + }, + "ListDataAccessLabels": { + "methods": [ + "listDataAccessLabels" + ] + }, + "ListDataAccessScopes": { + "methods": [ + "listDataAccessScopes" + ] + }, + "UpdateDataAccessLabel": { + "methods": [ + "updateDataAccessLabel" + ] + }, + "UpdateDataAccessScope": { + "methods": [ + "updateDataAccessScope" + ] + } + } + } + } + }, + "DataTableService": { + "clients": { + "grpc": { + "libraryClient": "DataTableServiceGapicClient", + "rpcs": { + "BulkCreateDataTableRows": { + "methods": [ + "bulkCreateDataTableRows" + ] + }, + "BulkGetDataTableRows": { + "methods": [ + "bulkGetDataTableRows" + ] + }, + "BulkReplaceDataTableRows": { + "methods": [ + "bulkReplaceDataTableRows" + ] + }, + "BulkUpdateDataTableRows": { + "methods": [ + "bulkUpdateDataTableRows" + ] + }, + "CreateDataTable": { + "methods": [ + "createDataTable" + ] + }, + "CreateDataTableRow": { + "methods": [ + "createDataTableRow" + ] + }, + "DeleteDataTable": { + "methods": [ + "deleteDataTable" + ] + }, + "DeleteDataTableRow": { + "methods": [ + "deleteDataTableRow" + ] + }, + "GetDataTable": { + "methods": [ + "getDataTable" + ] + }, + "GetDataTableOperationErrors": { + "methods": [ + "getDataTableOperationErrors" + ] + }, + "GetDataTableRow": { + "methods": [ + "getDataTableRow" + ] + }, + "ListDataTableRows": { + "methods": [ + "listDataTableRows" + ] + }, + "ListDataTables": { + "methods": [ + "listDataTables" + ] + }, + "UpdateDataTable": { + "methods": [ + "updateDataTable" + ] + }, + "UpdateDataTableRow": { + "methods": [ + "updateDataTableRow" + ] + } + } + } + } + }, + "EntityService": { + "clients": { + "grpc": { + "libraryClient": "EntityServiceGapicClient", + "rpcs": { + "CreateWatchlist": { + "methods": [ + "createWatchlist" + ] + }, + "DeleteWatchlist": { + "methods": [ + "deleteWatchlist" + ] + }, + "GetWatchlist": { + "methods": [ + "getWatchlist" + ] + }, + "ListWatchlists": { + "methods": [ + "listWatchlists" + ] + }, + "UpdateWatchlist": { + "methods": [ + "updateWatchlist" + ] + } + } + } + } + }, + "NativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "NativeDashboardServiceGapicClient", + "rpcs": { + "AddChart": { + "methods": [ + "addChart" + ] + }, + "CreateNativeDashboard": { + "methods": [ + "createNativeDashboard" + ] + }, + "DeleteNativeDashboard": { + "methods": [ + "deleteNativeDashboard" + ] + }, + "DuplicateChart": { + "methods": [ + "duplicateChart" + ] + }, + "DuplicateNativeDashboard": { + "methods": [ + "duplicateNativeDashboard" + ] + }, + "EditChart": { + "methods": [ + "editChart" + ] + }, + "ExportNativeDashboards": { + "methods": [ + "exportNativeDashboards" + ] + }, + "GetNativeDashboard": { + "methods": [ + "getNativeDashboard" + ] + }, + "ImportNativeDashboards": { + "methods": [ + "importNativeDashboards" + ] + }, + "ListNativeDashboards": { + "methods": [ + "listNativeDashboards" + ] + }, + "RemoveChart": { + "methods": [ + "removeChart" + ] + }, + "UpdateNativeDashboard": { + "methods": [ + "updateNativeDashboard" + ] + } + } + } + } + }, + "FeaturedContentNativeDashboardService": { + "clients": { + "grpc": { + "libraryClient": "FeaturedContentNativeDashboardServiceGapicClient", + "rpcs": { + "GetFeaturedContentNativeDashboard": { + "methods": [ + "getFeaturedContentNativeDashboard" + ] + }, + "InstallFeaturedContentNativeDashboard": { + "methods": [ + "installFeaturedContentNativeDashboard" + ] + }, + "ListFeaturedContentNativeDashboards": { + "methods": [ + "listFeaturedContentNativeDashboards" + ] + } + } + } + } + }, + "InstanceService": { + "clients": { + "grpc": { + "libraryClient": "InstanceServiceGapicClient", + "rpcs": { + "GetInstance": { + "methods": [ + "getInstance" + ] + } + } + } + } + }, + "ReferenceListService": { + "clients": { + "grpc": { + "libraryClient": "ReferenceListServiceGapicClient", + "rpcs": { + "CreateReferenceList": { + "methods": [ + "createReferenceList" + ] + }, + "GetReferenceList": { + "methods": [ + "getReferenceList" + ] + }, + "ListReferenceLists": { + "methods": [ + "listReferenceLists" + ] + }, + "UpdateReferenceList": { + "methods": [ + "updateReferenceList" + ] + } + } + } + } + }, + "RuleService": { + "clients": { + "grpc": { + "libraryClient": "RuleServiceGapicClient", + "rpcs": { + "CreateRetrohunt": { + "methods": [ + "createRetrohunt" + ] + }, + "CreateRule": { + "methods": [ + "createRule" + ] + }, + "DeleteRule": { + "methods": [ + "deleteRule" + ] + }, + "GetRetrohunt": { + "methods": [ + "getRetrohunt" + ] + }, + "GetRule": { + "methods": [ + "getRule" + ] + }, + "GetRuleDeployment": { + "methods": [ + "getRuleDeployment" + ] + }, + "ListRetrohunts": { + "methods": [ + "listRetrohunts" + ] + }, + "ListRuleDeployments": { + "methods": [ + "listRuleDeployments" + ] + }, + "ListRuleRevisions": { + "methods": [ + "listRuleRevisions" + ] + }, + "ListRules": { + "methods": [ + "listRules" + ] + }, + "UpdateRule": { + "methods": [ + "updateRule" + ] + }, + "UpdateRuleDeployment": { + "methods": [ + "updateRuleDeployment" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_client_config.json new file mode 100644 index 000000000000..427d37b80c25 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_client_config.json @@ -0,0 +1,49 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.BigQueryExportService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_2_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_2_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 120000, + "initial_rpc_timeout_millis": 120000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 120000, + "total_timeout_millis": 120000 + } + }, + "methods": { + "GetBigQueryExport": { + "timeout_millis": 120000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ProvisionBigQueryExport": { + "timeout_millis": 120000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "UpdateBigQueryExport": { + "timeout_millis": 120000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_descriptor_config.php new file mode 100644 index 000000000000..9eecb4943f2d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_descriptor_config.php @@ -0,0 +1,69 @@ + [ + 'google.cloud.chronicle.v1.BigQueryExportService' => [ + 'GetBigQueryExport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BigQueryExport', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ProvisionBigQueryExport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BigQueryExport', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateBigQueryExport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BigQueryExport', + 'headerParams' => [ + [ + 'keyName' => 'big_query_export.name', + 'fieldAccessors' => [ + 'getBigQueryExport', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'bigQueryExport' => 'projects/{project}/locations/{location}/instances/{instance}/bigQueryExport', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_rest_client_config.php new file mode 100644 index 000000000000..534a37772f12 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_rest_client_config.php @@ -0,0 +1,112 @@ + [ + 'google.cloud.chronicle.v1.BigQueryExportService' => [ + 'GetBigQueryExport' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/bigQueryExport}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ProvisionBigQueryExport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/bigQueryExport:provision', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateBigQueryExport' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{big_query_export.name=projects/*/locations/*/instances/*/bigQueryExport}', + 'body' => 'big_query_export', + 'placeholders' => [ + 'big_query_export.name' => [ + 'getters' => [ + 'getBigQueryExport', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json new file mode 100644 index 000000000000..31595fe9e655 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json @@ -0,0 +1,44 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DashboardChartService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "BatchGetDashboardCharts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDashboardChart": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php new file mode 100644 index 000000000000..9a91c348c9c9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php @@ -0,0 +1,56 @@ + [ + 'google.cloud.chronicle.v1.DashboardChartService' => [ + 'BatchGetDashboardCharts' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BatchGetDashboardChartsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DashboardChart', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php new file mode 100644 index 000000000000..f178ba0b2d48 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php @@ -0,0 +1,98 @@ + [ + 'google.cloud.chronicle.v1.DashboardChartService' => [ + 'BatchGetDashboardCharts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dashboardCharts:batchGet', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardChart' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dashboardCharts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json new file mode 100644 index 000000000000..4490dae622f1 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DashboardQueryService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 1800000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 1800000, + "total_timeout_millis": 1800000 + } + }, + "methods": { + "ExecuteDashboardQuery": { + "timeout_millis": 1800000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetDashboardQuery": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php new file mode 100644 index 000000000000..e4733997aaa5 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php @@ -0,0 +1,57 @@ + [ + 'google.cloud.chronicle.v1.DashboardQueryService' => [ + 'ExecuteDashboardQuery' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardQuery' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DashboardQuery', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php new file mode 100644 index 000000000000..44abdc791cc9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php @@ -0,0 +1,99 @@ + [ + 'google.cloud.chronicle.v1.DashboardQueryService' => [ + 'ExecuteDashboardQuery' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dashboardQueries:execute', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetDashboardQuery' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dashboardQueries/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json new file mode 100644 index 000000000000..93ed52f8b477 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json @@ -0,0 +1,94 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DataAccessControlService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "CreateDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "GetDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataAccessLabels": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataAccessScopes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataAccessLabel": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "UpdateDataAccessScope": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php new file mode 100644 index 000000000000..c8a4082ca4c9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php @@ -0,0 +1,171 @@ + [ + 'google.cloud.chronicle.v1.DataAccessControlService' => [ + 'CreateDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAccessLabels' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAccessLabels', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessLabelsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAccessScopes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAccessScopes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessScopesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataAccessLabel' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', + 'headerParams' => [ + [ + 'keyName' => 'data_access_label.name', + 'fieldAccessors' => [ + 'getDataAccessLabel', + 'getName', + ], + ], + ], + ], + 'UpdateDataAccessScope' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', + 'headerParams' => [ + [ + 'keyName' => 'data_access_scope.name', + 'fieldAccessors' => [ + 'getDataAccessScope', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dataAccessLabel' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}', + 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php new file mode 100644 index 000000000000..5541511b522c --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php @@ -0,0 +1,198 @@ + [ + 'google.cloud.chronicle.v1.DataAccessControlService' => [ + 'CreateDataAccessLabel' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', + 'body' => 'data_access_label', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_access_label_id', + ], + ], + 'CreateDataAccessScope' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', + 'body' => 'data_access_scope', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_access_scope_id', + ], + ], + 'DeleteDataAccessLabel' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAccessScope' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessLabel' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAccessScope' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAccessLabels' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAccessScopes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataAccessLabel' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}', + 'body' => 'data_access_label', + 'placeholders' => [ + 'data_access_label.name' => [ + 'getters' => [ + 'getDataAccessLabel', + 'getName', + ], + ], + ], + ], + 'UpdateDataAccessScope' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}', + 'body' => 'data_access_scope', + 'placeholders' => [ + 'data_access_scope.name' => [ + 'getters' => [ + 'getDataAccessScope', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json new file mode 100644 index 000000000000..2aca06ccfede --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json @@ -0,0 +1,119 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.DataTableService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_5_codes": [ + "UNAVAILABLE" + ], + "no_retry_5_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_5_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + }, + "no_retry_5_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "BulkCreateDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "BulkGetDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + }, + "BulkReplaceDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "BulkUpdateDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "CreateDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "CreateDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "DeleteDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "DeleteDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "GetDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + }, + "GetDataTableOperationErrors": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + }, + "GetDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + }, + "ListDataTableRows": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + }, + "ListDataTables": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + }, + "UpdateDataTable": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "UpdateDataTableRow": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php new file mode 100644 index 000000000000..8e920d69d520 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php @@ -0,0 +1,233 @@ + [ + 'google.cloud.chronicle.v1.DataTableService' => [ + 'BulkCreateDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BulkGetDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkGetDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BulkReplaceDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BulkUpdateDataTableRows' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableOperationErrors' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableOperationErrors', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDataTableRows' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataTableRows', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTableRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataTables' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataTables', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTablesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', + 'headerParams' => [ + [ + 'keyName' => 'data_table.name', + 'fieldAccessors' => [ + 'getDataTable', + 'getName', + ], + ], + ], + ], + 'UpdateDataTableRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', + 'headerParams' => [ + [ + 'keyName' => 'data_table_row.name', + 'fieldAccessors' => [ + 'getDataTableRow', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', + 'dataTable' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}', + 'dataTableOperationErrors' => 'projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}', + 'dataTableRow' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php new file mode 100644 index 000000000000..b16af4a2aa89 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php @@ -0,0 +1,254 @@ + [ + 'google.cloud.chronicle.v1.DataTableService' => [ + 'BulkCreateDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BulkGetDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BulkReplaceDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BulkUpdateDataTableRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataTable' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', + 'body' => 'data_table', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_table_id', + ], + ], + 'CreateDataTableRow' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', + 'body' => 'data_table_row', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataTable' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataTableRow' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTable' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableOperationErrors' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTableRow' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDataTableRows' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataTables' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataTable' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}', + 'body' => 'data_table', + 'placeholders' => [ + 'data_table.name' => [ + 'getters' => [ + 'getDataTable', + 'getName', + ], + ], + ], + ], + 'UpdateDataTableRow' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', + 'body' => 'data_table_row', + 'placeholders' => [ + 'data_table_row.name' => [ + 'getters' => [ + 'getDataTableRow', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json new file mode 100644 index 000000000000..5eda360a775b --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json @@ -0,0 +1,69 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.EntityService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_3_codes": [ + "UNAVAILABLE" + ], + "no_retry_4_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_3_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 90000, + "initial_rpc_timeout_millis": 90000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 90000, + "total_timeout_millis": 90000 + }, + "no_retry_4_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 90000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 90000, + "total_timeout_millis": 90000 + } + }, + "methods": { + "CreateWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "DeleteWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "GetWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "ListWatchlists": { + "timeout_millis": 90000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "UpdateWatchlist": { + "timeout_millis": 90000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php new file mode 100644 index 000000000000..3e621e9503b3 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php @@ -0,0 +1,101 @@ + [ + 'google.cloud.chronicle.v1.EntityService' => [ + 'CreateWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListWatchlists' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWatchlists', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListWatchlistsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateWatchlist' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', + 'headerParams' => [ + [ + 'keyName' => 'watchlist.name', + 'fieldAccessors' => [ + 'getWatchlist', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'watchlist' => 'projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php new file mode 100644 index 000000000000..eebd35bba736 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php @@ -0,0 +1,134 @@ + [ + 'google.cloud.chronicle.v1.EntityService' => [ + 'CreateWatchlist' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', + 'body' => 'watchlist', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteWatchlist' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWatchlist' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListWatchlists' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateWatchlist' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}', + 'body' => 'watchlist', + 'placeholders' => [ + 'watchlist.name' => [ + 'getters' => [ + 'getWatchlist', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json new file mode 100644 index 000000000000..f06003b592c2 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json @@ -0,0 +1,59 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "GetFeaturedContentNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "InstallFeaturedContentNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListFeaturedContentNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php new file mode 100644 index 000000000000..7a4c36e97ba9 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php @@ -0,0 +1,80 @@ + [ + 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService' => [ + 'GetFeaturedContentNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'InstallFeaturedContentNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\InstallFeaturedContentNativeDashboardResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListFeaturedContentNativeDashboards' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFeaturedContentNativeDashboards', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListFeaturedContentNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'contentHub' => 'projects/{project}/locations/{location}/instances/{instance}/contentHub', + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', + 'featuredContentNativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'nativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php new file mode 100644 index 000000000000..414c0d943156 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php @@ -0,0 +1,110 @@ + [ + 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService' => [ + 'GetFeaturedContentNativeDashboard' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'InstallFeaturedContentNativeDashboard' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}:install', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListFeaturedContentNativeDashboards' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/contentHub}/featuredContentNativeDashboards', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json new file mode 100644 index 000000000000..5de3bac58b09 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json @@ -0,0 +1,39 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.InstanceService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "GetInstance": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php new file mode 100644 index 000000000000..7f7d60f75b19 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php @@ -0,0 +1,43 @@ + [ + 'google.cloud.chronicle.v1.InstanceService' => [ + 'GetInstance' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Instance', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php new file mode 100644 index 000000000000..d4685582daa0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php @@ -0,0 +1,87 @@ + [ + 'google.cloud.chronicle.v1.InstanceService' => [ + 'GetInstance' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json new file mode 100644 index 000000000000..9de9c63abe1d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json @@ -0,0 +1,104 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.NativeDashboardService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "AddChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "CreateNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DuplicateChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DuplicateNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "EditChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "ExportNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ImportNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "ListNativeDashboards": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RemoveChart": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "UpdateNativeDashboard": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php new file mode 100644 index 000000000000..edf23c87150a --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php @@ -0,0 +1,187 @@ + [ + 'google.cloud.chronicle.v1.NativeDashboardService' => [ + 'AddChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\AddChartResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\DuplicateChartResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'EditChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\EditChartResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ExportNativeDashboards' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ExportNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ImportNativeDashboards' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ImportNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListNativeDashboards' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getNativeDashboards', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListNativeDashboardsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RemoveChart' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateNativeDashboard' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', + 'headerParams' => [ + [ + 'keyName' => 'native_dashboard.name', + 'fieldAccessors' => [ + 'getNativeDashboard', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', + 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'nativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php new file mode 100644 index 000000000000..db983134a840 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php @@ -0,0 +1,221 @@ + [ + 'google.cloud.chronicle.v1.NativeDashboardService' => [ + 'AddChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:addChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateNativeDashboard' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards', + 'body' => 'native_dashboard', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteNativeDashboard' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicateChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DuplicateNativeDashboard' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicate', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'EditChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ExportNativeDashboards' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:export', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetNativeDashboard' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportNativeDashboards' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:import', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListNativeDashboards' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RemoveChart' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:removeChart', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateNativeDashboard' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{native_dashboard.name=projects/*/locations/*/instances/*/nativeDashboards/*}', + 'body' => 'native_dashboard', + 'placeholders' => [ + 'native_dashboard.name' => [ + 'getters' => [ + 'getNativeDashboard', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json new file mode 100644 index 000000000000..731c05c97068 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json @@ -0,0 +1,64 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.ReferenceListService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateReferenceList": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "GetReferenceList": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListReferenceLists": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateReferenceList": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php new file mode 100644 index 000000000000..388793580afd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php @@ -0,0 +1,89 @@ + [ + 'google.cloud.chronicle.v1.ReferenceListService' => [ + 'CreateReferenceList' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetReferenceList' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListReferenceLists' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReferenceLists', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListReferenceListsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateReferenceList' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', + 'headerParams' => [ + [ + 'keyName' => 'reference_list.name', + 'fieldAccessors' => [ + 'getReferenceList', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php new file mode 100644 index 000000000000..9763cbfd0f4d --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php @@ -0,0 +1,126 @@ + [ + 'google.cloud.chronicle.v1.ReferenceListService' => [ + 'CreateReferenceList' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', + 'body' => 'reference_list', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'reference_list_id', + ], + ], + 'GetReferenceList' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListReferenceLists' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateReferenceList' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}', + 'body' => 'reference_list', + 'placeholders' => [ + 'reference_list.name' => [ + 'getters' => [ + 'getReferenceList', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json new file mode 100644 index 000000000000..46102ab67fdf --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json @@ -0,0 +1,126 @@ +{ + "interfaces": { + "google.cloud.chronicle.v1.RuleService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "retry_policy_4_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_codes": [], + "no_retry_3_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "retry_policy_4_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 600000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + }, + "no_retry_2_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_3_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateRetrohunt": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" + }, + "CreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteRule": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "GetRetrohunt": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRule": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRuleDeployment": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "ListRetrohunts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListRuleDeployments": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "ListRuleRevisions": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "ListRules": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "UpdateRule": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" + }, + "UpdateRuleDeployment": { + "timeout_millis": 600000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" + } + } + } + } +} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php new file mode 100644 index 000000000000..94e1a30f30f7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php @@ -0,0 +1,221 @@ + [ + 'google.cloud.chronicle.v1.RuleService' => [ + 'CreateRetrohunt' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Chronicle\V1\Retrohunt', + 'metadataReturnType' => '\Google\Cloud\Chronicle\V1\RetrohuntMetadata', + 'initialPollDelayMillis' => '1000', + 'pollDelayMultiplier' => '2.0', + 'maxPollDelayMillis' => '10000', + 'totalPollTimeoutMillis' => '900000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRetrohunt' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Retrohunt', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRuleDeployment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListRetrohunts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRetrohunts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRetrohuntsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleDeployments' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRuleDeployments', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleDeploymentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleRevisions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRules', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleRevisionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListRules' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRules', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\ListRulesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateRule' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', + 'headerParams' => [ + [ + 'keyName' => 'rule.name', + 'fieldAccessors' => [ + 'getRule', + 'getName', + ], + ], + ], + ], + 'UpdateRuleDeployment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', + 'headerParams' => [ + [ + 'keyName' => 'rule_deployment.name', + 'fieldAccessors' => [ + 'getRuleDeployment', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', + 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', + 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', + 'retrohunt' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}', + 'rule' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}', + 'ruleDeployment' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment', + ], + ], + ], +]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php new file mode 100644 index 000000000000..0da0c5c50559 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php @@ -0,0 +1,217 @@ + [ + 'google.cloud.chronicle.v1.RuleService' => [ + 'CreateRetrohunt' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', + 'body' => 'retrohunt', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRule' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', + 'body' => 'rule', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteRule' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRetrohunt' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRule' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRuleDeployment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListRetrohunts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleDeployments' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRuleRevisions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListRules' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateRule' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}', + 'body' => 'rule', + 'placeholders' => [ + 'rule.name' => [ + 'getters' => [ + 'getRule', + 'getName', + ], + ], + ], + ], + 'UpdateRuleDeployment' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}', + 'body' => 'rule_deployment', + 'placeholders' => [ + 'rule_deployment.name' => [ + 'getters' => [ + 'getRuleDeployment', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php new file mode 100644 index 000000000000..300ab08f88b7 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php @@ -0,0 +1,293 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BigQueryExportServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BigQueryExportServiceClient($options); + } + + /** @test */ + public function getBigQueryExportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $provisioned = true; + $expectedResponse = new BigQueryExport(); + $expectedResponse->setName($name2); + $expectedResponse->setProvisioned($provisioned); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->bigQueryExportName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetBigQueryExportRequest()) + ->setName($formattedName); + $response = $gapicClient->getBigQueryExport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.BigQueryExportService/GetBigQueryExport', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBigQueryExportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->bigQueryExportName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetBigQueryExportRequest()) + ->setName($formattedName); + try { + $gapicClient->getBigQueryExport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionBigQueryExportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $provisioned = true; + $expectedResponse = new BigQueryExport(); + $expectedResponse->setName($name); + $expectedResponse->setProvisioned($provisioned); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ProvisionBigQueryExportRequest()) + ->setParent($formattedParent); + $response = $gapicClient->provisionBigQueryExport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.BigQueryExportService/ProvisionBigQueryExport', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionBigQueryExportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ProvisionBigQueryExportRequest()) + ->setParent($formattedParent); + try { + $gapicClient->provisionBigQueryExport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateBigQueryExportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $provisioned = true; + $expectedResponse = new BigQueryExport(); + $expectedResponse->setName($name); + $expectedResponse->setProvisioned($provisioned); + $transport->addResponse($expectedResponse); + // Mock request + $bigQueryExport = new BigQueryExport(); + $request = (new UpdateBigQueryExportRequest()) + ->setBigQueryExport($bigQueryExport); + $response = $gapicClient->updateBigQueryExport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.BigQueryExportService/UpdateBigQueryExport', $actualFuncCall); + $actualValue = $actualRequestObject->getBigQueryExport(); + $this->assertProtobufEquals($bigQueryExport, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateBigQueryExportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $bigQueryExport = new BigQueryExport(); + $request = (new UpdateBigQueryExportRequest()) + ->setBigQueryExport($bigQueryExport); + try { + $gapicClient->updateBigQueryExport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBigQueryExportAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $provisioned = true; + $expectedResponse = new BigQueryExport(); + $expectedResponse->setName($name2); + $expectedResponse->setProvisioned($provisioned); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->bigQueryExportName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetBigQueryExportRequest()) + ->setName($formattedName); + $response = $gapicClient->getBigQueryExportAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.BigQueryExportService/GetBigQueryExport', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php new file mode 100644 index 000000000000..db0110e9fdf8 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php @@ -0,0 +1,241 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DashboardChartServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DashboardChartServiceClient($options); + } + + /** @test */ + public function batchGetDashboardChartsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchGetDashboardChartsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $formattedNames = [ + $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), + ]; + $request = (new BatchGetDashboardChartsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchGetDashboardCharts($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchGetDashboardChartsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $formattedNames = [ + $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), + ]; + $request = (new BatchGetDashboardChartsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchGetDashboardCharts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $nativeDashboard = 'nativeDashboard-671726484'; + $etag = 'etag3123477'; + $expectedResponse = new DashboardChart(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setNativeDashboard($nativeDashboard); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new GetDashboardChartRequest()) + ->setName($formattedName); + $response = $gapicClient->getDashboardChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/GetDashboardChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new GetDashboardChartRequest()) + ->setName($formattedName); + try { + $gapicClient->getDashboardChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchGetDashboardChartsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchGetDashboardChartsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $formattedNames = [ + $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), + ]; + $request = (new BatchGetDashboardChartsRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchGetDashboardChartsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php new file mode 100644 index 000000000000..669772c5a4aa --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php @@ -0,0 +1,246 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DashboardQueryServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DashboardQueryServiceClient($options); + } + + /** @test */ + public function executeDashboardQueryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExecuteDashboardQueryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $query = new DashboardQuery(); + $queryQuery = 'queryQuery-181056288'; + $query->setQuery($queryQuery); + $queryInput = new Input(); + $query->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + $response = $gapicClient->executeDashboardQuery($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function executeDashboardQueryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $query = new DashboardQuery(); + $queryQuery = 'queryQuery-181056288'; + $query->setQuery($queryQuery); + $queryInput = new Input(); + $query->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + try { + $gapicClient->executeDashboardQuery($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardQueryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $query = 'query107944136'; + $dashboardChart = 'dashboardChart-1592924557'; + $etag = 'etag3123477'; + $expectedResponse = new DashboardQuery(); + $expectedResponse->setName($name2); + $expectedResponse->setQuery($query); + $expectedResponse->setDashboardChart($dashboardChart); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); + $request = (new GetDashboardQueryRequest()) + ->setName($formattedName); + $response = $gapicClient->getDashboardQuery($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/GetDashboardQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDashboardQueryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); + $request = (new GetDashboardQueryRequest()) + ->setName($formattedName); + try { + $gapicClient->getDashboardQuery($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function executeDashboardQueryAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExecuteDashboardQueryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $query = new DashboardQuery(); + $queryQuery = 'queryQuery-181056288'; + $query->setQuery($queryQuery); + $queryInput = new Input(); + $query->setInput($queryInput); + $request = (new ExecuteDashboardQueryRequest()) + ->setParent($formattedParent) + ->setQuery($query); + $response = $gapicClient->executeDashboardQueryAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php new file mode 100644 index 000000000000..bc7163b93a3f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php @@ -0,0 +1,866 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataAccessControlServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataAccessControlServiceClient($options); + } + + /** @test */ + public function createDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessLabel = new DataAccessLabel(); + $dataAccessLabelId = 'dataAccessLabelId-1688134612'; + $request = (new CreateDataAccessLabelRequest()) + ->setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + $response = $gapicClient->createDataAccessLabel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabel(); + $this->assertProtobufEquals($dataAccessLabel, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabelId(); + $this->assertProtobufEquals($dataAccessLabelId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessLabel = new DataAccessLabel(); + $dataAccessLabelId = 'dataAccessLabelId-1688134612'; + $request = (new CreateDataAccessLabelRequest()) + ->setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + try { + $gapicClient->createDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $allowAll = false; + $expectedResponse = new DataAccessScope(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $expectedResponse->setAllowAll($allowAll); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $dataAccessScopeId = 'dataAccessScopeId-216227636'; + $request = (new CreateDataAccessScopeRequest()) + ->setParent($formattedParent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + $response = $gapicClient->createDataAccessScope($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAccessScope(); + $this->assertProtobufEquals($dataAccessScope, $actualValue); + $actualValue = $actualRequestObject->getDataAccessScopeId(); + $this->assertProtobufEquals($dataAccessScopeId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $dataAccessScopeId = 'dataAccessScopeId-216227636'; + $request = (new CreateDataAccessScopeRequest()) + ->setParent($formattedParent) + ->setDataAccessScope($dataAccessScope) + ->setDataAccessScopeId($dataAccessScopeId); + try { + $gapicClient->createDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new DeleteDataAccessLabelRequest()) + ->setName($formattedName); + $gapicClient->deleteDataAccessLabel($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new DeleteDataAccessLabelRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new DeleteDataAccessScopeRequest()) + ->setName($formattedName); + $gapicClient->deleteDataAccessScope($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new DeleteDataAccessScopeRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new GetDataAccessLabelRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAccessLabel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); + $request = (new GetDataAccessLabelRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $allowAll = false; + $expectedResponse = new DataAccessScope(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $expectedResponse->setAllowAll($allowAll); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new GetDataAccessScopeRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAccessScope($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $request = (new GetDataAccessScopeRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessLabelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAccessLabelsElement = new DataAccessLabel(); + $dataAccessLabels = [ + $dataAccessLabelsElement, + ]; + $expectedResponse = new ListDataAccessLabelsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAccessLabels($dataAccessLabels); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessLabelsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAccessLabels($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAccessLabels()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessLabels', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessLabelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessLabelsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAccessLabels($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessScopesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $globalDataAccessScopeGranted = true; + $nextPageToken = ''; + $dataAccessScopesElement = new DataAccessScope(); + $dataAccessScopes = [ + $dataAccessScopesElement, + ]; + $expectedResponse = new ListDataAccessScopesResponse(); + $expectedResponse->setGlobalDataAccessScopeGranted($globalDataAccessScopeGranted); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAccessScopes($dataAccessScopes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessScopesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAccessScopes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAccessScopes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessScopes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAccessScopesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataAccessScopesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAccessScopes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessLabelTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $dataAccessLabel = new DataAccessLabel(); + $request = (new UpdateDataAccessLabelRequest()) + ->setDataAccessLabel($dataAccessLabel); + $response = $gapicClient->updateDataAccessLabel($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getDataAccessLabel(); + $this->assertProtobufEquals($dataAccessLabel, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessLabelExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataAccessLabel = new DataAccessLabel(); + $request = (new UpdateDataAccessLabelRequest()) + ->setDataAccessLabel($dataAccessLabel); + try { + $gapicClient->updateDataAccessLabel($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessScopeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $allowAll = false; + $expectedResponse = new DataAccessScope(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $expectedResponse->setAllowAll($allowAll); + $transport->addResponse($expectedResponse); + // Mock request + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $request = (new UpdateDataAccessScopeRequest()) + ->setDataAccessScope($dataAccessScope); + $response = $gapicClient->updateDataAccessScope($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessScope', $actualFuncCall); + $actualValue = $actualRequestObject->getDataAccessScope(); + $this->assertProtobufEquals($dataAccessScope, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataAccessScopeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataAccessScope = new DataAccessScope(); + $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); + $dataAccessScope->setName($dataAccessScopeName); + $request = (new UpdateDataAccessScopeRequest()) + ->setDataAccessScope($dataAccessScope); + try { + $gapicClient->updateDataAccessScope($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataAccessLabelAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $udmQuery = 'udmQuery-2050033401'; + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $author = 'author-1406328437'; + $lastEditor = 'lastEditor1620154166'; + $description = 'description-1724546052'; + $expectedResponse = new DataAccessLabel(); + $expectedResponse->setUdmQuery($udmQuery); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAuthor($author); + $expectedResponse->setLastEditor($lastEditor); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataAccessLabel = new DataAccessLabel(); + $dataAccessLabelId = 'dataAccessLabelId-1688134612'; + $request = (new CreateDataAccessLabelRequest()) + ->setParent($formattedParent) + ->setDataAccessLabel($dataAccessLabel) + ->setDataAccessLabelId($dataAccessLabelId); + $response = $gapicClient->createDataAccessLabelAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabel(); + $this->assertProtobufEquals($dataAccessLabel, $actualValue); + $actualValue = $actualRequestObject->getDataAccessLabelId(); + $this->assertProtobufEquals($dataAccessLabelId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php new file mode 100644 index 000000000000..125ba2f76d68 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php @@ -0,0 +1,1178 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataTableServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataTableServiceClient($options); + } + + /** @test */ + public function bulkCreateDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkCreateDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkCreateDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkCreateDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkCreateDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkGetDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkGetDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkGetDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkGetDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkGetDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkGetDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkGetDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkGetDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkReplaceDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkReplaceDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkReplaceDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkReplaceDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkReplaceDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkReplaceDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkReplaceDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkReplaceDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkUpdateDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkUpdateDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkUpdateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkUpdateDataTableRows($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkUpdateDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkUpdateDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkUpdateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + try { + $gapicClient->bulkUpdateDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $dataTableUuid = 'dataTableUuid-1818199743'; + $ruleAssociationsCount = 1522562875; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $approximateRowCount = 297926913; + $expectedResponse = new DataTable(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDataTableUuid($dataTableUuid); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $expectedResponse->setApproximateRowCount($approximateRowCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $dataTableId = 'dataTableId-319210463'; + $request = (new CreateDataTableRequest()) + ->setParent($formattedParent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + $response = $gapicClient->createDataTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataTable(); + $this->assertProtobufEquals($dataTable, $actualValue); + $actualValue = $actualRequestObject->getDataTableId(); + $this->assertProtobufEquals($dataTableId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $dataTableId = 'dataTableId-319210463'; + $request = (new CreateDataTableRequest()) + ->setParent($formattedParent) + ->setDataTable($dataTable) + ->setDataTableId($dataTableId); + try { + $gapicClient->createDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $expectedResponse = new DataTableRow(); + $expectedResponse->setName($name); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new CreateDataTableRowRequest()) + ->setParent($formattedParent) + ->setDataTableRow($dataTableRow); + $response = $gapicClient->createDataTableRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataTableRow(); + $this->assertProtobufEquals($dataTableRow, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new CreateDataTableRowRequest()) + ->setParent($formattedParent) + ->setDataTableRow($dataTableRow); + try { + $gapicClient->createDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new DeleteDataTableRequest()) + ->setName($formattedName); + $gapicClient->deleteDataTable($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new DeleteDataTableRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new DeleteDataTableRowRequest()) + ->setName($formattedName); + $gapicClient->deleteDataTableRow($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new DeleteDataTableRowRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $dataTableUuid = 'dataTableUuid-1818199743'; + $ruleAssociationsCount = 1522562875; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $approximateRowCount = 297926913; + $expectedResponse = new DataTable(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDataTableUuid($dataTableUuid); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $expectedResponse->setApproximateRowCount($approximateRowCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new GetDataTableRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new GetDataTableRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableOperationErrorsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new DataTableOperationErrors(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); + $request = (new GetDataTableOperationErrorsRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataTableOperationErrors($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableOperationErrors', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableOperationErrorsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); + $request = (new GetDataTableOperationErrorsRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataTableOperationErrors($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $expectedResponse = new DataTableRow(); + $expectedResponse->setName($name2); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new GetDataTableRowRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataTableRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); + $request = (new GetDataTableRowRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTableRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataTableRowsElement = new DataTableRow(); + $dataTableRows = [ + $dataTableRowsElement, + ]; + $expectedResponse = new ListDataTableRowsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataTableRows($dataTableRows); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new ListDataTableRowsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataTableRows($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataTableRows()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTableRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $request = (new ListDataTableRowsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataTableRows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTablesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataTablesElement = new DataTable(); + $dataTables = [ + $dataTablesElement, + ]; + $expectedResponse = new ListDataTablesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataTables($dataTables); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataTablesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataTables($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataTables()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTables', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTablesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListDataTablesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataTables($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $dataTableUuid = 'dataTableUuid-1818199743'; + $ruleAssociationsCount = 1522562875; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $approximateRowCount = 297926913; + $expectedResponse = new DataTable(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDataTableUuid($dataTableUuid); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $expectedResponse->setApproximateRowCount($approximateRowCount); + $transport->addResponse($expectedResponse); + // Mock request + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $request = (new UpdateDataTableRequest()) + ->setDataTable($dataTable); + $response = $gapicClient->updateDataTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTable', $actualFuncCall); + $actualValue = $actualRequestObject->getDataTable(); + $this->assertProtobufEquals($dataTable, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataTable = new DataTable(); + $dataTableDescription = 'dataTableDescription924959512'; + $dataTable->setDescription($dataTableDescription); + $request = (new UpdateDataTableRequest()) + ->setDataTable($dataTable); + try { + $gapicClient->updateDataTable($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $rowTimeToLive = 'rowTimeToLive1109069571'; + $expectedResponse = new DataTableRow(); + $expectedResponse->setName($name); + $expectedResponse->setRowTimeToLive($rowTimeToLive); + $transport->addResponse($expectedResponse); + // Mock request + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new UpdateDataTableRowRequest()) + ->setDataTableRow($dataTableRow); + $response = $gapicClient->updateDataTableRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTableRow', $actualFuncCall); + $actualValue = $actualRequestObject->getDataTableRow(); + $this->assertProtobufEquals($dataTableRow, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataTableRowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataTableRow = new DataTableRow(); + $dataTableRowValues = []; + $dataTableRow->setValues($dataTableRowValues); + $request = (new UpdateDataTableRowRequest()) + ->setDataTableRow($dataTableRow); + try { + $gapicClient->updateDataTableRow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function bulkCreateDataTableRowsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BulkCreateDataTableRowsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); + $requests = []; + $request = (new BulkCreateDataTableRowsRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + $response = $gapicClient->bulkCreateDataTableRowsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php new file mode 100644 index 000000000000..ae91a174beb0 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php @@ -0,0 +1,477 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return EntityServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new EntityServiceClient($options); + } + + /** @test */ + public function createWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + $response = $gapicClient->createWatchlist($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWatchlist(); + $this->assertProtobufEquals($watchlist, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + try { + $gapicClient->createWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new DeleteWatchlistRequest()) + ->setName($formattedName); + $gapicClient->deleteWatchlist($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/DeleteWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new DeleteWatchlistRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new GetWatchlistRequest()) + ->setName($formattedName); + $response = $gapicClient->getWatchlist($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/GetWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); + $request = (new GetWatchlistRequest()) + ->setName($formattedName); + try { + $gapicClient->getWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWatchlistsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $watchlistsElement = new Watchlist(); + $watchlists = [ + $watchlistsElement, + ]; + $expectedResponse = new ListWatchlistsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWatchlists($watchlists); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListWatchlistsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWatchlists($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWatchlists()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/ListWatchlists', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWatchlistsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListWatchlistsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWatchlists($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWatchlistTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new UpdateWatchlistRequest()) + ->setWatchlist($watchlist); + $response = $gapicClient->updateWatchlist($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/UpdateWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getWatchlist(); + $this->assertProtobufEquals($watchlist, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWatchlistExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new UpdateWatchlistRequest()) + ->setWatchlist($watchlist); + try { + $gapicClient->updateWatchlist($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWatchlistAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $multiplyingFactor = 1981784; + $expectedResponse = new Watchlist(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMultiplyingFactor($multiplyingFactor); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $watchlist = new Watchlist(); + $watchlistDisplayName = 'watchlistDisplayName2018509376'; + $watchlist->setDisplayName($watchlistDisplayName); + $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); + $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); + $request = (new CreateWatchlistRequest()) + ->setParent($formattedParent) + ->setWatchlist($watchlist); + $response = $gapicClient->createWatchlistAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWatchlist(); + $this->assertProtobufEquals($watchlist, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php new file mode 100644 index 000000000000..e6d53dc7f72f --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php @@ -0,0 +1,295 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return FeaturedContentNativeDashboardServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new FeaturedContentNativeDashboardServiceClient($options); + } + + /** @test */ + public function getFeaturedContentNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new FeaturedContentNativeDashboard(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new GetFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->getFeaturedContentNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFeaturedContentNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new GetFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->getFeaturedContentNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installFeaturedContentNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nativeDashboard = 'nativeDashboard-671726484'; + $expectedResponse = new InstallFeaturedContentNativeDashboardResponse(); + $expectedResponse->setNativeDashboard($nativeDashboard); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new InstallFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->installFeaturedContentNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/InstallFeaturedContentNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installFeaturedContentNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new InstallFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->installFeaturedContentNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFeaturedContentNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $featuredContentNativeDashboardsElement = new FeaturedContentNativeDashboard(); + $featuredContentNativeDashboards = [ + $featuredContentNativeDashboardsElement, + ]; + $expectedResponse = new ListFeaturedContentNativeDashboardsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFeaturedContentNativeDashboards($featuredContentNativeDashboards); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListFeaturedContentNativeDashboardsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFeaturedContentNativeDashboards($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFeaturedContentNativeDashboards()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/ListFeaturedContentNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFeaturedContentNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListFeaturedContentNativeDashboardsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFeaturedContentNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFeaturedContentNativeDashboardAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new FeaturedContentNativeDashboard(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); + $request = (new GetFeaturedContentNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->getFeaturedContentNativeDashboardAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php new file mode 100644 index 000000000000..24e45ff2e5ba --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php @@ -0,0 +1,155 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return InstanceServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new InstanceServiceClient($options); + } + + /** @test */ + public function getInstanceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + $response = $gapicClient->getInstance($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getInstanceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + try { + $gapicClient->getInstance($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getInstanceAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + $response = $gapicClient->getInstanceAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php new file mode 100644 index 000000000000..39c444fc6a19 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php @@ -0,0 +1,1021 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return NativeDashboardServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new NativeDashboardServiceClient($options); + } + + /** @test */ + public function addChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AddChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $dashboardChart = new DashboardChart(); + $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; + $dashboardChart->setDisplayName($dashboardChartDisplayName); + $dashboardChartVisualization = new Visualization(); + $dashboardChart->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + $response = $gapicClient->addChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/AddChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($dashboardChart, $actualValue); + $actualValue = $actualRequestObject->getChartLayout(); + $this->assertProtobufEquals($chartLayout, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function addChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $dashboardChart = new DashboardChart(); + $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; + $dashboardChart->setDisplayName($dashboardChartDisplayName); + $dashboardChartVisualization = new Visualization(); + $dashboardChart->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + try { + $gapicClient->addChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new CreateNativeDashboardRequest()) + ->setParent($formattedParent) + ->setNativeDashboard($nativeDashboard); + $response = $gapicClient->createNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/CreateNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNativeDashboard(); + $this->assertProtobufEquals($nativeDashboard, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new CreateNativeDashboardRequest()) + ->setParent($formattedParent) + ->setNativeDashboard($nativeDashboard); + try { + $gapicClient->createNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new DeleteNativeDashboardRequest()) + ->setName($formattedName); + $gapicClient->deleteNativeDashboard($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DeleteNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new DeleteNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new DuplicateChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new DuplicateChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + $response = $gapicClient->duplicateChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DuplicateChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($formattedDashboardChart, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new DuplicateChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + try { + $gapicClient->duplicateChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new DuplicateNativeDashboardRequest()) + ->setName($formattedName) + ->setNativeDashboard($nativeDashboard); + $response = $gapicClient->duplicateNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DuplicateNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getNativeDashboard(); + $this->assertProtobufEquals($nativeDashboard, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function duplicateNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $request = (new DuplicateNativeDashboardRequest()) + ->setName($formattedName) + ->setNativeDashboard($nativeDashboard); + try { + $gapicClient->duplicateNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function editChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new EditChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $editMask = new FieldMask(); + $request = (new EditChartRequest()) + ->setName($formattedName) + ->setEditMask($editMask); + $response = $gapicClient->editChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/EditChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getEditMask(); + $this->assertProtobufEquals($editMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function editChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $editMask = new FieldMask(); + $request = (new EditChartRequest()) + ->setName($formattedName) + ->setEditMask($editMask); + try { + $gapicClient->editChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExportNativeDashboardsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $names = []; + $request = (new ExportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setNames($names); + $response = $gapicClient->exportNativeDashboards($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ExportNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($names, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function exportNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $names = []; + $request = (new ExportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setNames($names); + try { + $gapicClient->exportNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new GetNativeDashboardRequest()) + ->setName($formattedName); + $response = $gapicClient->getNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/GetNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $request = (new GetNativeDashboardRequest()) + ->setName($formattedName); + try { + $gapicClient->getNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ImportNativeDashboardsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $source = new ImportNativeDashboardsInlineSource(); + $sourceDashboards = []; + $source->setDashboards($sourceDashboards); + $request = (new ImportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setSource($source); + $response = $gapicClient->importNativeDashboards($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ImportNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSource(); + $this->assertProtobufEquals($source, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function importNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $source = new ImportNativeDashboardsInlineSource(); + $sourceDashboards = []; + $source->setDashboards($sourceDashboards); + $request = (new ImportNativeDashboardsRequest()) + ->setParent($formattedParent) + ->setSource($source); + try { + $gapicClient->importNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNativeDashboardsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $nativeDashboardsElement = new NativeDashboard(); + $nativeDashboards = [ + $nativeDashboardsElement, + ]; + $expectedResponse = new ListNativeDashboardsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setNativeDashboards($nativeDashboards); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListNativeDashboardsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listNativeDashboards($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getNativeDashboards()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ListNativeDashboards', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNativeDashboardsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListNativeDashboardsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listNativeDashboards($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeChartTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new RemoveChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + $response = $gapicClient->removeChart($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/RemoveChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($formattedDashboardChart, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeChartExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); + $request = (new RemoveChartRequest()) + ->setName($formattedName) + ->setDashboardChart($formattedDashboardChart); + try { + $gapicClient->removeChart($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNativeDashboardTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $createUserId = 'createUserId-1225950772'; + $updateUserId = 'updateUserId-1278348135'; + $etag = 'etag3123477'; + $expectedResponse = new NativeDashboard(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setCreateUserId($createUserId); + $expectedResponse->setUpdateUserId($updateUserId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateNativeDashboardRequest()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateNativeDashboard($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/UpdateNativeDashboard', $actualFuncCall); + $actualValue = $actualRequestObject->getNativeDashboard(); + $this->assertProtobufEquals($nativeDashboard, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNativeDashboardExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nativeDashboard = new NativeDashboard(); + $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; + $nativeDashboard->setDisplayName($nativeDashboardDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateNativeDashboardRequest()) + ->setNativeDashboard($nativeDashboard) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateNativeDashboard($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function addChartAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AddChartResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); + $dashboardChart = new DashboardChart(); + $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; + $dashboardChart->setDisplayName($dashboardChartDisplayName); + $dashboardChartVisualization = new Visualization(); + $dashboardChart->setVisualization($dashboardChartVisualization); + $chartLayout = new ChartLayout(); + $request = (new AddChartRequest()) + ->setName($formattedName) + ->setDashboardChart($dashboardChart) + ->setChartLayout($chartLayout); + $response = $gapicClient->addChartAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/AddChart', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDashboardChart(); + $this->assertProtobufEquals($dashboardChart, $actualValue); + $actualValue = $actualRequestObject->getChartLayout(); + $this->assertProtobufEquals($chartLayout, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php new file mode 100644 index 000000000000..42584fb06abd --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php @@ -0,0 +1,434 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ReferenceListServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ReferenceListServiceClient($options); + } + + /** @test */ + public function createReferenceListTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $referenceListId = 'referenceListId-1667170456'; + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + $response = $gapicClient->createReferenceList($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReferenceList(); + $this->assertProtobufEquals($referenceList, $actualValue); + $actualValue = $actualRequestObject->getReferenceListId(); + $this->assertProtobufEquals($referenceListId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReferenceListExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $referenceListId = 'referenceListId-1667170456'; + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + try { + $gapicClient->createReferenceList($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReferenceListTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); + $request = (new GetReferenceListRequest()) + ->setName($formattedName); + $response = $gapicClient->getReferenceList($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/GetReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReferenceListExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); + $request = (new GetReferenceListRequest()) + ->setName($formattedName); + try { + $gapicClient->getReferenceList($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReferenceListsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $referenceListsElement = new ReferenceList(); + $referenceLists = [ + $referenceListsElement, + ]; + $expectedResponse = new ListReferenceListsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReferenceLists($referenceLists); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListReferenceListsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listReferenceLists($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReferenceLists()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/ListReferenceLists', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReferenceListsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListReferenceListsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listReferenceLists($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReferenceListTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $request = (new UpdateReferenceListRequest()) + ->setReferenceList($referenceList); + $response = $gapicClient->updateReferenceList($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/UpdateReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getReferenceList(); + $this->assertProtobufEquals($referenceList, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReferenceListExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $request = (new UpdateReferenceListRequest()) + ->setReferenceList($referenceList); + try { + $gapicClient->updateReferenceList($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReferenceListAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $ruleAssociationsCount = 1522562875; + $expectedResponse = new ReferenceList(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $referenceList = new ReferenceList(); + $referenceListDescription = 'referenceListDescription-265280077'; + $referenceList->setDescription($referenceListDescription); + $referenceListEntries = []; + $referenceList->setEntries($referenceListEntries); + $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; + $referenceList->setSyntaxType($referenceListSyntaxType); + $referenceListId = 'referenceListId-1667170456'; + $request = (new CreateReferenceListRequest()) + ->setParent($formattedParent) + ->setReferenceList($referenceList) + ->setReferenceListId($referenceListId); + $response = $gapicClient->createReferenceListAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReferenceList(); + $this->assertProtobufEquals($referenceList, $actualValue); + $actualValue = $actualRequestObject->getReferenceListId(); + $this->assertProtobufEquals($referenceListId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php new file mode 100644 index 000000000000..157ee8fd1f14 --- /dev/null +++ b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php @@ -0,0 +1,1100 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return RuleServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new RuleServiceClient($options); + } + + /** @test */ + public function createRetrohuntTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRetrohuntTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $progressPercentage = 4432484; + $expectedResponse = new Retrohunt(); + $expectedResponse->setName($name); + $expectedResponse->setProgressPercentage($progressPercentage); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createRetrohuntTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $retrohunt = new Retrohunt(); + $retrohuntProcessInterval = new Interval(); + $retrohunt->setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + $response = $gapicClient->createRetrohunt($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getRetrohunt(); + $this->assertProtobufEquals($retrohunt, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRetrohuntExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRetrohuntTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $retrohunt = new Retrohunt(); + $retrohuntProcessInterval = new Interval(); + $retrohunt->setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + $response = $gapicClient->createRetrohunt($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $revisionId = 'revisionId513861631'; + $displayName = 'displayName1615086568'; + $text = 'text3556653'; + $author = 'author-1406328437'; + $etag = 'etag3123477'; + $scope = 'scope109264468'; + $nearRealTimeLiveRuleEligible = false; + $expectedResponse = new Rule(); + $expectedResponse->setName($name); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setText($text); + $expectedResponse->setAuthor($author); + $expectedResponse->setEtag($etag); + $expectedResponse->setScope($scope); + $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $rule = new Rule(); + $request = (new CreateRuleRequest()) + ->setParent($formattedParent) + ->setRule($rule); + $response = $gapicClient->createRule($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRule(); + $this->assertProtobufEquals($rule, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $rule = new Rule(); + $request = (new CreateRuleRequest()) + ->setParent($formattedParent) + ->setRule($rule); + try { + $gapicClient->createRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new DeleteRuleRequest()) + ->setName($formattedName); + $gapicClient->deleteRule($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/DeleteRule', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new DeleteRuleRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRetrohuntTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $progressPercentage = 4432484; + $expectedResponse = new Retrohunt(); + $expectedResponse->setName($name2); + $expectedResponse->setProgressPercentage($progressPercentage); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); + $request = (new GetRetrohuntRequest()) + ->setName($formattedName); + $response = $gapicClient->getRetrohunt($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRetrohunt', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRetrohuntExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); + $request = (new GetRetrohuntRequest()) + ->setName($formattedName); + try { + $gapicClient->getRetrohunt($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $revisionId = 'revisionId513861631'; + $displayName = 'displayName1615086568'; + $text = 'text3556653'; + $author = 'author-1406328437'; + $etag = 'etag3123477'; + $scope = 'scope109264468'; + $nearRealTimeLiveRuleEligible = false; + $expectedResponse = new Rule(); + $expectedResponse->setName($name2); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setText($text); + $expectedResponse->setAuthor($author); + $expectedResponse->setEtag($etag); + $expectedResponse->setScope($scope); + $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleRequest()) + ->setName($formattedName); + $response = $gapicClient->getRule($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRule', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleRequest()) + ->setName($formattedName); + try { + $gapicClient->getRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleDeploymentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $enabled = false; + $alerting = true; + $archived = true; + $expectedResponse = new RuleDeployment(); + $expectedResponse->setName($name2); + $expectedResponse->setEnabled($enabled); + $expectedResponse->setAlerting($alerting); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->getRuleDeployment($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRuleDeployment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRuleDeploymentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new GetRuleDeploymentRequest()) + ->setName($formattedName); + try { + $gapicClient->getRuleDeployment($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRetrohuntsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $retrohuntsElement = new Retrohunt(); + $retrohunts = [ + $retrohuntsElement, + ]; + $expectedResponse = new ListRetrohuntsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRetrohunts($retrohunts); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRetrohuntsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRetrohunts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRetrohunts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRetrohunts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRetrohuntsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRetrohuntsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRetrohunts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleDeploymentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $ruleDeploymentsElement = new RuleDeployment(); + $ruleDeployments = [ + $ruleDeploymentsElement, + ]; + $expectedResponse = new ListRuleDeploymentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRuleDeployments($ruleDeployments); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleDeploymentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRuleDeployments($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRuleDeployments()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleDeployments', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleDeploymentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleDeploymentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRuleDeployments($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleRevisionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rulesElement = new Rule(); + $rules = [ + $rulesElement, + ]; + $expectedResponse = new ListRuleRevisionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRules($rules); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleRevisionsRequest()) + ->setName($formattedName); + $response = $gapicClient->listRuleRevisions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleRevisions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRuleRevisionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $request = (new ListRuleRevisionsRequest()) + ->setName($formattedName); + try { + $gapicClient->listRuleRevisions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRulesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rulesElement = new Rule(); + $rules = [ + $rulesElement, + ]; + $expectedResponse = new ListRulesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRules($rules); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListRulesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRules($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRules', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRulesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); + $request = (new ListRulesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRules($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $revisionId = 'revisionId513861631'; + $displayName = 'displayName1615086568'; + $text = 'text3556653'; + $author = 'author-1406328437'; + $etag = 'etag3123477'; + $scope = 'scope109264468'; + $nearRealTimeLiveRuleEligible = false; + $expectedResponse = new Rule(); + $expectedResponse->setName($name); + $expectedResponse->setRevisionId($revisionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setText($text); + $expectedResponse->setAuthor($author); + $expectedResponse->setEtag($etag); + $expectedResponse->setScope($scope); + $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); + $transport->addResponse($expectedResponse); + // Mock request + $rule = new Rule(); + $request = (new UpdateRuleRequest()) + ->setRule($rule); + $response = $gapicClient->updateRule($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getRule(); + $this->assertProtobufEquals($rule, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $rule = new Rule(); + $request = (new UpdateRuleRequest()) + ->setRule($rule); + try { + $gapicClient->updateRule($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleDeploymentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $enabled = false; + $alerting = true; + $archived = true; + $expectedResponse = new RuleDeployment(); + $expectedResponse->setName($name); + $expectedResponse->setEnabled($enabled); + $expectedResponse->setAlerting($alerting); + $expectedResponse->setArchived($archived); + $transport->addResponse($expectedResponse); + // Mock request + $ruleDeployment = new RuleDeployment(); + $ruleDeploymentName = 'ruleDeploymentName648362252'; + $ruleDeployment->setName($ruleDeploymentName); + $updateMask = new FieldMask(); + $request = (new UpdateRuleDeploymentRequest()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateRuleDeployment($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRuleDeployment', $actualFuncCall); + $actualValue = $actualRequestObject->getRuleDeployment(); + $this->assertProtobufEquals($ruleDeployment, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRuleDeploymentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $ruleDeployment = new RuleDeployment(); + $ruleDeploymentName = 'ruleDeploymentName648362252'; + $ruleDeployment->setName($ruleDeploymentName); + $updateMask = new FieldMask(); + $request = (new UpdateRuleDeploymentRequest()) + ->setRuleDeployment($ruleDeployment) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateRuleDeployment($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRetrohuntAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRetrohuntTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $progressPercentage = 4432484; + $expectedResponse = new Retrohunt(); + $expectedResponse->setName($name); + $expectedResponse->setProgressPercentage($progressPercentage); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createRetrohuntTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); + $retrohunt = new Retrohunt(); + $retrohuntProcessInterval = new Interval(); + $retrohunt->setProcessInterval($retrohuntProcessInterval); + $request = (new CreateRetrohuntRequest()) + ->setParent($formattedParent) + ->setRetrohunt($retrohunt); + $response = $gapicClient->createRetrohuntAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getRetrohunt(); + $this->assertProtobufEquals($retrohunt, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} From 13eba892c36d39b3355ce7d9edb3402e87ecb55c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 30 Apr 2026 17:17:14 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../metadata}/V1/BigQueryExport.php | 0 .../get_big_query_export.php | 0 .../provision_big_query_export.php | 0 .../update_big_query_export.php | 0 .../src}/V1/BigQueryExport.php | 0 .../src}/V1/BigQueryExportPackage.php | 0 .../V1/Client/BigQueryExportServiceClient.php | 6 +- .../src}/V1/DataSourceExportSettings.php | 0 .../src}/V1/GetBigQueryExportRequest.php | 0 .../src}/V1/LatestExportJobState.php | 0 .../V1/ProvisionBigQueryExportRequest.php | 0 .../src}/V1/UpdateBigQueryExportRequest.php | 0 Chronicle/src/V1/gapic_metadata.json | 24 + ...ig_query_export_service_client_config.json | 0 ...query_export_service_descriptor_config.php | 0 ...uery_export_service_rest_client_config.php | 0 .../data_table_service_client_config.json | 28 +- .../entity_service_client_config.json | 12 +- .../resources/rule_service_client_config.json | 20 +- .../BigQueryExportServiceClientTest.php | 70 +- .../Cloud/Chronicle/V1/DashboardChart.php | 29 - .../Cloud/Chronicle/V1/DashboardQuery.php | 32 - .../Cloud/Chronicle/V1/DataAccessControl.php | 31 - .../Google/Cloud/Chronicle/V1/DataTable.php | 32 - .../Google/Cloud/Chronicle/V1/Entity.php | 31 - .../Chronicle/V1/FeaturedContentMetadata.php | 26 - .../V1/FeaturedContentNativeDashboard.php | 30 - .../Google/Cloud/Chronicle/V1/Instance.php | 28 - .../Cloud/Chronicle/V1/NativeDashboard.php | 34 - .../Cloud/Chronicle/V1/ReferenceList.php | 30 - .../Google/Cloud/Chronicle/V1/Rule.php | 33 - .../Cloud/Chronicle/V1/AddChartRequest.php | 227 ---- .../Cloud/Chronicle/V1/AddChartResponse.php | 121 -- .../Chronicle/V1/AdvancedFilterConfig.php | 339 ----- .../V1/AdvancedFilterConfig/ManualOptions.php | 71 - .../V1/AdvancedFilterConfig/QueryOptions.php | 184 --- .../V1/AdvancedFilterConfig/ValueSource.php | 111 -- .../Google/Cloud/Chronicle/V1/AxisType.php | 63 - .../V1/BatchGetDashboardChartsRequest.php | 138 -- .../V1/BatchGetDashboardChartsResponse.php | 67 - .../V1/BulkCreateDataTableRowsRequest.php | 137 -- .../V1/BulkCreateDataTableRowsResponse.php | 67 - .../V1/BulkGetDataTableRowsRequest.php | 132 -- .../V1/BulkGetDataTableRowsResponse.php | 67 - .../V1/BulkReplaceDataTableRowsRequest.php | 142 -- .../V1/BulkReplaceDataTableRowsResponse.php | 67 - .../V1/BulkUpdateDataTableRowsRequest.php | 132 -- .../V1/BulkUpdateDataTableRowsResponse.php | 67 - .../src/Google/Cloud/Chronicle/V1/Button.php | 185 --- .../Cloud/Chronicle/V1/Button/Properties.php | 85 -- .../Google/Cloud/Chronicle/V1/ButtonStyle.php | 58 - .../Cloud/Chronicle/V1/ColumnMetadata.php | 383 ------ .../Chronicle/V1/CompilationDiagnostic.php | 193 --- .../V1/CompilationDiagnostic/Severity.php | 61 - .../Chronicle/V1/CompilationPosition.php | 170 --- .../V1/CreateDataAccessLabelRequest.php | 183 --- .../V1/CreateDataAccessScopeRequest.php | 178 --- .../Chronicle/V1/CreateDataTableRequest.php | 188 --- .../V1/CreateDataTableRowRequest.php | 137 -- .../V1/CreateNativeDashboardRequest.php | 132 -- .../V1/CreateReferenceListRequest.php | 193 --- .../Chronicle/V1/CreateRetrohuntRequest.php | 137 -- .../Cloud/Chronicle/V1/CreateRuleRequest.php | 132 -- .../Chronicle/V1/CreateWatchlistRequest.php | 184 --- .../Cloud/Chronicle/V1/DashboardAccess.php | 61 - .../Cloud/Chronicle/V1/DashboardChart.php | 431 ------ .../V1/DashboardChart/ChartDatasource.php | 101 -- .../V1/DashboardChart/DrillDownConfig.php | 101 -- .../DrillDownConfig/DrillDown.php | 176 --- .../DrillDown/CustomDrillDownSettings.php | 213 --- .../DrillDownExternalLink.php | 101 -- .../DrillDownFilter.php | 67 - .../DrillDownDashboardFilter.php | 105 -- .../DrillDownQuery.php | 67 - .../DrillDown/DefaultDrillDownSettings.php | 67 - .../V1/DashboardChart/Visualization.php | 533 -------- .../V1/DashboardChart/Visualization/Axis.php | 181 --- .../Visualization/ColumnDef.php | 101 -- .../ColumnRenderTypeSettings.php | 102 -- .../Visualization/ColumnTooltipSettings.php | 135 -- .../Visualization/GoogleMapsConfig.php | 203 --- .../GoogleMapsConfig/DataSettings.php | 135 -- .../GoogleMapsConfig/MapPosition.php | 177 --- .../GoogleMapsConfig/PointSettings.php | 105 -- .../DashboardChart/Visualization/Legend.php | 328 ----- .../DashboardChart/Visualization/Series.php | 627 --------- .../Visualization/Series/AreaStyle.php | 271 ---- .../Visualization/Series/ChartSliceColor.php | 111 -- .../Visualization/Series/DataLabel.php | 67 - .../Visualization/Series/Encode.php | 161 --- .../Visualization/Series/GaugeConfig.php | 155 --- .../Visualization/Series/GaugeValue.php | 101 -- .../Visualization/Series/ItemColors.php | 67 - .../Visualization/Series/ItemStyle.php | 135 -- .../Series/MetricTrendConfig.php | 177 --- .../Series/UserSelectedValues.php | 101 -- .../Visualization/TableConfig.php | 135 -- .../DashboardChart/Visualization/Tooltip.php | 85 -- .../Visualization/VisualMap.php | 106 -- .../VisualMap/VisualMapPiece.php | 194 --- .../Chronicle/V1/DashboardDefinition.php | 136 -- .../V1/DashboardDefinition/ChartConfig.php | 131 -- .../ChartConfig/ChartLayout.php | 161 --- .../Cloud/Chronicle/V1/DashboardFilter.php | 410 ------ .../Cloud/Chronicle/V1/DashboardQuery.php | 221 ---- .../Chronicle/V1/DashboardQuery/Input.php | 108 -- .../V1/DashboardQuery/Input/RelativeTime.php | 87 -- .../Cloud/Chronicle/V1/DashboardType.php | 86 -- .../Cloud/Chronicle/V1/DashboardUserData.php | 111 -- .../Cloud/Chronicle/V1/DataAccessLabel.php | 337 ----- .../Chronicle/V1/DataAccessLabelReference.php | 227 ---- .../Cloud/Chronicle/V1/DataAccessScope.php | 470 ------- .../Google/Cloud/Chronicle/V1/DataSource.php | 143 -- .../Google/Cloud/Chronicle/V1/DataTable.php | 585 -------- .../Chronicle/V1/DataTableColumnInfo.php | 274 ---- .../DataTableColumnType.php | 76 -- .../Chronicle/V1/DataTableOperationErrors.php | 113 -- .../Cloud/Chronicle/V1/DataTableRow.php | 235 ---- .../Cloud/Chronicle/V1/DataTableScopeInfo.php | 79 -- .../Chronicle/V1/DataTableUpdateSource.php | 68 - .../V1/DeleteDataAccessLabelRequest.php | 91 -- .../V1/DeleteDataAccessScopeRequest.php | 91 -- .../Chronicle/V1/DeleteDataTableRequest.php | 137 -- .../V1/DeleteDataTableRowRequest.php | 91 -- .../V1/DeleteNativeDashboardRequest.php | 91 -- .../Cloud/Chronicle/V1/DeleteRuleRequest.php | 151 --- .../Chronicle/V1/DeleteWatchlistRequest.php | 137 -- .../Chronicle/V1/DuplicateChartRequest.php | 125 -- .../Chronicle/V1/DuplicateChartResponse.php | 121 -- .../V1/DuplicateNativeDashboardRequest.php | 142 -- .../Cloud/Chronicle/V1/EditChartRequest.php | 318 ----- .../Cloud/Chronicle/V1/EditChartResponse.php | 121 -- .../V1/ExecuteDashboardQueryRequest.php | 257 ---- .../V1/ExecuteDashboardQueryResponse.php | 261 ---- .../ColumnData.php | 143 -- .../ColumnType.php | 108 -- .../ColumnType/PBList.php | 60 - .../ColumnValue.php | 410 ------ .../ColumnValue/ValueMetadata.php | 140 -- .../V1/ExportNativeDashboardsRequest.php | 122 -- .../V1/ExportNativeDashboardsResponse.php | 75 -- .../Chronicle/V1/FeaturedContentMetadata.php | 445 ------- .../ContentSourceType.php | 68 - .../V1/FeaturedContentNativeDashboard.php | 163 --- .../Cloud/Chronicle/V1/FilterOperator.php | 139 -- .../Chronicle/V1/FilterOperatorAndValues.php | 107 -- .../Chronicle/V1/GetDashboardChartRequest.php | 91 -- .../Chronicle/V1/GetDashboardQueryRequest.php | 91 -- .../V1/GetDataAccessLabelRequest.php | 91 -- .../V1/GetDataAccessScopeRequest.php | 91 -- .../V1/GetDataTableOperationErrorsRequest.php | 91 -- .../Chronicle/V1/GetDataTableRequest.php | 91 -- .../Chronicle/V1/GetDataTableRowRequest.php | 91 -- ...tFeaturedContentNativeDashboardRequest.php | 91 -- .../Cloud/Chronicle/V1/GetInstanceRequest.php | 91 -- .../V1/GetNativeDashboardRequest.php | 129 -- .../Chronicle/V1/GetReferenceListRequest.php | 129 -- .../Chronicle/V1/GetRetrohuntRequest.php | 91 -- .../Chronicle/V1/GetRuleDeploymentRequest.php | 91 -- .../Cloud/Chronicle/V1/GetRuleRequest.php | 129 -- .../Chronicle/V1/GetWatchlistRequest.php | 96 -- .../Cloud/Chronicle/V1/ImportExportStatus.php | 111 -- .../V1/ImportNativeDashboardsInlineSource.php | 67 - .../V1/ImportNativeDashboardsRequest.php | 132 -- .../V1/ImportNativeDashboardsResponse.php | 91 -- .../Google/Cloud/Chronicle/V1/InAppLink.php | 135 -- .../Cloud/Chronicle/V1/IngestionLabel.php | 109 -- .../Cloud/Chronicle/V1/InlineDestination.php | 67 - .../Google/Cloud/Chronicle/V1/InputsUsed.php | 137 -- ...lFeaturedContentNativeDashboardRequest.php | 135 -- ...FeaturedContentNativeDashboardResponse.php | 75 -- .../Google/Cloud/Chronicle/V1/Instance.php | 71 - .../Cloud/Chronicle/V1/LanguageFeature.php | 70 - .../Google/Cloud/Chronicle/V1/LegendAlign.php | 58 - .../Cloud/Chronicle/V1/LegendOrient.php | 53 - .../V1/ListDataAccessLabelsRequest.php | 220 --- .../V1/ListDataAccessLabelsResponse.php | 105 -- .../V1/ListDataAccessScopesRequest.php | 220 --- .../V1/ListDataAccessScopesResponse.php | 149 --- .../Chronicle/V1/ListDataTableRowsRequest.php | 247 ---- .../V1/ListDataTableRowsResponse.php | 105 -- .../Chronicle/V1/ListDataTablesRequest.php | 220 --- .../Chronicle/V1/ListDataTablesResponse.php | 105 -- ...FeaturedContentNativeDashboardsRequest.php | 277 ---- ...eaturedContentNativeDashboardsResponse.php | 109 -- .../V1/ListNativeDashboardsRequest.php | 208 --- .../V1/ListNativeDashboardsResponse.php | 105 -- .../V1/ListReferenceListsRequest.php | 221 ---- .../V1/ListReferenceListsResponse.php | 109 -- .../Chronicle/V1/ListRetrohuntsRequest.php | 225 ---- .../Chronicle/V1/ListRetrohuntsResponse.php | 105 -- .../V1/ListRuleDeploymentsRequest.php | 230 ---- .../V1/ListRuleDeploymentsResponse.php | 105 -- .../Chronicle/V1/ListRuleRevisionsRequest.php | 221 ---- .../V1/ListRuleRevisionsResponse.php | 105 -- .../Cloud/Chronicle/V1/ListRulesRequest.php | 263 ---- .../Cloud/Chronicle/V1/ListRulesResponse.php | 105 -- .../Chronicle/V1/ListWatchlistsRequest.php | 232 ---- .../Chronicle/V1/ListWatchlistsResponse.php | 105 -- .../Google/Cloud/Chronicle/V1/Markdown.php | 111 -- .../V1/Markdown/MarkdownProperties.php | 67 - .../Cloud/Chronicle/V1/MetricDisplayTrend.php | 68 - .../Cloud/Chronicle/V1/MetricFormat.php | 61 - .../Cloud/Chronicle/V1/MetricTrendType.php | 61 - .../Cloud/Chronicle/V1/NativeDashboard.php | 493 ------- .../Chronicle/V1/NativeDashboardView.php | 62 - .../NativeDashboardWithChartsAndQueries.php | 145 -- .../Google/Cloud/Chronicle/V1/PlotMode.php | 68 - .../Cloud/Chronicle/V1/PointSizeType.php | 61 - .../Cloud/Chronicle/V1/QueryRuntimeError.php | 203 --- .../V1/QueryRuntimeError/ErrorSeverity.php | 61 - .../V1/QueryRuntimeError/MetadataKey.php | 54 - .../QueryRuntimeErrorMetadata.php | 101 -- .../V1/QueryRuntimeError/WarningReason.php | 68 - .../Cloud/Chronicle/V1/ReferenceList.php | 409 ------ .../Cloud/Chronicle/V1/ReferenceListEntry.php | 67 - .../Cloud/Chronicle/V1/ReferenceListScope.php | 75 -- .../Chronicle/V1/ReferenceListSyntaxType.php | 68 - .../Cloud/Chronicle/V1/ReferenceListView.php | 67 - .../Cloud/Chronicle/V1/RemoveChartRequest.php | 125 -- .../Google/Cloud/Chronicle/V1/RenderType.php | 68 - .../Google/Cloud/Chronicle/V1/Retrohunt.php | 255 ---- .../Cloud/Chronicle/V1/Retrohunt/State.php | 75 -- .../Cloud/Chronicle/V1/RetrohuntMetadata.php | 157 --- .../src/Google/Cloud/Chronicle/V1/Rule.php | 810 ------------ .../Chronicle/V1/Rule/CompilationState.php | 63 - .../Cloud/Chronicle/V1/RuleDeployment.php | 477 ------- .../V1/RuleDeployment/ExecutionState.php | 72 - .../Google/Cloud/Chronicle/V1/RuleType.php | 62 - .../Google/Cloud/Chronicle/V1/RuleView.php | 77 -- .../Cloud/Chronicle/V1/RunFrequency.php | 69 - .../Google/Cloud/Chronicle/V1/ScopeInfo.php | 81 -- .../Chronicle/V1/SeriesStackStrategy.php | 63 - .../Google/Cloud/Chronicle/V1/SeriesType.php | 84 -- .../Google/Cloud/Chronicle/V1/Severity.php | 71 - .../Google/Cloud/Chronicle/V1/TileType.php | 69 - .../Google/Cloud/Chronicle/V1/TimeUnit.php | 82 -- .../Cloud/Chronicle/V1/TimestampMetadata.php | 203 --- .../Cloud/Chronicle/V1/ToolTipTrigger.php | 58 - .../V1/UpdateDataAccessLabelRequest.php | 167 --- .../V1/UpdateDataAccessScopeRequest.php | 172 --- .../Chronicle/V1/UpdateDataTableRequest.php | 161 --- .../V1/UpdateDataTableRowRequest.php | 156 --- .../V1/UpdateNativeDashboardRequest.php | 197 --- .../V1/UpdateReferenceListRequest.php | 167 --- .../V1/UpdateRuleDeploymentRequest.php | 152 --- .../Cloud/Chronicle/V1/UpdateRuleRequest.php | 157 --- .../Chronicle/V1/UpdateWatchlistRequest.php | 152 --- .../Cloud/Chronicle/V1/VisualMapType.php | 62 - .../Google/Cloud/Chronicle/V1/Watchlist.php | 414 ------ .../Chronicle/V1/Watchlist/EntityCount.php | 101 -- .../Watchlist/EntityPopulationMechanism.php | 75 -- .../EntityPopulationMechanism/Manual.php | 33 - .../Chronicle/V1/WatchlistUserPreferences.php | 67 - .../batch_get_dashboard_charts.php | 91 -- .../get_dashboard_chart.php | 78 -- .../execute_dashboard_query.php | 85 -- .../get_dashboard_query.php | 78 -- .../create_data_access_label.php | 89 -- .../create_data_access_scope.php | 105 -- .../delete_data_access_label.php | 78 -- .../delete_data_access_scope.php | 76 -- .../get_data_access_label.php | 78 -- .../get_data_access_scope.php | 78 -- .../list_data_access_labels.php | 81 -- .../list_data_access_scopes.php | 81 -- .../update_data_access_label.php | 59 - .../update_data_access_scope.php | 79 -- .../bulk_create_data_table_rows.php | 108 -- .../bulk_get_data_table_rows.php | 96 -- .../bulk_replace_data_table_rows.php | 108 -- .../bulk_update_data_table_rows.php | 92 -- .../create_data_table.php | 87 -- .../create_data_table_row.php | 87 -- .../delete_data_table.php | 76 -- .../delete_data_table_row.php | 77 -- .../DataTableServiceClient/get_data_table.php | 78 -- .../get_data_table_operation_errors.php | 78 -- .../get_data_table_row.php | 79 -- .../list_data_table_rows.php | 83 -- .../list_data_tables.php | 77 -- .../update_data_table.php | 72 - .../update_data_table_row.php | 74 -- .../EntityServiceClient/create_watchlist.php | 83 -- .../EntityServiceClient/delete_watchlist.php | 76 -- .../V1/EntityServiceClient/get_watchlist.php | 79 -- .../EntityServiceClient/list_watchlists.php | 77 -- .../EntityServiceClient/update_watchlist.php | 77 -- .../get_featured_content_native_dashboard.php | 80 -- ...tall_featured_content_native_dashboard.php | 80 -- ...ist_featured_content_native_dashboards.php | 84 -- .../V1/InstanceServiceClient/get_instance.php | 73 - .../add_chart.php | 90 -- .../create_native_dashboard.php | 83 -- .../delete_native_dashboard.php | 76 -- .../duplicate_chart.php | 87 -- .../duplicate_native_dashboard.php | 85 -- .../edit_chart.php | 81 -- .../export_native_dashboards.php | 80 -- .../get_native_dashboard.php | 78 -- .../import_native_dashboards.php | 82 -- .../list_native_dashboards.php | 81 -- .../remove_chart.php | 87 -- .../update_native_dashboard.php | 75 -- .../create_reference_list.php | 111 -- .../get_reference_list.php | 78 -- .../list_reference_lists.php | 82 -- .../update_reference_list.php | 90 -- .../V1/RuleServiceClient/create_retrohunt.php | 90 -- .../V1/RuleServiceClient/create_rule.php | 74 -- .../V1/RuleServiceClient/delete_rule.php | 73 - .../V1/RuleServiceClient/get_retrohunt.php | 79 -- .../samples/V1/RuleServiceClient/get_rule.php | 73 - .../RuleServiceClient/get_rule_deployment.php | 78 -- .../V1/RuleServiceClient/list_retrohunts.php | 78 -- .../list_rule_deployments.php | 79 -- .../RuleServiceClient/list_rule_revisions.php | 78 -- .../V1/RuleServiceClient/list_rules.php | 78 -- .../V1/RuleServiceClient/update_rule.php | 59 - .../update_rule_deployment.php | 83 -- .../V1/Client/DashboardChartServiceClient.php | 310 ----- .../V1/Client/DashboardQueryServiceClient.php | 332 ----- .../Client/DataAccessControlServiceClient.php | 572 -------- .../src/V1/Client/DataTableServiceClient.php | 747 ----------- .../v1/src/V1/Client/EntityServiceClient.php | 389 ------ ...redContentNativeDashboardServiceClient.php | 431 ------ .../src/V1/Client/InstanceServiceClient.php | 255 ---- .../Client/NativeDashboardServiceClient.php | 644 --------- .../V1/Client/ReferenceListServiceClient.php | 366 ----- .../v1/src/V1/Client/RuleServiceClient.php | 733 ---------- .../Chronicle/v1/src/V1/gapic_metadata.json | 453 ------- ...dashboard_chart_service_client_config.json | 44 - ...hboard_chart_service_descriptor_config.php | 56 - ...board_chart_service_rest_client_config.php | 98 -- ...dashboard_query_service_client_config.json | 54 - ...hboard_query_service_descriptor_config.php | 57 - ...board_query_service_rest_client_config.php | 99 -- ..._access_control_service_client_config.json | 94 -- ...cess_control_service_descriptor_config.php | 171 --- ...ess_control_service_rest_client_config.php | 198 --- .../data_table_service_client_config.json | 119 -- .../data_table_service_descriptor_config.php | 233 ---- .../data_table_service_rest_client_config.php | 254 ---- .../entity_service_client_config.json | 69 - .../entity_service_descriptor_config.php | 101 -- .../entity_service_rest_client_config.php | 134 -- ...ative_dashboard_service_client_config.json | 59 - ...ve_dashboard_service_descriptor_config.php | 80 -- ...e_dashboard_service_rest_client_config.php | 110 -- .../instance_service_client_config.json | 39 - .../instance_service_descriptor_config.php | 43 - .../instance_service_rest_client_config.php | 87 -- ...ative_dashboard_service_client_config.json | 104 -- ...ve_dashboard_service_descriptor_config.php | 187 --- ...e_dashboard_service_rest_client_config.php | 221 ---- .../reference_list_service_client_config.json | 64 - ...ference_list_service_descriptor_config.php | 89 -- ...erence_list_service_rest_client_config.php | 126 -- .../resources/rule_service_client_config.json | 126 -- .../rule_service_descriptor_config.php | 221 ---- .../rule_service_rest_client_config.php | 217 --- .../DashboardChartServiceClientTest.php | 241 ---- .../DashboardQueryServiceClientTest.php | 246 ---- .../DataAccessControlServiceClientTest.php | 866 ------------ .../V1/Client/DataTableServiceClientTest.php | 1178 ----------------- .../V1/Client/EntityServiceClientTest.php | 477 ------- ...ontentNativeDashboardServiceClientTest.php | 295 ----- .../V1/Client/InstanceServiceClientTest.php | 155 --- .../NativeDashboardServiceClientTest.php | 1021 -------------- .../Client/ReferenceListServiceClientTest.php | 434 ------ .../Unit/V1/Client/RuleServiceClientTest.php | 1100 --------------- 371 files changed, 95 insertions(+), 53986 deletions(-) rename {owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle => Chronicle/metadata}/V1/BigQueryExport.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/BigQueryExportServiceClient/get_big_query_export.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/samples/V1/BigQueryExportServiceClient/update_big_query_export.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/BigQueryExport.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/BigQueryExportPackage.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/Client/BigQueryExportServiceClient.php (99%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/DataSourceExportSettings.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/GetBigQueryExportRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/LatestExportJobState.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/ProvisionBigQueryExportRequest.php (100%) rename {owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle => Chronicle/src}/V1/UpdateBigQueryExportRequest.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/big_query_export_service_client_config.json (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/big_query_export_service_descriptor_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/src/V1/resources/big_query_export_service_rest_client_config.php (100%) rename {owl-bot-staging/Chronicle/v1 => Chronicle}/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php (87%) delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/NativeDashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php delete mode 100644 owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php delete mode 100644 owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php delete mode 100644 owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/BigQueryExport.php b/Chronicle/metadata/V1/BigQueryExport.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/BigQueryExport.php rename to Chronicle/metadata/V1/BigQueryExport.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/get_big_query_export.php b/Chronicle/samples/V1/BigQueryExportServiceClient/get_big_query_export.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/get_big_query_export.php rename to Chronicle/samples/V1/BigQueryExportServiceClient/get_big_query_export.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php b/Chronicle/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php rename to Chronicle/samples/V1/BigQueryExportServiceClient/provision_big_query_export.php diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/update_big_query_export.php b/Chronicle/samples/V1/BigQueryExportServiceClient/update_big_query_export.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/samples/V1/BigQueryExportServiceClient/update_big_query_export.php rename to Chronicle/samples/V1/BigQueryExportServiceClient/update_big_query_export.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExport.php b/Chronicle/src/V1/BigQueryExport.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExport.php rename to Chronicle/src/V1/BigQueryExport.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExportPackage.php b/Chronicle/src/V1/BigQueryExportPackage.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BigQueryExportPackage.php rename to Chronicle/src/V1/BigQueryExportPackage.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/BigQueryExportServiceClient.php b/Chronicle/src/V1/Client/BigQueryExportServiceClient.php similarity index 99% rename from owl-bot-staging/Chronicle/v1/src/V1/Client/BigQueryExportServiceClient.php rename to Chronicle/src/V1/Client/BigQueryExportServiceClient.php index e1ef360b650d..1eb02b4a2bca 100644 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/BigQueryExportServiceClient.php +++ b/Chronicle/src/V1/Client/BigQueryExportServiceClient.php @@ -304,8 +304,10 @@ public function getBigQueryExport(GetBigQueryExportRequest $request, array $call * * @throws ApiException Thrown if the API call fails. */ - public function provisionBigQueryExport(ProvisionBigQueryExportRequest $request, array $callOptions = []): BigQueryExport - { + public function provisionBigQueryExport( + ProvisionBigQueryExportRequest $request, + array $callOptions = [] + ): BigQueryExport { return $this->startApiCall('ProvisionBigQueryExport', $request, $callOptions)->wait(); } diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSourceExportSettings.php b/Chronicle/src/V1/DataSourceExportSettings.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSourceExportSettings.php rename to Chronicle/src/V1/DataSourceExportSettings.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetBigQueryExportRequest.php b/Chronicle/src/V1/GetBigQueryExportRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetBigQueryExportRequest.php rename to Chronicle/src/V1/GetBigQueryExportRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LatestExportJobState.php b/Chronicle/src/V1/LatestExportJobState.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LatestExportJobState.php rename to Chronicle/src/V1/LatestExportJobState.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ProvisionBigQueryExportRequest.php b/Chronicle/src/V1/ProvisionBigQueryExportRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ProvisionBigQueryExportRequest.php rename to Chronicle/src/V1/ProvisionBigQueryExportRequest.php diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateBigQueryExportRequest.php b/Chronicle/src/V1/UpdateBigQueryExportRequest.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateBigQueryExportRequest.php rename to Chronicle/src/V1/UpdateBigQueryExportRequest.php diff --git a/Chronicle/src/V1/gapic_metadata.json b/Chronicle/src/V1/gapic_metadata.json index 90cfa612edbc..72ec1f023606 100644 --- a/Chronicle/src/V1/gapic_metadata.json +++ b/Chronicle/src/V1/gapic_metadata.json @@ -5,6 +5,30 @@ "protoPackage": "google.cloud.chronicle.v1", "libraryPackage": "Google\\Cloud\\Chronicle\\V1", "services": { + "BigQueryExportService": { + "clients": { + "grpc": { + "libraryClient": "BigQueryExportServiceGapicClient", + "rpcs": { + "GetBigQueryExport": { + "methods": [ + "getBigQueryExport" + ] + }, + "ProvisionBigQueryExport": { + "methods": [ + "provisionBigQueryExport" + ] + }, + "UpdateBigQueryExport": { + "methods": [ + "updateBigQueryExport" + ] + } + } + } + } + }, "DashboardQueryService": { "clients": { "grpc": { diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_client_config.json b/Chronicle/src/V1/resources/big_query_export_service_client_config.json similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_client_config.json rename to Chronicle/src/V1/resources/big_query_export_service_client_config.json diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_descriptor_config.php b/Chronicle/src/V1/resources/big_query_export_service_descriptor_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_descriptor_config.php rename to Chronicle/src/V1/resources/big_query_export_service_descriptor_config.php diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_rest_client_config.php b/Chronicle/src/V1/resources/big_query_export_service_rest_client_config.php similarity index 100% rename from owl-bot-staging/Chronicle/v1/src/V1/resources/big_query_export_service_rest_client_config.php rename to Chronicle/src/V1/resources/big_query_export_service_rest_client_config.php diff --git a/Chronicle/src/V1/resources/data_table_service_client_config.json b/Chronicle/src/V1/resources/data_table_service_client_config.json index 6919c5f205c8..2aca06ccfede 100644 --- a/Chronicle/src/V1/resources/data_table_service_client_config.json +++ b/Chronicle/src/V1/resources/data_table_service_client_config.json @@ -3,7 +3,7 @@ "google.cloud.chronicle.v1.DataTableService": { "retry_codes": { "no_retry_codes": [], - "retry_policy_4_codes": [ + "retry_policy_5_codes": [ "UNAVAILABLE" ], "no_retry_5_codes": [] @@ -18,7 +18,7 @@ "max_rpc_timeout_millis": 0, "total_timeout_millis": 0 }, - "retry_policy_4_params": { + "retry_policy_5_params": { "initial_retry_delay_millis": 1000, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, @@ -45,8 +45,8 @@ }, "BulkGetDataTableRows": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" }, "BulkReplaceDataTableRows": { "timeout_millis": 600000, @@ -80,28 +80,28 @@ }, "GetDataTable": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" }, "GetDataTableOperationErrors": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" }, "GetDataTableRow": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" }, "ListDataTableRows": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" }, "ListDataTables": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" }, "UpdateDataTable": { "timeout_millis": 600000, diff --git a/Chronicle/src/V1/resources/entity_service_client_config.json b/Chronicle/src/V1/resources/entity_service_client_config.json index 393bd5ff80f5..5eda360a775b 100644 --- a/Chronicle/src/V1/resources/entity_service_client_config.json +++ b/Chronicle/src/V1/resources/entity_service_client_config.json @@ -3,7 +3,7 @@ "google.cloud.chronicle.v1.EntityService": { "retry_codes": { "no_retry_codes": [], - "retry_policy_2_codes": [ + "retry_policy_3_codes": [ "UNAVAILABLE" ], "no_retry_4_codes": [] @@ -18,7 +18,7 @@ "max_rpc_timeout_millis": 0, "total_timeout_millis": 0 }, - "retry_policy_2_params": { + "retry_policy_3_params": { "initial_retry_delay_millis": 1000, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 90000, @@ -50,13 +50,13 @@ }, "GetWatchlist": { "timeout_millis": 90000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" }, "ListWatchlists": { "timeout_millis": 90000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" }, "UpdateWatchlist": { "timeout_millis": 90000, diff --git a/Chronicle/src/V1/resources/rule_service_client_config.json b/Chronicle/src/V1/resources/rule_service_client_config.json index 8bed0b79f6bd..46102ab67fdf 100644 --- a/Chronicle/src/V1/resources/rule_service_client_config.json +++ b/Chronicle/src/V1/resources/rule_service_client_config.json @@ -6,7 +6,7 @@ "retry_policy_1_codes": [ "UNAVAILABLE" ], - "retry_policy_3_codes": [ + "retry_policy_4_codes": [ "UNAVAILABLE" ], "no_retry_2_codes": [], @@ -31,7 +31,7 @@ "max_rpc_timeout_millis": 60000, "total_timeout_millis": 60000 }, - "retry_policy_3_params": { + "retry_policy_4_params": { "initial_retry_delay_millis": 1000, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 600000, @@ -87,8 +87,8 @@ }, "GetRuleDeployment": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" }, "ListRetrohunts": { "timeout_millis": 60000, @@ -97,18 +97,18 @@ }, "ListRuleDeployments": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" }, "ListRuleRevisions": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" }, "ListRules": { "timeout_millis": 600000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" }, "UpdateRule": { "timeout_millis": 600000, diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php b/Chronicle/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php similarity index 87% rename from owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php rename to Chronicle/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php index 300ab08f88b7..d910de780a62 100644 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php +++ b/Chronicle/tests/Unit/V1/Client/BigQueryExportServiceClientTest.php @@ -50,7 +50,9 @@ private function createTransport($deserialize = null) /** @return CredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return $this->getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); } /** @return BigQueryExportServiceClient */ @@ -79,8 +81,7 @@ public function getBigQueryExportTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->bigQueryExportName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetBigQueryExportRequest()) - ->setName($formattedName); + $request = (new GetBigQueryExportRequest())->setName($formattedName); $response = $gapicClient->getBigQueryExport($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -104,17 +105,19 @@ public function getBigQueryExportExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->bigQueryExportName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetBigQueryExportRequest()) - ->setName($formattedName); + $request = (new GetBigQueryExportRequest())->setName($formattedName); try { $gapicClient->getBigQueryExport($request); // If the $gapicClient method call did not throw, fail the test @@ -145,8 +148,7 @@ public function provisionBigQueryExportTest() $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ProvisionBigQueryExportRequest()) - ->setParent($formattedParent); + $request = (new ProvisionBigQueryExportRequest())->setParent($formattedParent); $response = $gapicClient->provisionBigQueryExport($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -170,17 +172,19 @@ public function provisionBigQueryExportExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ProvisionBigQueryExportRequest()) - ->setParent($formattedParent); + $request = (new ProvisionBigQueryExportRequest())->setParent($formattedParent); try { $gapicClient->provisionBigQueryExport($request); // If the $gapicClient method call did not throw, fail the test @@ -211,8 +215,7 @@ public function updateBigQueryExportTest() $transport->addResponse($expectedResponse); // Mock request $bigQueryExport = new BigQueryExport(); - $request = (new UpdateBigQueryExportRequest()) - ->setBigQueryExport($bigQueryExport); + $request = (new UpdateBigQueryExportRequest())->setBigQueryExport($bigQueryExport); $response = $gapicClient->updateBigQueryExport($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); @@ -236,17 +239,19 @@ public function updateBigQueryExportExceptionTest() $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); $transport->addResponse(null, $status); // Mock request $bigQueryExport = new BigQueryExport(); - $request = (new UpdateBigQueryExportRequest()) - ->setBigQueryExport($bigQueryExport); + $request = (new UpdateBigQueryExportRequest())->setBigQueryExport($bigQueryExport); try { $gapicClient->updateBigQueryExport($request); // If the $gapicClient method call did not throw, fail the test @@ -277,8 +282,7 @@ public function getBigQueryExportAsyncTest() $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->bigQueryExportName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetBigQueryExportRequest()) - ->setName($formattedName); + $request = (new GetBigQueryExportRequest())->setName($formattedName); $response = $gapicClient->getBigQueryExportAsync($request)->wait(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php deleted file mode 100644 index e57de8719a47..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardChart.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD4Y\x0A/google/cloud/chronicle/v1/dashboard_chart.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A/google/cloud/chronicle/v1/dashboard_query.proto\"\xFD=\x0A\x0EDashboardChart\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12J\x0A\x10native_dashboard\x18\x04 \x01(\x09B0\xE0A\x03\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12;\x0A\x09tile_type\x18\x07 \x01(\x0E2#.google.cloud.chronicle.v1.TileTypeB\x03\xE0A\x01\x12X\x0A\x10chart_datasource\x18\x05 \x01(\x0B29.google.cloud.chronicle.v1.DashboardChart.ChartDatasourceB\x03\xE0A\x01\x12S\x0A\x0Dvisualization\x18\x06 \x01(\x0B27.google.cloud.chronicle.v1.DashboardChart.VisualizationB\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11drill_down_config\x18\x09 \x01(\x0B29.google.cloud.chronicle.v1.DashboardChart.DrillDownConfigB\x03\xE0A\x01\x12\x13\x0A\x06tokens\x18\x0A \x03(\x09B\x03\xE0A\x01\x1A\x95\x01\x0A\x0FChartDatasource\x12E\x0A\x0Fdashboard_query\x18\x01 \x01(\x09B,\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\x12;\x0A\x0Cdata_sources\x18\x03 \x03(\x0E2%.google.cloud.chronicle.v1.DataSource\x1A\x8C+\x0A\x0DVisualization\x12L\x0A\x06x_axes\x18\x07 \x03(\x0B2<.google.cloud.chronicle.v1.DashboardChart.Visualization.Axis\x12L\x0A\x06y_axes\x18\x08 \x03(\x0B2<.google.cloud.chronicle.v1.DashboardChart.Visualization.Axis\x12N\x0A\x06series\x18\x03 \x03(\x0B2>.google.cloud.chronicle.v1.DashboardChart.Visualization.Series\x12P\x0A\x07tooltip\x18\x04 \x01(\x0B2?.google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip\x12O\x0A\x07legends\x18\x09 \x03(\x0B2>.google.cloud.chronicle.v1.DashboardChart.Visualization.Legend\x12V\x0A\x0Bcolumn_defs\x18\x0A \x03(\x0B2A.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef\x12^\x0A\x0Ctable_config\x18\x12 \x01(\x0B2C.google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfigB\x03\xE0A\x01\x121\x0A\x06button\x18\x0B \x01(\x0B2!.google.cloud.chronicle.v1.Button\x12:\x0A\x08markdown\x18\x11 \x01(\x0B2#.google.cloud.chronicle.v1.MarkdownB\x03\xE0A\x01\x12\x1A\x0A\x0Dseries_column\x18\x0C \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dgrouping_type\x18\x0D \x01(\x09B\x03\xE0A\x01\x12i\x0A\x12google_maps_config\x18\x0E \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfigB\x03\xE0A\x01\x12'\x0A\x1Athreshold_coloring_enabled\x18\x0F \x01(\x08B\x03\xE0A\x01\x12[\x0A\x0Bvisual_maps\x18\x10 \x03(\x0B2A.google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMapB\x03\xE0A\x01\x1A\x88\x01\x0A\x04Axis\x126\x0A\x09axis_type\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.AxisType\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x10\x0A\x03min\x18\x06 \x01(\x05H\x00\x88\x01\x01\x12\x10\x0A\x03max\x18\x07 \x01(\x05H\x01\x88\x01\x01B\x06\x0A\x04_minB\x06\x0A\x04_max\x1A\xC1\x12\x0A\x06Series\x12:\x0A\x0Bseries_type\x18\x08 \x01(\x0E2%.google.cloud.chronicle.v1.SeriesType\x12\x13\x0A\x0Bseries_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bshow_symbol\x18\x04 \x01(\x08\x12\x17\x0A\x0Fshow_background\x18\x05 \x01(\x08\x12\x0D\x0A\x05stack\x18\x06 \x01(\x09\x12M\x0A\x15series_stack_strategy\x18\x09 \x01(\x0E2..google.cloud.chronicle.v1.SeriesStackStrategy\x12U\x0A\x06encode\x18\x0A \x01(\x0B2E.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode\x12\x0D\x0A\x05label\x18\x0B \x01(\x09\x12\x0D\x0A\x05field\x18\x0C \x01(\x09\x12a\x0A\x0Adata_label\x18\x0D \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabelB\x03\xE0A\x01\x12\x13\x0A\x06radius\x18\x0E \x03(\x09B\x03\xE0A\x01\x12a\x0A\x0Aitem_style\x18\x0F \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyleB\x03\xE0A\x01\x12 \x0A\x13series_unique_value\x18\x10 \x01(\x09B\x03\xE0A\x01\x12a\x0A\x0Aarea_style\x18\x11 \x01(\x0B2H.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyleB\x03\xE0A\x01\x12c\x0A\x0Bitem_colors\x18\x12 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColorsB\x03\xE0A\x01\x12e\x0A\x0Cgauge_config\x18\x13 \x01(\x0B2J.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfigB\x03\xE0A\x01\x12r\x0A\x13metric_trend_config\x18\x14 \x01(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfigB\x03\xE0A\x01\x1A@\x0A\x06Encode\x12\x09\x0A\x01x\x18\x01 \x01(\x09\x12\x09\x0A\x01y\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\x12\x11\x0A\x09item_name\x18\x04 \x01(\x09\x1A\x1E\x0A\x09DataLabel\x12\x11\x0A\x04show\x18\x01 \x01(\x08B\x03\xE0A\x01\x1AU\x0A\x09ItemStyle\x12\x19\x0A\x0Cborder_width\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x19\x0A\x0Cborder_color\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\xBB\x01\x0A\x09AreaStyle\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06origin\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bshadow_blur\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x19\x0A\x0Cshadow_color\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fshadow_offset_x\x18\x05 \x01(\x05B\x03\xE0A\x01\x12\x1C\x0A\x0Fshadow_offset_y\x18\x06 \x01(\x05B\x03\xE0A\x01\x12\x14\x0A\x07opacity\x18\x07 \x01(\x05B\x03\xE0A\x01\x1A<\x0A\x12UserSelectedValues\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05label\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\x8A\x01\x0A\x0FChartSliceColor\x12\x10\x0A\x03key\x18\x01 \x01(\x09B\x03\xE0A\x01\x12e\x0A\x05value\x18\x02 \x01(\x0B2Q.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValuesB\x03\xE0A\x01\x1Aq\x0A\x0AItemColors\x12c\x0A\x06colors\x18\x01 \x03(\x0B2N.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColorB\x03\xE0A\x01\x1A4\x0A\x0AGaugeValue\x12\x12\x0A\x05value\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\xC0\x02\x0A\x0BGaugeConfig\x12b\x0A\x0Abase_value\x18\x01 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x12c\x0A\x0Blimit_value\x18\x02 \x01(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x12h\x0A\x10threshold_values\x18\x03 \x03(\x0B2I.google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValueB\x03\xE0A\x01\x1A\x96\x02\x0A\x11MetricTrendConfig\x12C\x0A\x0Dmetric_format\x18\x01 \x01(\x0E2'.google.cloud.chronicle.v1.MetricFormatB\x03\xE0A\x01\x12\x1E\x0A\x11show_metric_trend\x18\x05 \x01(\x08B\x03\xE0A\x01\x12P\x0A\x14metric_display_trend\x18\x03 \x01(\x0E2-.google.cloud.chronicle.v1.MetricDisplayTrendB\x03\xE0A\x01\x12J\x0A\x11metric_trend_type\x18\x04 \x01(\x0E2*.google.cloud.chronicle.v1.MetricTrendTypeB\x03\xE0A\x01\x1A[\x0A\x07Tooltip\x12\x0C\x0A\x04show\x18\x01 \x01(\x08\x12B\x0A\x0Ftooltip_trigger\x18\x03 \x01(\x0E2).google.cloud.chronicle.v1.ToolTipTrigger\x1A\x87\x02\x0A\x06Legend\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0C\x0A\x04show\x18\x02 \x01(\x08\x12\x0F\x0A\x07z_level\x18\x03 \x01(\x05\x12\x09\x0A\x01z\x18\x04 \x01(\x05\x12\x0C\x0A\x04left\x18\x05 \x01(\x05\x12\x0B\x0A\x03top\x18\x06 \x01(\x05\x12\x0D\x0A\x05right\x18\x07 \x01(\x05\x12\x0E\x0A\x06bottom\x18\x08 \x01(\x05\x12>\x0A\x0Dlegend_orient\x18\x0C \x01(\x0E2'.google.cloud.chronicle.v1.LegendOrient\x12<\x0A\x0Clegend_align\x18\x0D \x01(\x0E2&.google.cloud.chronicle.v1.LegendAlign\x12\x0F\x0A\x07padding\x18\x0B \x03(\x05\x1A*\x0A\x09ColumnDef\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x0E\x0A\x06header\x18\x02 \x01(\x09\x1Av\x0A\x18ColumnRenderTypeSettings\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x12column_render_type\x18\x02 \x01(\x0E2%.google.cloud.chronicle.v1.RenderTypeB\x03\xE0A\x01\x1Am\x0A\x15ColumnTooltipSettings\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x02\x12 \x0A\x13header_tooltip_text\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11cell_tooltip_text\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\x9D\x02\x0A\x0BTableConfig\x12\x1D\x0A\x10enable_text_wrap\x18\x01 \x01(\x08B\x03\xE0A\x01\x12z\x0A\x1Bcolumn_render_type_settings\x18\x02 \x03(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettingsB\x03\xE0A\x01\x12s\x0A\x17column_tooltip_settings\x18\x03 \x03(\x0B2M.google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettingsB\x03\xE0A\x01\x1A\xFD\x05\x0A\x10GoogleMapsConfig\x12q\x0A\x0Ddata_settings\x18\x01 \x01(\x0B2U.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettingsB\x03\xE0A\x01\x12;\x0A\x09plot_mode\x18\x02 \x01(\x0E2#.google.cloud.chronicle.v1.PlotModeB\x03\xE0A\x01\x12o\x0A\x0Cmap_position\x18\x03 \x01(\x0B2T.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPositionB\x03\xE0A\x01\x12s\x0A\x0Epoint_settings\x18\x04 \x01(\x0B2V.google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettingsB\x03\xE0A\x01\x1Af\x0A\x0CDataSettings\x12\x1C\x0A\x0Flatitude_column\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10longitude_column\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ccount_column\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A~\x0A\x0BMapPosition\x12\x15\x0A\x08fit_data\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Elatitude_value\x18\x05 \x01(\x01B\x03\xE0A\x01\x12\x1C\x0A\x0Flongitude_value\x18\x06 \x01(\x01B\x03\xE0A\x01\x12\x1D\x0A\x10zoom_scale_value\x18\x07 \x01(\x01B\x03\xE0A\x01\x1Ak\x0A\x0DPointSettings\x12F\x0A\x0Fpoint_size_type\x18\x01 \x01(\x0E2(.google.cloud.chronicle.v1.PointSizeTypeB\x03\xE0A\x01\x12\x12\x0A\x05color\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\xB2\x02\x0A\x09VisualMap\x12F\x0A\x0Fvisual_map_type\x18\x01 \x01(\x0E2(.google.cloud.chronicle.v1.VisualMapTypeB\x03\xE0A\x01\x12e\x0A\x06pieces\x18\x02 \x03(\x0B2P.google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPieceB\x03\xE0A\x01\x1Av\x0A\x0EVisualMapPiece\x12\x15\x0A\x03min\x18\x01 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x15\x0A\x03max\x18\x02 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x12\x0A\x05color\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05label\x18\x04 \x01(\x09B\x03\xE0A\x01B\x06\x0A\x04_minB\x06\x0A\x04_max\x1A\xED\x0B\x0A\x0FDrillDownConfig\x12b\x0A\x10left_drill_downs\x18\x01 \x03(\x0B2C.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDownB\x03\xE0A\x02\x12c\x0A\x11right_drill_downs\x18\x02 \x03(\x0B2C.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDownB\x03\xE0A\x02\x1A\x90\x0A\x0A\x09DrillDown\x12x\x0A\x10default_settings\x18\x03 \x01(\x0B2\\.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettingsH\x00\x12v\x0A\x0Fcustom_settings\x18\x04 \x01(\x0B2[.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettingsH\x00\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x1A0\x0A\x18DefaultDrillDownSettings\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x02\x1A\xA6\x07\x0A\x17CustomDrillDownSettings\x12{\x0A\x05query\x18\x03 \x01(\x0B2j.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQueryH\x00\x12}\x0A\x06filter\x18\x04 \x01(\x0B2k.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilterH\x00\x12\x8A\x01\x0A\x0Dexternal_link\x18\x05 \x01(\x0B2q.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLinkH\x00\x12\x14\x0A\x07new_tab\x18\x01 \x01(\x08B\x03\xE0A\x02\x12\x1E\x0A\x11left_click_column\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0EDrillDownQuery\x12\x12\x0A\x05query\x18\x01 \x01(\x09B\x03\xE0A\x02\x1A\xD5\x02\x0A\x0FDrillDownFilter\x12\xA5\x01\x0A\x11dashboard_filters\x18\x01 \x03(\x0B2\x84\x01.google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilterB\x03\xE0A\x02\x1A\x99\x01\x0A\x18DrillDownDashboardFilter\x12 \x0A\x13dashboard_filter_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12[\x0A\x1Afilter_operator_and_values\x18\x02 \x03(\x0B22.google.cloud.chronicle.v1.FilterOperatorAndValuesB\x03\xE0A\x02\x1AD\x0A\x15DrillDownExternalLink\x12\x11\x0A\x04link\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06actionB\x0A\x0A\x08settings:\xA4\x01\xEAA\xA0\x01\x0A'chronicle.googleapis.com/DashboardChart\x12Tprojects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}*\x0FdashboardCharts2\x0EdashboardChart\"\x90\x02\x0A\x06Button\x12\x12\x0A\x05label\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09hyperlink\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x14\x0A\x07new_tab\x18\x04 \x01(\x08B\x03\xE0A\x01\x12E\x0A\x0Aproperties\x18\x05 \x01(\x0B2,.google.cloud.chronicle.v1.Button.PropertiesB\x03\xE0A\x01\x1Ac\x0A\x0AProperties\x12\x12\x0A\x05color\x18\x01 \x01(\x09B\x03\xE0A\x01\x12A\x0A\x0Cbutton_style\x18\x02 \x01(\x0E2&.google.cloud.chronicle.v1.ButtonStyleB\x03\xE0A\x01\"\xA6\x01\x0A\x08Markdown\x12\x14\x0A\x07content\x18\x01 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x0Aproperties\x18\x02 \x01(\x0B26.google.cloud.chronicle.v1.Markdown.MarkdownPropertiesB\x03\xE0A\x01\x1A3\x0A\x12MarkdownProperties\x12\x1D\x0A\x10background_color\x18\x03 \x01(\x09B\x03\xE0A\x01\"Y\x0A\x18GetDashboardChartRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA1\x01\x0A\x1EBatchGetDashboardChartsRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/DashboardChart\x12>\x0A\x05names\x18\x02 \x03(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"f\x0A\x1FBatchGetDashboardChartsResponse\x12C\x0A\x10dashboard_charts\x18\x01 \x03(\x0B2).google.cloud.chronicle.v1.DashboardChart*p\x0A\x08TileType\x12\x19\x0A\x15TILE_TYPE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17TILE_TYPE_VISUALIZATION\x10\x01\x12\x14\x0A\x10TILE_TYPE_BUTTON\x10\x02\x12\x16\x0A\x12TILE_TYPE_MARKDOWN\x10\x03*t\x0A\x0ARenderType\x12\x1B\x0A\x17RENDER_TYPE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10RENDER_TYPE_TEXT\x10\x01\x12\x14\x0A\x10RENDER_TYPE_ICON\x10\x02\x12\x1D\x0A\x19RENDER_TYPE_ICON_AND_TEXT\x10\x03*Q\x0A\x08AxisType\x12\x19\x0A\x15AXIS_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05VALUE\x10\x01\x12\x0C\x0A\x08CATEGORY\x10\x02\x12\x08\x0A\x04TIME\x10\x03\x12\x07\x0A\x03LOG\x10\x04*t\x0A\x0ASeriesType\x12\x1B\x0A\x17SERIES_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04LINE\x10\x01\x12\x07\x0A\x03BAR\x10\x02\x12\x07\x0A\x03PIE\x10\x03\x12\x08\x0A\x04TEXT\x10\x04\x12\x07\x0A\x03MAP\x10\x05\x12\x09\x0A\x05GAUGE\x10\x06\x12\x0F\x0A\x0BSCATTERPLOT\x10\x07*o\x0A\x13SeriesStackStrategy\x12%\x0A!SERIES_STACK_STRATEGY_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08SAMESIGN\x10\x01\x12\x07\x0A\x03ALL\x10\x02\x12\x0C\x0A\x08POSITIVE\x10\x03\x12\x0C\x0A\x08NEGATIVE\x10\x04*\x7F\x0A\x0EToolTipTrigger\x12\x1F\x0A\x1BTOOLTIP_TRIGGER_UNSPECIFIED\x10\x00\x12\x18\x0A\x14TOOLTIP_TRIGGER_NONE\x10\x01\x12\x18\x0A\x14TOOLTIP_TRIGGER_ITEM\x10\x02\x12\x18\x0A\x14TOOLTIP_TRIGGER_AXIS\x10\x03*K\x0A\x0CLegendOrient\x12\x1D\x0A\x19LEGEND_ORIENT_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08VERTICAL\x10\x01\x12\x0E\x0A\x0AHORIZONTAL\x10\x02*J\x0A\x0BLegendAlign\x12\x1C\x0A\x18LEGEND_ALIGN_UNSPECIFIED\x10\x00\x12\x08\x0A\x04AUTO\x10\x01\x12\x08\x0A\x04LEFT\x10\x02\x12\x09\x0A\x05RIGHT\x10\x03*}\x0A\x0BButtonStyle\x12\x1C\x0A\x18BUTTON_STYLE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BUTTON_STYLE_FILLED\x10\x01\x12\x19\x0A\x15BUTTON_STYLE_OUTLINED\x10\x02\x12\x1C\x0A\x18BUTTON_STYLE_TRANSPARENT\x10\x03*f\x0A\x08PlotMode\x12\x19\x0A\x15PLOT_MODE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10PLOT_MODE_POINTS\x10\x01\x12\x15\x0A\x11PLOT_MODE_HEATMAP\x10\x02\x12\x12\x0A\x0EPLOT_MODE_BOTH\x10\x03*u\x0A\x0DPointSizeType\x12\x1F\x0A\x1BPOINT_SIZE_TYPE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15POINT_SIZE_TYPE_FIXED\x10\x01\x12(\x0A\$POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE\x10\x02*e\x0A\x0CMetricFormat\x12\x1D\x0A\x19METRIC_FORMAT_UNSPECIFIED\x10\x00\x12\x18\x0A\x14METRIC_FORMAT_NUMBER\x10\x01\x12\x1C\x0A\x18METRIC_FORMAT_PLAIN_TEXT\x10\x02*\xC0\x01\x0A\x12MetricDisplayTrend\x12\$\x0A METRIC_DISPLAY_TREND_UNSPECIFIED\x10\x00\x12'\x0A#METRIC_DISPLAY_TREND_ABSOLUTE_VALUE\x10\x02\x12#\x0A\x1FMETRIC_DISPLAY_TREND_PERCENTAGE\x10\x03\x126\x0A2METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE\x10\x04*r\x0A\x0FMetricTrendType\x12!\x0A\x1DMETRIC_TREND_TYPE_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19METRIC_TREND_TYPE_REGULAR\x10\x01\x12\x1D\x0A\x19METRIC_TREND_TYPE_INVERSE\x10\x02*O\x0A\x0DVisualMapType\x12\x1F\x0A\x1BVISUAL_MAP_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ACONTINUOUS\x10\x01\x12\x0D\x0A\x09PIECEWISE\x10\x022\xFE\x04\x0A\x15DashboardChartService\x12\xC3\x01\x0A\x11GetDashboardChart\x123.google.cloud.chronicle.v1.GetDashboardChartRequest\x1A).google.cloud.chronicle.v1.DashboardChart\"N\xDAA\x04name\x82\xD3\xE4\x93\x02A\x12?/v1/{name=projects/*/locations/*/instances/*/dashboardCharts/*}\x12\xF1\x01\x0A\x17BatchGetDashboardCharts\x129.google.cloud.chronicle.v1.BatchGetDashboardChartsRequest\x1A:.google.cloud.chronicle.v1.BatchGetDashboardChartsResponse\"_\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02J\x12H/v1/{parent=projects/*/locations/*/instances/*}/dashboardCharts:batchGet\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCA\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x13DashboardChartProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php deleted file mode 100644 index e7f520233eec..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DashboardQuery.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB97\x0A/google/cloud/chronicle/v1/dashboard_query.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x19google/protobuf/any.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x16google/type/date.proto\x1A\x1Agoogle/type/interval.proto\"\xB5\x05\x0A\x0EDashboardQuery\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x05input\x18\x03 \x01(\x0B2/.google.cloud.chronicle.v1.DashboardQuery.InputB\x03\xE0A\x02\x12H\x0A\x0Fdashboard_chart\x18\x04 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\x11\x0A\x04etag\x18\x05 \x01(\x09B\x03\xE0A\x01\x1A\x84\x02\x0A\x05Input\x12,\x0A\x0Btime_window\x18\x01 \x01(\x0B2\x15.google.type.IntervalH\x00\x12U\x0A\x0Drelative_time\x18\x03 \x01(\x0B2<.google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTimeH\x00\x1Ah\x0A\x0CRelativeTime\x12;\x0A\x09time_unit\x18\x01 \x01(\x0E2#.google.cloud.chronicle.v1.TimeUnitB\x03\xE0A\x02\x12\x1B\x0A\x0Estart_time_val\x18\x02 \x01(\x03B\x03\xE0A\x02B\x0C\x0A\x0Atime_input:\xA6\x01\xEAA\xA2\x01\x0A'chronicle.googleapis.com/DashboardQuery\x12Uprojects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}*\x10dashboardQueries2\x0EdashboardQuery\"Y\x0A\x18GetDashboardQueryRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardQuery\"\xA0\x02\x0A\x1CExecuteDashboardQueryRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/DashboardQuery\x12=\x0A\x05query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x02\x12@\x0A\x07filters\x18\x03 \x03(\x0B2*.google.cloud.chronicle.v1.DashboardFilterB\x03\xE0A\x01\x12\x18\x0A\x0Bclear_cache\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\$\x0A\x17use_previous_time_range\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xD6\x05\x0A\x11QueryRuntimeError\x12\x13\x0A\x0Berror_title\x18\x01 \x01(\x09\x12\x19\x0A\x11error_description\x18\x02 \x01(\x09\x12R\x0A\x0Eerror_severity\x18\x03 \x01(\x0E2:.google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity\x12X\x0A\x08metadata\x18\x04 \x03(\x0B2F.google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata\x12R\x0A\x0Ewarning_reason\x18\x05 \x01(\x0E2:.google.cloud.chronicle.v1.QueryRuntimeError.WarningReason\x1Aq\x0A\x19QueryRuntimeErrorMetadata\x12E\x0A\x03key\x18\x01 \x01(\x0E28.google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"H\x0A\x0DErrorSeverity\x12\x1E\x0A\x1AERROR_SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WARNING\x10\x01\x12\x0A\x0A\x06SEVERE\x10\x02\":\x0A\x0BMetadataKey\x12\x1C\x0A\x18METADATA_KEY_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ROW_LIMIT\x10\x01\"\x95\x01\x0A\x0DWarningReason\x12\x1E\x0A\x1AWARNING_REASON_UNSPECIFIED\x10\x00\x12\x16\x0A\x12ROW_LIMIT_EXCEEDED\x10\x01\x12\x1E\x0A\x1ADEFAULT_ROW_LIMIT_EXCEEDED\x10\x02\x12,\x0A(CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED\x10\x03\"\xC2\x0B\x0A\x1DExecuteDashboardQueryResponse\x12T\x0A\x07results\x18\x01 \x03(\x0B2C.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData\x12;\x0A\x0Cdata_sources\x18\x03 \x03(\x0E2%.google.cloud.chronicle.v1.DataSource\x12J\x0A!last_backend_cache_refreshed_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12*\x0A\x0Btime_window\x18\x05 \x01(\x0B2\x15.google.type.Interval\x12J\x0A\x14query_runtime_errors\x18\x06 \x03(\x0B2,.google.cloud.chronicle.v1.QueryRuntimeError\x12J\x0A\x11language_features\x18\x07 \x03(\x0E2*.google.cloud.chronicle.v1.LanguageFeatureB\x03\xE0A\x01\x1A\xA6\x04\x0A\x0BColumnValue\x12\x12\x0A\x08null_val\x18\x01 \x01(\x08H\x00\x12\x12\x0A\x08bool_val\x18\x02 \x01(\x08H\x00\x12\x13\x0A\x09bytes_val\x18\x03 \x01(\x0CH\x00\x12\x14\x0A\x0Adouble_val\x18\x04 \x01(\x01H\x00\x12\x13\x0A\x09int64_val\x18\x05 \x01(\x03H\x00\x12\x14\x0A\x0Auint64_val\x18\x06 \x01(\x04H\x00\x12\x14\x0A\x0Astring_val\x18\x07 \x01(\x09H\x00\x123\x0A\x0Dtimestamp_val\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12%\x0A\x08date_val\x18\x09 \x01(\x0B2\x11.google.type.DateH\x00\x12)\x0A\x09proto_val\x18\x0A \x01(\x0B2\x14.google.protobuf.AnyH\x00\x12d\x0A\x08metadata\x18\x0B \x01(\x0B2R.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata\x1A\x8C\x01\x0A\x0DValueMetadata\x123\x0A\x05links\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.InAppLink\x12\x13\x0A\x0Bfield_paths\x18\x02 \x03(\x09\x121\x0A\x0Dtimestamp_val\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x07\x0A\x05value\x1A\xA3\x02\x0A\x0AColumnType\x12U\x0A\x05value\x18\x01 \x01(\x0B2D.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValueH\x00\x12X\x0A\x04list\x18\x02 \x01(\x0B2H.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.ListH\x00\x1A\\\x0A\x04List\x12T\x0A\x06values\x18\x01 \x03(\x0B2D.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValueB\x06\x0A\x04type\x1A\xAE\x01\x0A\x0AColumnData\x12\x0E\x0A\x06column\x18\x01 \x01(\x09\x12S\x0A\x06values\x18\x02 \x03(\x0B2C.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType\x12;\x0A\x08metadata\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.ColumnMetadata\"\xF4\x03\x0A\x0FDashboardFilter\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12:\x0A\x0Bdata_source\x18\x02 \x01(\x0E2%.google.cloud.chronicle.v1.DataSource\x12\x12\x0A\x0Afield_path\x18\x03 \x01(\x09\x12\\\x0A filter_operator_and_field_values\x18\x04 \x03(\x0B22.google.cloud.chronicle.v1.FilterOperatorAndValues\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x11\x0A\x09chart_ids\x18\x06 \x03(\x09\x12*\x0A\x1Dis_standard_time_range_filter\x18\x07 \x01(\x08B\x03\xE0A\x01\x12\x19\x0A\x0Cis_mandatory\x18\x08 \x01(\x08B\x03\xE0A\x01\x127\x0A%is_standard_time_range_filter_enabled\x18\x09 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01\x12T\x0A\x16advanced_filter_config\x18\x0A \x01(\x0B2/.google.cloud.chronicle.v1.AdvancedFilterConfigB\x03\xE0A\x01B(\x0A&_is_standard_time_range_filter_enabled\"s\x0A\x17FilterOperatorAndValues\x12B\x0A\x0Ffilter_operator\x18\x01 \x01(\x0E2).google.cloud.chronicle.v1.FilterOperator\x12\x14\x0A\x0Cfield_values\x18\x02 \x03(\x09\"\xC6\x05\x0A\x14AdvancedFilterConfig\x12\x12\x0A\x05token\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06prefix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06suffix\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09separator\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10multiple_allowed\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_values\x18\x06 \x03(\x09B\x03\xE0A\x01\x12!\x0A\x14skip_default_affixes\x18\x07 \x01(\x08B\x03\xE0A\x01\x12V\x0A\x0Cvalue_source\x18\x08 \x01(\x0B2;.google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSourceB\x03\xE0A\x02\x1A\xD1\x01\x0A\x0BValueSource\x12\\\x0A\x0Emanual_options\x18\x01 \x01(\x0B2=.google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptionsB\x03\xE0A\x01H\x00\x12Z\x0A\x0Dquery_options\x18\x02 \x01(\x0B2<.google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptionsB\x03\xE0A\x01H\x00B\x08\x0A\x06source\x1A%\x0A\x0DManualOptions\x12\x14\x0A\x07options\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A\xA5\x01\x0A\x0CQueryOptions\x12\x12\x0A\x05query\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x06column\x18\x02 \x01(\x09B\x03\xE0A\x02\x12'\x0A\x1Aglobal_time_filter_enabled\x18\x03 \x01(\x08B\x03\xE0A\x01\x12C\x0A\x05input\x18\x04 \x01(\x0B2/.google.cloud.chronicle.v1.DashboardQuery.InputB\x03\xE0A\x01\"9\x0A\x09InAppLink\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12\x10\x0A\x08icon_url\x18\x03 \x01(\x09\"\xB5\x02\x0A\x0EColumnMetadata\x12\x0E\x0A\x06column\x18\x01 \x01(\x09\x12\x12\x0A\x0Afield_path\x18\x02 \x01(\x09\x12\x15\x0A\x0Dfunction_name\x18\x03 \x01(\x09\x12\x17\x0A\x0Ffunction_module\x18\x04 \x01(\x09\x12:\x0A\x0Bdata_source\x18\x05 \x01(\x0E2%.google.cloud.chronicle.v1.DataSource\x12H\x0A\x12timestamp_metadata\x18\x06 \x01(\x0B2,.google.cloud.chronicle.v1.TimestampMetadata\x12\x11\x0A\x09longitude\x18\x07 \x01(\x08\x12\x10\x0A\x08latitude\x18\x08 \x01(\x08\x12\x10\x0A\x08selected\x18\x09 \x01(\x08\x12\x12\x0A\x0Aunselected\x18\x0A \x01(\x08\"\x83\x01\x0A\x11TimestampMetadata\x12\x13\x0A\x0Btime_format\x18\x01 \x01(\x09\x12\x11\x0A\x09time_zone\x18\x02 \x01(\x09\x12\x18\x0A\x10time_granularity\x18\x03 \x01(\x09\x12\x13\x0A\x0Bis_sortable\x18\x04 \x01(\x08\x12\x17\x0A\x0Fis_interpolable\x18\x05 \x01(\x08*[\x0A\x0FLanguageFeature\x12 \x0A\x1CLANGUAGE_FEATURE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05JOINS\x10\x01\x12\x0A\x0A\x06STAGES\x10\x02\x12\x0F\x0A\x0BDATA_TABLES\x10\x03*\xE4\x02\x0A\x0EFilterOperator\x12\x1F\x0A\x1BFILTER_OPERATOR_UNSPECIFIED\x10\x00\x12\x09\x0A\x05EQUAL\x10\x01\x12\x0D\x0A\x09NOT_EQUAL\x10\x02\x12\x06\x0A\x02IN\x10\x03\x12\x10\x0A\x0CGREATER_THAN\x10\x04\x12\x1C\x0A\x18GREATER_THAN_OR_EQUAL_TO\x10\x05\x12\x0D\x0A\x09LESS_THAN\x10\x06\x12\x19\x0A\x15LESS_THAN_OR_EQUAL_TO\x10\x07\x12\x0B\x0A\x07BETWEEN\x10\x08\x12\x08\x0A\x04PAST\x10\x09\x12\x0B\x0A\x07IS_NULL\x10\x0A\x12\x0F\x0A\x0BIS_NOT_NULL\x10\x0B\x12\x0F\x0A\x0BSTARTS_WITH\x10\x0C\x12\x0D\x0A\x09ENDS_WITH\x10\x0D\x12\x18\x0A\x14DOES_NOT_STARTS_WITH\x10\x0E\x12\x16\x0A\x12DOES_NOT_ENDS_WITH\x10\x0F\x12\x0A\x0A\x06NOT_IN\x10\x10\x12\x0C\x0A\x08CONTAINS\x10\x11\x12\x14\x0A\x10DOES_NOT_CONTAIN\x10\x12*\x9A\x02\x0A\x0ADataSource\x12\x1B\x0A\x17DATA_SOURCE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03UDM\x10\x01\x12\x0A\x0A\x06ENTITY\x10\x02\x12\x15\x0A\x11INGESTION_METRICS\x10\x03\x12\x13\x0A\x0FRULE_DETECTIONS\x10\x04\x12\x0C\x0A\x08RULESETS\x10\x05\x12\x0A\x0A\x06GLOBAL\x10\x06\x12\x0F\x0A\x0BIOC_MATCHES\x10\x07\x12\x09\x0A\x05RULES\x10\x08\x12\x0E\x0A\x0ASOAR_CASES\x10\x09\x12\x12\x0A\x0ESOAR_PLAYBOOKS\x10\x0A\x12\x15\x0A\x11SOAR_CASE_HISTORY\x10\x0B\x12\x0E\x0A\x0ADATA_TABLE\x10\x0C\x12\x11\x0A\x0DINVESTIGATION\x10\x0D\x12\x1A\x0A\x16INVESTIGATION_FEEDBACK\x10\x0E*o\x0A\x08TimeUnit\x12\x19\x0A\x15TIME_UNIT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SECOND\x10\x01\x12\x0A\x0A\x06MINUTE\x10\x02\x12\x08\x0A\x04HOUR\x10\x03\x12\x07\x0A\x03DAY\x10\x04\x12\x08\x0A\x04WEEK\x10\x05\x12\x09\x0A\x05MONTH\x10\x06\x12\x08\x0A\x04YEAR\x10\x072\xFC\x04\x0A\x15DashboardQueryService\x12\xC4\x01\x0A\x11GetDashboardQuery\x123.google.cloud.chronicle.v1.GetDashboardQueryRequest\x1A).google.cloud.chronicle.v1.DashboardQuery\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dashboardQueries/*}\x12\xEE\x01\x0A\x15ExecuteDashboardQuery\x127.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest\x1A8.google.cloud.chronicle.v1.ExecuteDashboardQueryResponse\"b\xDAA\x0Cparent,query\x82\xD3\xE4\x93\x02M\"H/v1/{parent=projects/*/locations/*/instances/*}/dashboardQueries:execute:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCA\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x13DashboardQueryProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php deleted file mode 100644 index 211a4b8a9af5..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataAccessControl.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBA/\x0A3google/cloud/chronicle/v1/data_access_control.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCF\x01\x0A\x1CCreateDataAccessLabelRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12J\x0A\x11data_access_label\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12!\x0A\x14data_access_label_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\x9B\x01\x0A\x1BListDataAccessLabelsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessLabel\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x1CListDataAccessLabelsResponse\x12F\x0A\x12data_access_labels\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessLabel\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x01\x0A\x1CUpdateDataAccessLabelRequest\x12J\x0A\x11data_access_label\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessLabelB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessLabelRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\"\xCF\x01\x0A\x1CCreateDataAccessScopeRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12J\x0A\x11data_access_scope\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12!\x0A\x14data_access_scope_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"[\x0A\x19GetDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x9B\x01\x0A\x1BListDataAccessScopesRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/DataAccessScope\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xD3\x01\x0A\x1CListDataAccessScopesResponse\x12F\x0A\x12data_access_scopes\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DataAccessScope\x12-\x0A global_data_access_scope_granted\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B#\x0A!_global_data_access_scope_granted\"\x9B\x01\x0A\x1CUpdateDataAccessScopeRequest\x12J\x0A\x11data_access_scope\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.DataAccessScopeB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"^\x0A\x1CDeleteDataAccessScopeRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\xD5\x03\x0A\x0FDataAccessLabel\x12\x13\x0A\x09udm_query\x18\x03 \x01(\x09H\x00\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessLabel\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x06 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessLabel\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}B\x0C\x0A\x0Adefinition\"\x88\x05\x0A\x0FDataAccessScope\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12\\\x0A\x1Aallowed_data_access_labels\x18\x02 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12[\x0A\x19denied_data_access_labels\x18\x03 \x03(\x0B23.google.cloud.chronicle.v1.DataAccessLabelReferenceB\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Blast_editor\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x09 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09allow_all\x18\x0A \x01(\x08B\x03\xE0A\x01:\x91\x01\xEAA\x8D\x01\x0A(chronicle.googleapis.com/DataAccessScope\x12aprojects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}\"\xD0\x01\x0A\x18DataAccessLabelReference\x12\x1B\x0A\x11data_access_label\x18\x01 \x01(\x09H\x00\x12\x12\x0A\x08log_type\x18\x02 \x01(\x09H\x00\x12\x19\x0A\x0Fasset_namespace\x18\x03 \x01(\x09H\x00\x12D\x0A\x0Fingestion_label\x18\x04 \x01(\x0B2).google.cloud.chronicle.v1.IngestionLabelH\x00\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x03B\x07\x0A\x05label\"V\x0A\x0EIngestionLabel\x12 \x0A\x13ingestion_label_key\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\"\x0A\x15ingestion_label_value\x18\x02 \x01(\x09B\x03\xE0A\x012\xE6\x12\x0A\x18DataAccessControlService\x12\x8A\x02\x0A\x15CreateDataAccessLabel\x127.google.cloud.chronicle.v1.CreateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8B\x01\xDAA-parent,data_access_label,data_access_label_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels:\x11data_access_label\x12\xC7\x01\x0A\x12GetDataAccessLabel\x124.google.cloud.chronicle.v1.GetDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\xDA\x01\x0A\x14ListDataAccessLabels\x126.google.cloud.chronicle.v1.ListDataAccessLabelsRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessLabelsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels\x12\x8C\x02\x0A\x15UpdateDataAccessLabel\x127.google.cloud.chronicle.v1.UpdateDataAccessLabelRequest\x1A*.google.cloud.chronicle.v1.DataAccessLabel\"\x8D\x01\xDAA\x1Ddata_access_label,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}:\x11data_access_label\x12\xB9\x01\x0A\x15DeleteDataAccessLabel\x127.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}\x12\x8A\x02\x0A\x15CreateDataAccessScope\x127.google.cloud.chronicle.v1.CreateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8B\x01\xDAA-parent,data_access_scope,data_access_scope_id\x82\xD3\xE4\x93\x02U\"@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes:\x11data_access_scope\x12\xC7\x01\x0A\x12GetDataAccessScope\x124.google.cloud.chronicle.v1.GetDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x12\xDA\x01\x0A\x14ListDataAccessScopes\x126.google.cloud.chronicle.v1.ListDataAccessScopesRequest\x1A7.google.cloud.chronicle.v1.ListDataAccessScopesResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes\x12\x8C\x02\x0A\x15UpdateDataAccessScope\x127.google.cloud.chronicle.v1.UpdateDataAccessScopeRequest\x1A*.google.cloud.chronicle.v1.DataAccessScope\"\x8D\x01\xDAA\x1Ddata_access_scope,update_mask\x82\xD3\xE4\x93\x02g2R/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}:\x11data_access_scope\x12\xB9\x01\x0A\x15DeleteDataAccessScope\x127.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC6\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0FDataAccessProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php deleted file mode 100644 index 101c9111f097..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/DataTable.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF3E\x0A*google/cloud/chronicle/v1/data_table.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\xAF\x01\x0A\x16CreateDataTableRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12=\x0A\x0Adata_table\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x12\x1A\x0A\x0Ddata_table_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"O\x0A\x13GetDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\"\x8D\x01\x0A\x16UpdateDataTableRequest\x12=\x0A\x0Adata_table\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.DataTableB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\x9B\x01\x0A\x15ListDataTablesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/DataTable\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\"f\x0A\x16DeleteDataTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/DataTable\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"l\x0A\x16ListDataTablesResponse\x129\x0A\x0Bdata_tables\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.DataTable\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA0\x01\x0A\x19CreateDataTableRowRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12D\x0A\x0Edata_table_row\x18\x02 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\"\x97\x01\x0A\x19UpdateDataTableRowRequest\x12D\x0A\x0Edata_table_row\x18\x01 \x01(\x0B2'.google.cloud.chronicle.v1.DataTableRowB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xB6\x01\x0A\x18ListDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"{\x0A\x19ListDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"U\x0A\x16GetDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"X\x0A\x19DeleteDataTableRowRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%chronicle.googleapis.com/DataTableRow\"\xAC\x01\x0A\x1EBulkCreateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkCreateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xA6\x01\x0A\x1BBulkGetDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12H\x0A\x08requests\x18\x02 \x03(\x0B21.google.cloud.chronicle.v1.GetDataTableRowRequestB\x03\xE0A\x02\"`\x0A\x1CBulkGetDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAD\x01\x0A\x1FBulkReplaceDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.CreateDataTableRowRequestB\x03\xE0A\x02\"d\x0A BulkReplaceDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"\xAC\x01\x0A\x1EBulkUpdateDataTableRowsRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%chronicle.googleapis.com/DataTableRow\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.cloud.chronicle.v1.UpdateDataTableRowRequestB\x03\xE0A\x02\"c\x0A\x1FBulkUpdateDataTableRowsResponse\x12@\x0A\x0Fdata_table_rows\x18\x01 \x03(\x0B2'.google.cloud.chronicle.v1.DataTableRow\"b\x0A\x12DataTableScopeInfo\x12L\x0A\x12data_access_scopes\x18\x01 \x03(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\"\x99\x06\x0A\x09DataTable\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12H\x0A\x0Bcolumn_info\x18\x06 \x03(\x0B2..google.cloud.chronicle.v1.DataTableColumnInfoB\x03\xE0A\x05\x12\x1C\x0A\x0Fdata_table_uuid\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05rules\x18\x08 \x03(\x09B\x03\xE0A\x03\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\"\x0A\x15approximate_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12F\x0A\x0Ascope_info\x18\x0C \x01(\x0B2-.google.cloud.chronicle.v1.DataTableScopeInfoB\x03\xE0A\x01\x12L\x0A\x0Dupdate_source\x18\x0D \x01(\x0E20.google.cloud.chronicle.v1.DataTableUpdateSourceB\x03\xE0A\x03\x12E\x0A\x1Crow_time_to_live_update_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\x95\x01\xEAA\x91\x01\x0A\"chronicle.googleapis.com/DataTable\x12Tprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}*\x0AdataTables2\x09dataTable\"\x81\x03\x0A\x0CDataTableRow\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x13\x0A\x06values\x18\x02 \x03(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1D\x0A\x10row_time_to_live\x18\x05 \x01(\x09B\x03\xE0A\x01:\xBD\x01\xEAA\xB9\x01\x0A%chronicle.googleapis.com/DataTableRow\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}*\x0DdataTableRows2\x0CdataTableRow\"\xFA\x02\x0A\x13DataTableColumnInfo\x12\x1C\x0A\x12mapped_column_path\x18\x03 \x01(\x09H\x00\x12Y\x0A\x0Bcolumn_type\x18\x04 \x01(\x0E2B.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnTypeH\x00\x12\x19\x0A\x0Ccolumn_index\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1C\x0A\x0Foriginal_column\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Akey_column\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Frepeated_values\x18\x06 \x01(\x08B\x03\xE0A\x01\"j\x0A\x13DataTableColumnType\x12&\x0A\"DATA_TABLE_COLUMN_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x01\x12\x09\x0A\x05REGEX\x10\x02\x12\x08\x0A\x04CIDR\x10\x03\x12\x0A\x0A\x06NUMBER\x10\x04B\x0E\x0A\x0Cpath_or_type\"m\x0A\"GetDataTableOperationErrorsRequest\x12G\x0A\x04name\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1chronicle.googleapis.com/DataTableOperationErrors\"\xB8\x02\x0A\x18DataTableOperationErrors\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12&\x0A\x0Arpc_errors\x18\x03 \x03(\x0B2\x12.google.rpc.Status:\xE0\x01\xEAA\xDC\x01\x0A1chronicle.googleapis.com/DataTableOperationErrors\x12sprojects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}*\x18dataTableOperationErrors2\x18dataTableOperationErrors*a\x0A\x15DataTableUpdateSource\x12(\x0A\$DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04USER\x10\x01\x12\x08\x0A\x04RULE\x10\x02\x12\x0A\x0A\x06SEARCH\x10\x032\x89\x1C\x0A\x10DataTableService\x12\xDC\x01\x0A\x0FCreateDataTable\x121.google.cloud.chronicle.v1.CreateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"p\xDAA\x1Fparent,data_table,data_table_id\x82\xD3\xE4\x93\x02H\":/v1/{parent=projects/*/locations/*/instances/*}/dataTables:\x0Adata_table\x12\xC2\x01\x0A\x0EListDataTables\x120.google.cloud.chronicle.v1.ListDataTablesRequest\x1A1.google.cloud.chronicle.v1.ListDataTablesResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/dataTables\x12\xAF\x01\x0A\x0CGetDataTable\x12..google.cloud.chronicle.v1.GetDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xDE\x01\x0A\x0FUpdateDataTable\x121.google.cloud.chronicle.v1.UpdateDataTableRequest\x1A\$.google.cloud.chronicle.v1.DataTable\"r\xDAA\x16data_table,update_mask\x82\xD3\xE4\x93\x02S2E/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}:\x0Adata_table\x12\xAD\x01\x0A\x0FDeleteDataTable\x121.google.cloud.chronicle.v1.DeleteDataTableRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/dataTables/*}\x12\xEF\x01\x0A\x12CreateDataTableRow\x124.google.cloud.chronicle.v1.CreateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"z\xDAA\x15parent,data_table_row\x82\xD3\xE4\x93\x02\\\"J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:\x0Edata_table_row\x12\x84\x02\x0A\x12UpdateDataTableRow\x124.google.cloud.chronicle.v1.UpdateDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"\x8E\x01\xDAA\x1Adata_table_row,update_mask\x82\xD3\xE4\x93\x02k2Y/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}:\x0Edata_table_row\x12\xDB\x01\x0A\x11ListDataTableRows\x123.google.cloud.chronicle.v1.ListDataTableRowsRequest\x1A4.google.cloud.chronicle.v1.ListDataTableRowsResponse\"[\xDAA\x06parent\x82\xD3\xE4\x93\x02L\x12J/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows\x12\xC8\x01\x0A\x0FGetDataTableRow\x121.google.cloud.chronicle.v1.GetDataTableRowRequest\x1A'.google.cloud.chronicle.v1.DataTableRow\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\xBD\x01\x0A\x12DeleteDataTableRow\x124.google.cloud.chronicle.v1.DeleteDataTableRowRequest\x1A\x16.google.protobuf.Empty\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L*J/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}\x12\x84\x02\x0A\x17BulkCreateDataTableRows\x129.google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate:\x01*\x12\xF8\x01\x0A\x14BulkGetDataTableRows\x126.google.cloud.chronicle.v1.BulkGetDataTableRowsRequest\x1A7.google.cloud.chronicle.v1.BulkGetDataTableRowsResponse\"o\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02W\"R/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet:\x01*\x12\x88\x02\x0A\x18BulkReplaceDataTableRows\x12:.google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest\x1A;.google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse\"s\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02[\"V/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace:\x01*\x12\x84\x02\x0A\x17BulkUpdateDataTableRows\x129.google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest\x1A:.google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse\"r\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02Z\"U/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate:\x01*\x12\xEA\x01\x0A\x1BGetDataTableOperationErrors\x12=.google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest\x1A3.google.cloud.chronicle.v1.DataTableOperationErrors\"W\xDAA\x04name\x82\xD3\xE4\x93\x02J\x12H/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xC5\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0EDataTableProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php deleted file mode 100644 index 45b8f91f3f08..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Entity.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9A\x19\x0A&google/cloud/chronicle/v1/entity.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD5\x06\x0A\x09Watchlist\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12multiplying_factor\x18\x05 \x01(\x02B\x03\xE0A\x01\x12h\x0A\x1Bentity_population_mechanism\x18\x06 \x01(\x0B2>.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanismB\x03\xE0A\x02\x12K\x0A\x0Centity_count\x18\x07 \x01(\x0B20.google.cloud.chronicle.v1.Watchlist.EntityCountB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\\\x0A\x1Awatchlist_user_preferences\x18\x0A \x01(\x0B23.google.cloud.chronicle.v1.WatchlistUserPreferencesB\x03\xE0A\x01\x1A\x90\x01\x0A\x19EntityPopulationMechanism\x12\\\x0A\x06manual\x18\x01 \x01(\x0B2E.google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.ManualB\x03\xE0A\x01H\x00\x1A\x08\x0A\x06ManualB\x0B\x0A\x09mechanism\x1A4\x0A\x0BEntityCount\x12\x11\x0A\x04user\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x12\x0A\x05asset\x18\x02 \x01(\x05B\x03\xE0A\x03:\x94\x01\xEAA\x90\x01\x0A\"chronicle.googleapis.com/Watchlist\x12Sprojects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}*\x0Awatchlists2\x09watchlist\"/\x0A\x18WatchlistUserPreferences\x12\x13\x0A\x06pinned\x18\x01 \x01(\x08B\x03\xE0A\x01\"O\x0A\x13GetWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\"\x99\x01\x0A\x15ListWatchlistsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"u\x0A\x16ListWatchlistsResponse\x12=\x0A\x0Awatchlists\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x01\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAD\x01\x0A\x16CreateWatchlistRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Watchlist\x12\x19\x0A\x0Cwatchlist_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x09watchlist\x18\x03 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateWatchlistRequest\x12<\x0A\x09watchlist\x18\x01 \x01(\x0B2\$.google.cloud.chronicle.v1.WatchlistB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"f\x0A\x16DeleteWatchlistRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Watchlist\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x012\xBE\x08\x0A\x0DEntityService\x12\xAF\x01\x0A\x0CGetWatchlist\x12..google.cloud.chronicle.v1.GetWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x12\xC2\x01\x0A\x0EListWatchlists\x120.google.cloud.chronicle.v1.ListWatchlistsRequest\x1A1.google.cloud.chronicle.v1.ListWatchlistsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/instances/*}/watchlists\x12\xD9\x01\x0A\x0FCreateWatchlist\x121.google.cloud.chronicle.v1.CreateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"m\xDAA\x1Dparent,watchlist,watchlist_id\x82\xD3\xE4\x93\x02G\":/v1/{parent=projects/*/locations/*/instances/*}/watchlists:\x09watchlist\x12\xDB\x01\x0A\x0FUpdateWatchlist\x121.google.cloud.chronicle.v1.UpdateWatchlistRequest\x1A\$.google.cloud.chronicle.v1.Watchlist\"o\xDAA\x15watchlist,update_mask\x82\xD3\xE4\x93\x02Q2D/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}:\x09watchlist\x12\xAD\x01\x0A\x0FDeleteWatchlist\x121.google.cloud.chronicle.v1.DeleteWatchlistRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/instances/*/watchlists/*}\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC2\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x0BEntityProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php deleted file mode 100644 index f4fbffb8eaae..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEA\x06\x0A9google/cloud/chronicle/v1/featured_content_metadata.proto\x12\x19google.cloud.chronicle.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x92\x04\x0A\x17FeaturedContentMetadata\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06author\x18\x05 \x01(\x09B\x03\xE0A\x03\x12\x16\x0A\x09certified\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x0Acategories\x18\x08 \x03(\x09B\x03\xE0A\x03\x12\x14\x0A\x07version\x18\x09 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x08verified\x18\x0A \x01(\x08B\x03\xE0A\x03H\x00\x88\x01\x01\x12^\x0A\x0Bsource_type\x18\x0B \x01(\x0E2D.google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceTypeB\x03\xE0A\x03\"`\x0A\x11ContentSourceType\x12#\x0A\x1FCONTENT_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GOOGLE\x10\x01\x12\x0D\x0A\x09COMMUNITY\x10\x02\x12\x0B\x0A\x07PARTNER\x10\x03B\x0B\x0A\x09_verifiedB\xD3\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x1CFeaturedContentMetadataProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php deleted file mode 100644 index b081e08823f4..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9F\x18\x0AAgoogle/cloud/chronicle/v1/featured_content_native_dashboard.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A9google/cloud/chronicle/v1/featured_content_metadata.proto\x1A0google/cloud/chronicle/v1/native_dashboard.proto\"\xF5\x03\x0A\x1EFeaturedContentNativeDashboard\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12Q\x0A\x10content_metadata\x18\x02 \x01(\x0B22.google.cloud.chronicle.v1.FeaturedContentMetadataB\x03\xE0A\x03\x12^\x0A\x11dashboard_content\x18\x03 \x01(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueriesB\x03\xE0A\x01:\x8C\x02\xEAA\x88\x02\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\x12\x8B\x01projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}*\x1FfeaturedContentNativeDashboards2\x1EfeaturedContentNativeDashboard\"y\x0A(GetFeaturedContentNativeDashboardRequest\x12M\x0A\x04name\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\"\xC3\x01\x0A*ListFeaturedContentNativeDashboardsRequest\x12O\x0A\x06parent\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x127chronicle.googleapis.com/FeaturedContentNativeDashboard\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xAD\x01\x0A+ListFeaturedContentNativeDashboardsResponse\x12e\x0A\"featured_content_native_dashboards\x18\x01 \x03(\x0B29.google.cloud.chronicle.v1.FeaturedContentNativeDashboard\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xE8\x01\x0A,InstallFeaturedContentNativeDashboardRequest\x12M\x0A\x04name\x18\x01 \x01(\x09B?\xE0A\x02\xFAA9\x0A7chronicle.googleapis.com/FeaturedContentNativeDashboard\x12i\x0A!featured_content_native_dashboard\x18\x02 \x01(\x0B29.google.cloud.chronicle.v1.FeaturedContentNativeDashboardB\x03\xE0A\x01\"{\x0A-InstallFeaturedContentNativeDashboardResponse\x12J\x0A\x10native_dashboard\x18\x01 \x01(\x09B0\xE0A\x01\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard2\xBC\x08\x0A%FeaturedContentNativeDashboardService\x12\x8E\x02\x0A!GetFeaturedContentNativeDashboard\x12C.google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest\x1A9.google.cloud.chronicle.v1.FeaturedContentNativeDashboard\"i\xDAA\x04name\x82\xD3\xE4\x93\x02\\\x12Z/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}\x12\xA1\x02\x0A#ListFeaturedContentNativeDashboards\x12E.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest\x1AF.google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse\"k\xDAA\x06parent\x82\xD3\xE4\x93\x02\\\x12Z/v1/{parent=projects/*/locations/*/instances/*/contentHub}/featuredContentNativeDashboards\x12\xB0\x02\x0A%InstallFeaturedContentNativeDashboard\x12G.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest\x1AH.google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g\"b/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}:install:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xE4\x02\x0A\x1Dcom.google.cloud.chronicle.v1B#FeaturedContentNativeDashboardProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1\xEAA\x86\x01\x0A#chronicle.googleapis.com/ContentHub\x12Gprojects/{project}/locations/{location}/instances/{instance}/contentHub*\x0AcontentHub2\x0AcontentHubb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php deleted file mode 100644 index 35968a37f5c2..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Instance.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD7\x06\x0A(google/cloud/chronicle/v1/instance.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\x98\x01\x0A\x08Instance\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08:y\xEAAv\x0A!chronicle.googleapis.com/Instance\x12internalAddGeneratedFile( - "\x0A\x8AF\x0A0google/cloud/chronicle/v1/native_dashboard.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A/google/cloud/chronicle/v1/dashboard_chart.proto\x1A/google/cloud/chronicle/v1/dashboard_query.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"u\x0A\x1DExportNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12\x12\x0A\x05names\x18\x02 \x03(\x09B\x03\xE0A\x02\"{\x0A\x1EExportNativeDashboardsResponse\x12J\x0A\x12inline_destination\x18\x01 \x01(\x0B2,.google.cloud.chronicle.v1.InlineDestinationH\x00B\x0D\x0A\x0Bdestination\"g\x0A\x11InlineDestination\x12R\x0A\x0Adashboards\x18\x01 \x03(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries\"\xFE\x01\x0A#NativeDashboardWithChartsAndQueries\x12B\x0A\x09dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x01\x12H\x0A\x10dashboard_charts\x18\x02 \x03(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x01\x12I\x0A\x11dashboard_queries\x18\x03 \x03(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\"\xB5\x01\x0A\x1DImportNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12R\x0A\x06source\x18\x02 \x01(\x0B2=.google.cloud.chronicle.v1.ImportNativeDashboardsInlineSourceB\x03\xE0A\x02\"}\x0A\"ImportNativeDashboardsInlineSource\x12W\x0A\x0Adashboards\x18\x01 \x03(\x0B2>.google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueriesB\x03\xE0A\x02\"e\x0A\x1EImportNativeDashboardsResponse\x12C\x0A\x07results\x18\x01 \x03(\x0B2-.google.cloud.chronicle.v1.ImportExportStatusB\x03\xE0A\x03\"P\x0A\x12ImportExportStatus\x12\x11\x0A\x09dashboard\x18\x01 \x01(\x09\x12'\x0A\x06status\x18\x02 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03\"\x85\x06\x0A\x0FNativeDashboard\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x03\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x0Adefinition\x18\x04 \x01(\x0B2..google.cloud.chronicle.v1.DashboardDefinitionB\x03\xE0A\x01\x12;\x0A\x04type\x18\x05 \x01(\x0E2(.google.cloud.chronicle.v1.DashboardTypeB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Ecreate_user_id\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eupdate_user_id\x18\x09 \x01(\x09B\x03\xE0A\x03\x12N\x0A\x13dashboard_user_data\x18\x0A \x01(\x0B2,.google.cloud.chronicle.v1.DashboardUserDataB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0B \x01(\x09B\x03\xE0A\x01\x12?\x0A\x06access\x18\x0C \x01(\x0E2*.google.cloud.chronicle.v1.DashboardAccessB\x03\xE0A\x03:\xAC\x01\xEAA\xA8\x01\x0A(chronicle.googleapis.com/NativeDashboard\x12Yprojects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}*\x10nativeDashboards2\x0FnativeDashboard\"\xAB\x01\x0A\x1CCreateNativeDashboardRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12I\x0A\x10native_dashboard\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\"\x9E\x01\x0A\x19GetNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12A\x0A\x04view\x18\x02 \x01(\x0E2..google.cloud.chronicle.v1.NativeDashboardViewB\x03\xE0A\x01\"\xD3\x01\x0A\x1BListNativeDashboardsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(chronicle.googleapis.com/NativeDashboard\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12A\x0A\x04view\x18\x04 \x01(\x0E2..google.cloud.chronicle.v1.NativeDashboardViewB\x03\xE0A\x01\"~\x0A\x1CListNativeDashboardsResponse\x12E\x0A\x11native_dashboards\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9F\x01\x0A\x1CUpdateNativeDashboardRequest\x12I\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"\xAC\x01\x0A\x1FDuplicateNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12I\x0A\x10native_dashboard\x18\x02 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboardB\x03\xE0A\x02\"^\x0A\x1CDeleteNativeDashboardRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\"\xC6\x02\x0A\x0FAddChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12G\x0A\x0Fdashboard_query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\x12G\x0A\x0Fdashboard_chart\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x02\x12a\x0A\x0Cchart_layout\x18\x04 \x01(\x0B2F.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutB\x03\xE0A\x02\"\x9C\x01\x0A\x10AddChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\xE4\x02\x0A\x10EditChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12G\x0A\x0Fdashboard_query\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardQueryB\x03\xE0A\x01\x12G\x0A\x0Fdashboard_chart\x18\x03 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChartB\x03\xE0A\x01\x122\x0A\x09edit_mask\x18\x04 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12J\x0A\x11language_features\x18\x05 \x03(\x0E2*.google.cloud.chronicle.v1.LanguageFeatureB\x03\xE0A\x01\"\x9D\x01\x0A\x11EditChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\x9E\x01\x0A\x12RemoveChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12H\x0A\x0Fdashboard_chart\x18\x02 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA1\x01\x0A\x15DuplicateChartRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(chronicle.googleapis.com/NativeDashboard\x12H\x0A\x0Fdashboard_chart\x18\x02 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\"\xA2\x01\x0A\x16DuplicateChartResponse\x12D\x0A\x10native_dashboard\x18\x01 \x01(\x0B2*.google.cloud.chronicle.v1.NativeDashboard\x12B\x0A\x0Fdashboard_chart\x18\x02 \x01(\x0B2).google.cloud.chronicle.v1.DashboardChart\"\\\x0A\x11DashboardUserData\x124\x0A\x10last_viewed_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x11\x0A\x09is_pinned\x18\x02 \x01(\x08\"\xF3\x03\x0A\x13DashboardDefinition\x12;\x0A\x07filters\x18\x01 \x03(\x0B2*.google.cloud.chronicle.v1.DashboardFilter\x12\x13\x0A\x0Bfingerprint\x18\x02 \x01(\x09\x12J\x0A\x06charts\x18\x04 \x03(\x0B2:.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig\x1A\xBD\x02\x0A\x0BChartConfig\x12H\x0A\x0Fdashboard_chart\x18\x01 \x01(\x09B/\xE0A\x03\xFAA)\x0A'chronicle.googleapis.com/DashboardChart\x12\\\x0A\x0Cchart_layout\x18\x02 \x01(\x0B2F.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout\x12\x13\x0A\x0Bfilters_ids\x18\x04 \x03(\x09\x1Aq\x0A\x0BChartLayout\x12\x14\x0A\x07start_x\x18\x09 \x01(\x05H\x00\x88\x01\x01\x12\x0E\x0A\x06span_x\x18\x0A \x01(\x05\x12\x14\x0A\x07start_y\x18\x0B \x01(\x05H\x01\x88\x01\x01\x12\x0E\x0A\x06span_y\x18\x0C \x01(\x05B\x0A\x0A\x08_start_xB\x0A\x0A\x08_start_y*r\x0A\x0DDashboardType\x12\x1E\x0A\x1ADASHBOARD_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07CURATED\x10\x01\x12\x0B\x0A\x07PRIVATE\x10\x02\x12\x0A\x0A\x06PUBLIC\x10\x03\x12\x0A\x0A\x06CUSTOM\x10\x04\x12\x0F\x0A\x0BMARKETPLACE\x10\x05*`\x0A\x0FDashboardAccess\x12 \x0A\x1CDASHBOARD_ACCESS_UNSPECIFIED\x10\x00\x12\x15\x0A\x11DASHBOARD_PRIVATE\x10\x01\x12\x14\x0A\x10DASHBOARD_PUBLIC\x10\x02*}\x0A\x13NativeDashboardView\x12%\x0A!NATIVE_DASHBOARD_VIEW_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BNATIVE_DASHBOARD_VIEW_BASIC\x10\x01\x12\x1E\x0A\x1ANATIVE_DASHBOARD_VIEW_FULL\x10\x022\x86\x17\x0A\x16NativeDashboardService\x12\xF2\x01\x0A\x15CreateNativeDashboard\x127.google.cloud.chronicle.v1.CreateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"t\xDAA\x17parent,native_dashboard\x82\xD3\xE4\x93\x02T\"@/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:\x10native_dashboard\x12\xC7\x01\x0A\x12GetNativeDashboard\x124.google.cloud.chronicle.v1.GetNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}\x12\xDA\x01\x0A\x14ListNativeDashboards\x126.google.cloud.chronicle.v1.ListNativeDashboardsRequest\x1A7.google.cloud.chronicle.v1.ListNativeDashboardsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards\x12\x89\x02\x0A\x15UpdateNativeDashboard\x127.google.cloud.chronicle.v1.UpdateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"\x8A\x01\xDAA\x1Cnative_dashboard,update_mask\x82\xD3\xE4\x93\x02e2Q/v1/{native_dashboard.name=projects/*/locations/*/instances/*/nativeDashboards/*}:\x10native_dashboard\x12\xF2\x01\x0A\x18DuplicateNativeDashboard\x12:.google.cloud.chronicle.v1.DuplicateNativeDashboardRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"n\xDAA\x16name, native_dashboard\x82\xD3\xE4\x93\x02O\"J/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicate:\x01*\x12\xB9\x01\x0A\x15DeleteNativeDashboard\x127.google.cloud.chronicle.v1.DeleteNativeDashboardRequest\x1A\x16.google.protobuf.Empty\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B*@/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}\x12\xE2\x01\x0A\x08AddChart\x12*.google.cloud.chronicle.v1.AddChartRequest\x1A+.google.cloud.chronicle.v1.AddChartResponse\"}\xDAA&name, dashboard_query, dashboard_chart\x82\xD3\xE4\x93\x02N\"I/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:addChart:\x01*\x12\xC8\x01\x0A\x0BRemoveChart\x12-.google.cloud.chronicle.v1.RemoveChartRequest\x1A*.google.cloud.chronicle.v1.NativeDashboard\"^\xDAA\x04name\x82\xD3\xE4\x93\x02Q\"L/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:removeChart:\x01*\x12\xF2\x01\x0A\x09EditChart\x12+.google.cloud.chronicle.v1.EditChartRequest\x1A,.google.cloud.chronicle.v1.EditChartResponse\"\x89\x01\xDAA1name, dashboard_query, dashboard_chart, edit_mask\x82\xD3\xE4\x93\x02O\"J/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart:\x01*\x12\xD8\x01\x0A\x0EDuplicateChart\x120.google.cloud.chronicle.v1.DuplicateChartRequest\x1A1.google.cloud.chronicle.v1.DuplicateChartResponse\"a\xDAA\x04name\x82\xD3\xE4\x93\x02T\"O/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicateChart:\x01*\x12\xF1\x01\x0A\x16ExportNativeDashboards\x128.google.cloud.chronicle.v1.ExportNativeDashboardsRequest\x1A9.google.cloud.chronicle.v1.ExportNativeDashboardsResponse\"b\xDAA\x0Dparent, names\x82\xD3\xE4\x93\x02L\"G/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:export:\x01*\x12\xF1\x01\x0A\x16ImportNativeDashboards\x128.google.cloud.chronicle.v1.ImportNativeDashboardsRequest\x1A9.google.cloud.chronicle.v1.ImportNativeDashboardsResponse\"b\xDAA\x0Dparent,source\x82\xD3\xE4\x93\x02L\"G/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:import:\x01*\x1A\xAA\x01\xCAA\x18chronicle.googleapis.com\xD2A\x8B\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xCB\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x14NativeDashboardProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php deleted file mode 100644 index 9c6e24f4392f..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/ReferenceList.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xFF\x19\x0A.google/cloud/chronicle/v1/reference_list.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"]\x0A\x09ScopeInfo\x12P\x0A\x14reference_list_scope\x18\x02 \x01(\x0B2-.google.cloud.chronicle.v1.ReferenceListScopeB\x03\xE0A\x02\".\x0A\x12ReferenceListScope\x12\x18\x0A\x0Bscope_names\x18\x01 \x03(\x09B\x03\xE0A\x01\"\x93\x01\x0A\x17GetReferenceListRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12:\x0A\x04view\x18\x02 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"\xBE\x01\x0A\x19ListReferenceListsRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12:\x0A\x04view\x18\x04 \x01(\x0E2,.google.cloud.chronicle.v1.ReferenceListView\"x\x0A\x1AListReferenceListsResponse\x12A\x0A\x0Freference_lists\x18\x01 \x03(\x0B2(.google.cloud.chronicle.v1.ReferenceList\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC3\x01\x0A\x1ACreateReferenceListRequest\x12>\x0A\x06parent\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x12&chronicle.googleapis.com/ReferenceList\x12E\x0A\x0Ereference_list\x18\x02 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12\x1E\x0A\x11reference_list_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x94\x01\x0A\x1AUpdateReferenceListRequest\x12E\x0A\x0Ereference_list\x18\x01 \x01(\x0B2(.google.cloud.chronicle.v1.ReferenceListB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\xAA\x04\x0A\x0DReferenceList\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x02\x12C\x0A\x07entries\x18\x05 \x03(\x0B2-.google.cloud.chronicle.v1.ReferenceListEntryB\x03\xE0A\x02\x12\x12\x0A\x05rules\x18\x06 \x03(\x09B\x03\xE0A\x03\x12L\x0A\x0Bsyntax_type\x18\x08 \x01(\x0E22.google.cloud.chronicle.v1.ReferenceListSyntaxTypeB\x03\xE0A\x02\x12\$\x0A\x17rule_associations_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x128\x0A\x0Ascope_info\x18\x0B \x01(\x0B2\$.google.cloud.chronicle.v1.ScopeInfo:\x8A\x01\xEAA\x86\x01\x0A&chronicle.googleapis.com/ReferenceList\x12\\projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}\"(\x0A\x12ReferenceListEntry\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x02*\xC2\x01\x0A\x17ReferenceListSyntaxType\x12*\x0A&REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED\x10\x00\x120\x0A,REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING\x10\x01\x12\$\x0A REFERENCE_LIST_SYNTAX_TYPE_REGEX\x10\x02\x12#\x0A\x1FREFERENCE_LIST_SYNTAX_TYPE_CIDR\x10\x03*u\x0A\x11ReferenceListView\x12#\x0A\x1FREFERENCE_LIST_VIEW_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19REFERENCE_LIST_VIEW_BASIC\x10\x01\x12\x1C\x0A\x18REFERENCE_LIST_VIEW_FULL\x10\x022\xF5\x07\x0A\x14ReferenceListService\x12\xBF\x01\x0A\x10GetReferenceList\x122.google.cloud.chronicle.v1.GetReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"M\xDAA\x04name\x82\xD3\xE4\x93\x02@\x12>/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}\x12\xD2\x01\x0A\x12ListReferenceLists\x124.google.cloud.chronicle.v1.ListReferenceListsRequest\x1A5.google.cloud.chronicle.v1.ListReferenceListsResponse\"O\xDAA\x06parent\x82\xD3\xE4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/instances/*}/referenceLists\x12\xF9\x01\x0A\x13CreateReferenceList\x125.google.cloud.chronicle.v1.CreateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x80\x01\xDAA'parent,reference_list,reference_list_id\x82\xD3\xE4\x93\x02P\">/v1/{parent=projects/*/locations/*/instances/*}/referenceLists:\x0Ereference_list\x12\xFB\x01\x0A\x13UpdateReferenceList\x125.google.cloud.chronicle.v1.UpdateReferenceListRequest\x1A(.google.cloud.chronicle.v1.ReferenceList\"\x82\x01\xDAA\x1Areference_list,update_mask\x82\xD3\xE4\x93\x02_2M/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}:\x0Ereference_list\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC9\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x12ReferenceListProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php deleted file mode 100644 index 752c16da4d3a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/GPBMetadata/Google/Cloud/Chronicle/V1/Rule.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE2@\x0A\$google/cloud/chronicle/v1/rule.proto\x12\x19google.cloud.chronicle.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\x91\x09\x0A\x04Rule\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Brevision_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x0C\x0A\x04text\x18\x04 \x01(\x09\x12\x13\x0A\x06author\x18\x05 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x08severity\x18\x06 \x01(\x0B2#.google.cloud.chronicle.v1.SeverityB\x03\xE0A\x03\x12D\x0A\x08metadata\x18\x07 \x03(\x0B2-.google.cloud.chronicle.v1.Rule.MetadataEntryB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x14revision_create_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12P\x0A\x11compilation_state\x18\x0A \x01(\x0E20.google.cloud.chronicle.v1.Rule.CompilationStateB\x03\xE0A\x03\x126\x0A\x04type\x18\x0C \x01(\x0E2#.google.cloud.chronicle.v1.RuleTypeB\x03\xE0A\x03\x12G\x0A\x0Freference_lists\x18\x0D \x03(\x09B.\xE0A\x03\xFAA(\x0A&chronicle.googleapis.com/ReferenceList\x12M\x0A\x17allowed_run_frequencies\x18\x0E \x03(\x0E2'.google.cloud.chronicle.v1.RunFrequencyB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0F \x01(\x09\x12<\x0A\x05scope\x18\x10 \x01(\x09B-\xFAA*\x0A(chronicle.googleapis.com/DataAccessScope\x12V\x0A\x17compilation_diagnostics\x18\x11 \x03(\x0B20.google.cloud.chronicle.v1.CompilationDiagnosticB\x03\xE0A\x03\x12.\x0A!near_real_time_live_rule_eligible\x18\x12 \x01(\x08B\x03\xE0A\x03\x12?\x0A\x0Binputs_used\x18\x14 \x01(\x0B2%.google.cloud.chronicle.v1.InputsUsedB\x03\xE0A\x03\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"P\x0A\x10CompilationState\x12!\x0A\x1DCOMPILATION_STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02:m\xEAAj\x0A\x1Dchronicle.googleapis.com/Rule\x12Iprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}\"\xCB\x05\x0A\x0ERuleDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x0F\x0A\x07enabled\x18\x02 \x01(\x08\x12\x10\x0A\x08alerting\x18\x03 \x01(\x08\x12\x10\x0A\x08archived\x18\x04 \x01(\x08\x125\x0A\x0Carchive_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12>\x0A\x0Drun_frequency\x18\x06 \x01(\x0E2'.google.cloud.chronicle.v1.RunFrequency\x12V\x0A\x0Fexecution_state\x18\x07 \x01(\x0E28.google.cloud.chronicle.v1.RuleDeployment.ExecutionStateB\x03\xE0A\x03\x12=\x0A\x0Eproducer_rules\x18\x08 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12=\x0A\x0Econsumer_rules\x18\x09 \x03(\x09B%\xE0A\x03\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12F\x0A\x1Dlast_alert_status_change_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"W\x0A\x0EExecutionState\x12\x1F\x0A\x1BEXECUTION_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07DEFAULT\x10\x01\x12\x0B\x0A\x07LIMITED\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03:\x82\x01\xEAA\x7F\x0A'chronicle.googleapis.com/RuleDeployment\x12Tprojects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment\"\xC8\x03\x0A\x09Retrohunt\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x124\x0A\x10process_interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x02\x126\x0A\x12execution_interval\x18\x03 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12>\x0A\x05state\x18\x04 \x01(\x0E2*.google.cloud.chronicle.v1.Retrohunt.StateB\x03\xE0A\x03\x12 \x0A\x13progress_percentage\x18\x05 \x01(\x02B\x03\xE0A\x03\"P\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04:\x8A\x01\xEAA\x86\x01\x0A\"chronicle.googleapis.com/Retrohunt\x12`projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}\"~\x0A\x11CreateRuleRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x122\x0A\x04rule\x18\x02 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\"x\x0A\x0EGetRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"\xB3\x01\x0A\x10ListRulesRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\\\x0A\x11ListRulesResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"x\x0A\x11UpdateRuleRequest\x122\x0A\x04rule\x18\x01 \x01(\x0B2\x1F.google.cloud.chronicle.v1.RuleB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\\\x0A\x11DeleteRuleRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xA9\x01\x0A\x18ListRuleRevisionsRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x121\x0A\x04view\x18\x04 \x01(\x0E2#.google.cloud.chronicle.v1.RuleView\"d\x0A\x19ListRuleRevisionsResponse\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.cloud.chronicle.v1.Rule\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x92\x01\x0A\x16CreateRetrohuntRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12<\x0A\x09retrohunt\x18\x02 \x01(\x0B2\$.google.cloud.chronicle.v1.RetrohuntB\x03\xE0A\x02\"O\x0A\x13GetRetrohuntRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chronicle.googleapis.com/Retrohunt\"\x8A\x01\x0A\x15ListRetrohuntsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"chronicle.googleapis.com/Retrohunt\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"k\x0A\x16ListRetrohuntsResponse\x128\x0A\x0Aretrohunts\x18\x01 \x03(\x0B2\$.google.cloud.chronicle.v1.Retrohunt\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"Y\x0A\x18GetRuleDeploymentRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'chronicle.googleapis.com/RuleDeployment\"\x94\x01\x0A\x1AListRuleDeploymentsRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'chronicle.googleapis.com/RuleDeployment\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x0E\x0A\x06filter\x18\x04 \x01(\x09\"{\x0A\x1BListRuleDeploymentsResponse\x12C\x0A\x10rule_deployments\x18\x01 \x03(\x0B2).google.cloud.chronicle.v1.RuleDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9C\x01\x0A\x1BUpdateRuleDeploymentRequest\x12G\x0A\x0Frule_deployment\x18\x01 \x01(\x0B2).google.cloud.chronicle.v1.RuleDeploymentB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"y\x0A\x13CompilationPosition\x12\x17\x0A\x0Astart_line\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x19\x0A\x0Cstart_column\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x15\x0A\x08end_line\x18\x03 \x01(\x05B\x03\xE0A\x03\x12\x17\x0A\x0Aend_column\x18\x04 \x01(\x05B\x03\xE0A\x03\"\x96\x02\x0A\x15CompilationDiagnostic\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x08position\x18\x02 \x01(\x0B2..google.cloud.chronicle.v1.CompilationPositionB\x03\xE0A\x03\x12P\x0A\x08severity\x18\x03 \x01(\x0E29.google.cloud.chronicle.v1.CompilationDiagnostic.SeverityB\x03\xE0A\x03\x12\x10\x0A\x03uri\x18\x05 \x01(\x09B\x03\xE0A\x03\"<\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WARNING\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\" \x0A\x08Severity\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\"\x9A\x01\x0A\x11RetrohuntMetadata\x125\x0A\x09retrohunt\x18\x01 \x01(\x09B\"\xFAA\x1F\x0A\x1Dchronicle.googleapis.com/Rule\x121\x0A\x12execution_interval\x18\x02 \x01(\x0B2\x15.google.type.Interval\x12\x1B\x0A\x13progress_percentage\x18\x03 \x01(\x02\"Z\x0A\x0AInputsUsed\x12\x15\x0A\x08uses_udm\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Buses_entity\x18\x02 \x01(\x08B\x03\xE0A\x01\x12\x1B\x0A\x0Euses_detection\x18\x03 \x01(\x08B\x03\xE0A\x01*N\x0A\x0CRunFrequency\x12\x1D\x0A\x19RUN_FREQUENCY_UNSPECIFIED\x10\x00\x12\x08\x0A\x04LIVE\x10\x01\x12\x0A\x0A\x06HOURLY\x10\x02\x12\x09\x0A\x05DAILY\x10\x03*H\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CSINGLE_EVENT\x10\x01\x12\x0F\x0A\x0BMULTI_EVENT\x10\x02*V\x0A\x08RuleView\x12\x19\x0A\x15RULE_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x1A\x0A\x16REVISION_METADATA_ONLY\x10\x032\xA9\x13\x0A\x0BRuleService\x12\xAE\x01\x0A\x0ACreateRule\x12,.google.cloud.chronicle.v1.CreateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"Q\xDAA\x0Bparent,rule\x82\xD3\xE4\x93\x02=\"5/v1/{parent=projects/*/locations/*/instances/*}/rules:\x04rule\x12\x9B\x01\x0A\x07GetRule\x12).google.cloud.chronicle.v1.GetRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xAE\x01\x0A\x09ListRules\x12+.google.cloud.chronicle.v1.ListRulesRequest\x1A,.google.cloud.chronicle.v1.ListRulesResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1/{parent=projects/*/locations/*/instances/*}/rules\x12\xB8\x01\x0A\x0AUpdateRule\x12,.google.cloud.chronicle.v1.UpdateRuleRequest\x1A\x1F.google.cloud.chronicle.v1.Rule\"[\xDAA\x10rule,update_mask\x82\xD3\xE4\x93\x02B2:/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}:\x04rule\x12\x98\x01\x0A\x0ADeleteRule\x12,.google.cloud.chronicle.v1.DeleteRuleRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1/{name=projects/*/locations/*/instances/*/rules/*}\x12\xD2\x01\x0A\x11ListRuleRevisions\x123.google.cloud.chronicle.v1.ListRuleRevisionsRequest\x1A4.google.cloud.chronicle.v1.ListRuleRevisionsResponse\"R\xDAA\x04name\x82\xD3\xE4\x93\x02E\x12C/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions\x12\xEF\x01\x0A\x0FCreateRetrohunt\x121.google.cloud.chronicle.v1.CreateRetrohuntRequest\x1A\x1D.google.longrunning.Operation\"\x89\x01\xCAA\x1E\x0A\x09Retrohunt\x12\x11RetrohuntMetadata\xDAA\x10parent,retrohunt\x82\xD3\xE4\x93\x02O\"B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts:\x09retrohunt\x12\xB7\x01\x0A\x0CGetRetrohunt\x12..google.cloud.chronicle.v1.GetRetrohuntRequest\x1A\$.google.cloud.chronicle.v1.Retrohunt\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}\x12\xCA\x01\x0A\x0EListRetrohunts\x120.google.cloud.chronicle.v1.ListRetrohuntsRequest\x1A1.google.cloud.chronicle.v1.ListRetrohuntsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts\x12\xC4\x01\x0A\x11GetRuleDeployment\x123.google.cloud.chronicle.v1.GetRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}\x12\xDA\x01\x0A\x13ListRuleDeployments\x125.google.cloud.chronicle.v1.ListRuleDeploymentsRequest\x1A6.google.cloud.chronicle.v1.ListRuleDeploymentsResponse\"T\xDAA\x06parent\x82\xD3\xE4\x93\x02E\x12C/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments\x12\x83\x02\x0A\x14UpdateRuleDeployment\x126.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest\x1A).google.cloud.chronicle.v1.RuleDeployment\"\x87\x01\xDAA\x1Brule_deployment,update_mask\x82\xD3\xE4\x93\x02c2P/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}:\x0Frule_deployment\x1AL\xCAA\x18chronicle.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xC0\x01\x0A\x1Dcom.google.cloud.chronicle.v1B\x09RuleProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xAA\x02\x19Google.Cloud.Chronicle.V1\xCA\x02\x19Google\\Cloud\\Chronicle\\V1\xEA\x02\x1CGoogle::Cloud::Chronicle::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php deleted file mode 100644 index 2cc4250997ae..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.chronicle.v1.AddChartRequest - */ -class AddChartRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard name to add chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Query used to create the chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dashboard_query = null; - /** - * Required. Chart to be added to the dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dashboard_chart = null; - /** - * Required. ChartLayout for newly added chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $chart_layout = null; - - /** - * @param string $name Required. The dashboard name to add chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery Optional. Query used to create the chart. - * @param \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart Required. Chart to be added to the dashboard. - * - * @return \Google\Cloud\Chronicle\V1\AddChartRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery, \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart): self - { - return (new self()) - ->setName($name) - ->setDashboardQuery($dashboardQuery) - ->setDashboardChart($dashboardChart); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The dashboard name to add chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @type \Google\Cloud\Chronicle\V1\DashboardQuery $dashboard_query - * Optional. Query used to create the chart. - * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart - * Required. Chart to be added to the dashboard. - * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $chart_layout - * Required. ChartLayout for newly added chart. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard name to add chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The dashboard name to add chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Query used to create the chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null - */ - public function getDashboardQuery() - { - return $this->dashboard_query; - } - - public function hasDashboardQuery() - { - return isset($this->dashboard_query); - } - - public function clearDashboardQuery() - { - unset($this->dashboard_query); - } - - /** - * Optional. Query used to create the chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var - * @return $this - */ - public function setDashboardQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); - $this->dashboard_query = $var; - - return $this; - } - - /** - * Required. Chart to be added to the dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart|null - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - public function hasDashboardChart() - { - return isset($this->dashboard_chart); - } - - public function clearDashboardChart() - { - unset($this->dashboard_chart); - } - - /** - * Required. Chart to be added to the dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); - $this->dashboard_chart = $var; - - return $this; - } - - /** - * Required. ChartLayout for newly added chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout|null - */ - public function getChartLayout() - { - return $this->chart_layout; - } - - public function hasChartLayout() - { - return isset($this->chart_layout); - } - - public function clearChartLayout() - { - unset($this->chart_layout); - } - - /** - * Required. ChartLayout for newly added chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $var - * @return $this - */ - public function setChartLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout::class); - $this->chart_layout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php deleted file mode 100644 index a07f0fc6420c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AddChartResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.chronicle.v1.AddChartResponse - */ -class AddChartResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Dashboard with chart added in definition. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - */ - protected $native_dashboard = null; - /** - * Created chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - */ - protected $dashboard_chart = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard - * Dashboard with chart added in definition. - * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart - * Created chart resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Dashboard with chart added in definition. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - public function hasNativeDashboard() - { - return isset($this->native_dashboard); - } - - public function clearNativeDashboard() - { - unset($this->native_dashboard); - } - - /** - * Dashboard with chart added in definition. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->native_dashboard = $var; - - return $this; - } - - /** - * Created chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - * @return \Google\Cloud\Chronicle\V1\DashboardChart|null - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - public function hasDashboardChart() - { - return isset($this->dashboard_chart); - } - - public function clearDashboardChart() - { - unset($this->dashboard_chart); - } - - /** - * Created chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - * @param \Google\Cloud\Chronicle\V1\DashboardChart $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); - $this->dashboard_chart = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php deleted file mode 100644 index 38f79af8c7c2..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig.php +++ /dev/null @@ -1,339 +0,0 @@ -google.cloud.chronicle.v1.AdvancedFilterConfig - */ -class AdvancedFilterConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The token name to look for in the query (e.g., "hostname"). - * The system will automatically wrap this in '$' (e.g., "$hostname$"). - * - * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $token = ''; - /** - * Optional. String to prepend to the final replaced value (e.g., "/", "^(", - * "\""). - * - * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $prefix = ''; - /** - * Optional. String to append to the final replaced value (e.g., "/", ")$", - * "\""). - * - * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $suffix = ''; - /** - * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field - * = "). - * - * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $separator = ''; - /** - * Optional. Whether to allow selection of multiple values. - * - * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $multiple_allowed = false; - /** - * Optional. Default values to use if no value is selected/provided. - * - * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $default_values; - /** - * Optional. Whether to skip the configured prefix and suffix when using - * default values. If true, default values are inserted raw (joined by the - * separator). - * - * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip_default_affixes = false; - /** - * Required. Source of the values for the filter. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value_source = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $token - * Required. The token name to look for in the query (e.g., "hostname"). - * The system will automatically wrap this in '$' (e.g., "$hostname$"). - * @type string $prefix - * Optional. String to prepend to the final replaced value (e.g., "/", "^(", - * "\""). - * @type string $suffix - * Optional. String to append to the final replaced value (e.g., "/", ")$", - * "\""). - * @type string $separator - * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field - * = "). - * @type bool $multiple_allowed - * Optional. Whether to allow selection of multiple values. - * @type string[] $default_values - * Optional. Default values to use if no value is selected/provided. - * @type bool $skip_default_affixes - * Optional. Whether to skip the configured prefix and suffix when using - * default values. If true, default values are inserted raw (joined by the - * separator). - * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource $value_source - * Required. Source of the values for the filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Required. The token name to look for in the query (e.g., "hostname"). - * The system will automatically wrap this in '$' (e.g., "$hostname$"). - * - * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * Required. The token name to look for in the query (e.g., "hostname"). - * The system will automatically wrap this in '$' (e.g., "$hostname$"). - * - * Generated from protobuf field string token = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - - /** - * Optional. String to prepend to the final replaced value (e.g., "/", "^(", - * "\""). - * - * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Optional. String to prepend to the final replaced value (e.g., "/", "^(", - * "\""). - * - * Generated from protobuf field string prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPrefix($var) - { - GPBUtil::checkString($var, True); - $this->prefix = $var; - - return $this; - } - - /** - * Optional. String to append to the final replaced value (e.g., "/", ")$", - * "\""). - * - * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSuffix() - { - return $this->suffix; - } - - /** - * Optional. String to append to the final replaced value (e.g., "/", ")$", - * "\""). - * - * Generated from protobuf field string suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSuffix($var) - { - GPBUtil::checkString($var, True); - $this->suffix = $var; - - return $this; - } - - /** - * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field - * = "). - * - * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSeparator() - { - return $this->separator; - } - - /** - * Optional. Delimiter to join multiple selected values (e.g., "|", " OR field - * = "). - * - * Generated from protobuf field string separator = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSeparator($var) - { - GPBUtil::checkString($var, True); - $this->separator = $var; - - return $this; - } - - /** - * Optional. Whether to allow selection of multiple values. - * - * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getMultipleAllowed() - { - return $this->multiple_allowed; - } - - /** - * Optional. Whether to allow selection of multiple values. - * - * Generated from protobuf field bool multiple_allowed = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setMultipleAllowed($var) - { - GPBUtil::checkBool($var); - $this->multiple_allowed = $var; - - return $this; - } - - /** - * Optional. Default values to use if no value is selected/provided. - * - * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getDefaultValues() - { - return $this->default_values; - } - - /** - * Optional. Default values to use if no value is selected/provided. - * - * Generated from protobuf field repeated string default_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setDefaultValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->default_values = $arr; - - return $this; - } - - /** - * Optional. Whether to skip the configured prefix and suffix when using - * default values. If true, default values are inserted raw (joined by the - * separator). - * - * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getSkipDefaultAffixes() - { - return $this->skip_default_affixes; - } - - /** - * Optional. Whether to skip the configured prefix and suffix when using - * default values. If true, default values are inserted raw (joined by the - * separator). - * - * Generated from protobuf field bool skip_default_affixes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setSkipDefaultAffixes($var) - { - GPBUtil::checkBool($var); - $this->skip_default_affixes = $var; - - return $this; - } - - /** - * Required. Source of the values for the filter. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource|null - */ - public function getValueSource() - { - return $this->value_source; - } - - public function hasValueSource() - { - return isset($this->value_source); - } - - public function clearValueSource() - { - unset($this->value_source); - } - - /** - * Required. Source of the values for the filter. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource value_source = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource $var - * @return $this - */ - public function setValueSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ValueSource::class); - $this->value_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php deleted file mode 100644 index 9bae191bc72d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ManualOptions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions - */ -class ManualOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The options provided by the user. - * The max number of options is limited to 10000. - * - * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $options - * Optional. The options provided by the user. - * The max number of options is limited to 10000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The options provided by the user. - * The max number of options is limited to 10000. - * - * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getOptions() - { - return $this->options; - } - - /** - * Optional. The options provided by the user. - * The max number of options is limited to 10000. - * - * Generated from protobuf field repeated string options = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->options = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php deleted file mode 100644 index fdc4d1b5c93e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/QueryOptions.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions - */ -class QueryOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The query to execute to fetch the values. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Required. The column name to use for the values. - * - * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $column = ''; - /** - * Optional. Enable global time filter - * - * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $global_time_filter_enabled = false; - /** - * Optional. Time range input specifically for the filter's population - * query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $input = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * Required. The query to execute to fetch the values. - * @type string $column - * Required. The column name to use for the values. - * @type bool $global_time_filter_enabled - * Optional. Enable global time filter - * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input $input - * Optional. Time range input specifically for the filter's population - * query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Required. The query to execute to fetch the values. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. The query to execute to fetch the values. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Required. The column name to use for the values. - * - * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Required. The column name to use for the values. - * - * Generated from protobuf field string column = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * Optional. Enable global time filter - * - * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getGlobalTimeFilterEnabled() - { - return $this->global_time_filter_enabled; - } - - /** - * Optional. Enable global time filter - * - * Generated from protobuf field bool global_time_filter_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setGlobalTimeFilterEnabled($var) - { - GPBUtil::checkBool($var); - $this->global_time_filter_enabled = $var; - - return $this; - } - - /** - * Optional. Time range input specifically for the filter's population - * query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input|null - */ - public function getInput() - { - return $this->input; - } - - public function hasInput() - { - return isset($this->input); - } - - public function clearInput() - { - unset($this->input); - } - - /** - * Optional. Time range input specifically for the filter's population - * query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input $var - * @return $this - */ - public function setInput($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input::class); - $this->input = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php deleted file mode 100644 index 3ceaa6be54f0..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AdvancedFilterConfig/ValueSource.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.chronicle.v1.AdvancedFilterConfig.ValueSource - */ -class ValueSource extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions $manual_options - * Optional. Manual options provided by the user. - * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions $query_options - * Optional. Query options to fetch the values from the query engine. - * This is used for the filter's population query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Manual options provided by the user. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions|null - */ - public function getManualOptions() - { - return $this->readOneof(1); - } - - public function hasManualOptions() - { - return $this->hasOneof(1); - } - - /** - * Optional. Manual options provided by the user. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.ManualOptions manual_options = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions $var - * @return $this - */ - public function setManualOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\ManualOptions::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. Query options to fetch the values from the query engine. - * This is used for the filter's population query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions|null - */ - public function getQueryOptions() - { - return $this->readOneof(2); - } - - public function hasQueryOptions() - { - return $this->hasOneof(2); - } - - /** - * Optional. Query options to fetch the values from the query engine. - * This is used for the filter's population query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig.QueryOptions query_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions $var - * @return $this - */ - public function setQueryOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig\QueryOptions::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php deleted file mode 100644 index 13139996bbfb..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/AxisType.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.chronicle.v1.AxisType - */ -class AxisType -{ - /** - * Generated from protobuf enum AXIS_TYPE_UNSPECIFIED = 0; - */ - const AXIS_TYPE_UNSPECIFIED = 0; - /** - * Generated from protobuf enum VALUE = 1; - */ - const VALUE = 1; - /** - * Generated from protobuf enum CATEGORY = 2; - */ - const CATEGORY = 2; - /** - * Generated from protobuf enum TIME = 3; - */ - const TIME = 3; - /** - * Generated from protobuf enum LOG = 4; - */ - const LOG = 4; - - private static $valueToName = [ - self::AXIS_TYPE_UNSPECIFIED => 'AXIS_TYPE_UNSPECIFIED', - self::VALUE => 'VALUE', - self::CATEGORY => 'CATEGORY', - self::TIME => 'TIME', - self::LOG => 'LOG', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php deleted file mode 100644 index 30510080cba1..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsRequest.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.chronicle.v1.BatchGetDashboardChartsRequest - */ -class BatchGetDashboardChartsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource shared by all dashboard charts being - * retrieved. Format: - * projects/{project}/locations/{location}/instances/{instance} If this is - * set, the parent of all of the dashboard charts specified in `names` must - * match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The names of the dashboard charts to get. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $names; - - /** - * @param string $parent Required. The parent resource shared by all dashboard charts being - * retrieved. Format: - * projects/{project}/locations/{location}/instances/{instance} If this is - * set, the parent of all of the dashboard charts specified in `names` must - * match this field. Please see - * {@see DashboardChartServiceClient::instanceName()} for help formatting this field. - * @param string[] $names Required. The names of the dashboard charts to get. Please see - * {@see DashboardChartServiceClient::dashboardChartName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\BatchGetDashboardChartsRequest - * - * @experimental - */ - public static function build(string $parent, array $names): self - { - return (new self()) - ->setParent($parent) - ->setNames($names); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource shared by all dashboard charts being - * retrieved. Format: - * projects/{project}/locations/{location}/instances/{instance} If this is - * set, the parent of all of the dashboard charts specified in `names` must - * match this field. - * @type string[] $names - * Required. The names of the dashboard charts to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource shared by all dashboard charts being - * retrieved. Format: - * projects/{project}/locations/{location}/instances/{instance} If this is - * set, the parent of all of the dashboard charts specified in `names` must - * match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource shared by all dashboard charts being - * retrieved. Format: - * projects/{project}/locations/{location}/instances/{instance} If this is - * set, the parent of all of the dashboard charts specified in `names` must - * match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The names of the dashboard charts to get. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getNames() - { - return $this->names; - } - - /** - * Required. The names of the dashboard charts to get. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php deleted file mode 100644 index 3b02a82be8a5..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BatchGetDashboardChartsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BatchGetDashboardChartsResponse - */ -class BatchGetDashboardChartsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The dashboardCharts from the specified chronicle instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; - */ - private $dashboard_charts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart[] $dashboard_charts - * The dashboardCharts from the specified chronicle instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * The dashboardCharts from the specified chronicle instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart> - */ - public function getDashboardCharts() - { - return $this->dashboard_charts; - } - - /** - * The dashboardCharts from the specified chronicle instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 1; - * @param \Google\Cloud\Chronicle\V1\DashboardChart[] $var - * @return $this - */ - public function setDashboardCharts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart::class); - $this->dashboard_charts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php deleted file mode 100644 index dac0cbb7ab42..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.BulkCreateDataTableRowsRequest - */ -class BulkCreateDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * @return \Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to create. A maximum of 1000 rows (for sync - * requests) or 2000 rows (for async requests) can be created in a single - * request. Total size of the rows should be less than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php deleted file mode 100644 index ec0e78d92832..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkCreateDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse - */ -class BulkCreateDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataTableRows created - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * DataTableRows created - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * DataTableRows created - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * DataTableRows created - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php deleted file mode 100644 index 6c824543b91b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.BulkGetDataTableRowsRequest - */ -class BulkGetDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * @return \Google\Cloud\Chronicle\V1\BulkGetDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $requests - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\GetDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to get. At max 1,000 rows can be there in a - * request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.GetDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\GetDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\GetDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php deleted file mode 100644 index b4bc937ab8bb..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkGetDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkGetDataTableRowsResponse - */ -class BulkGetDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested data table rows. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * The requested data table rows. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * The requested data table rows. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * The requested data table rows. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php deleted file mode 100644 index 8389b6eecd77..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsRequest.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.chronicle.v1.BulkReplaceDataTableRowsRequest - */ -class BulkReplaceDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * @return \Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $requests - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\CreateDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to replace the existing data table rows. A - * maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) - * can be replaced in a single request. Total size of the rows should be less - * than 4MB. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CreateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php deleted file mode 100644 index 2dc0f909f77a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkReplaceDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse - */ -class BulkReplaceDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataTableRows that replaced existing data table rows - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * DataTableRows that replaced existing data table rows - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * DataTableRows that replaced existing data table rows - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * DataTableRows that replaced existing data table rows - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php deleted file mode 100644 index a635d9e33430..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.BulkUpdateDataTableRowsRequest - */ -class BulkUpdateDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * @return \Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $requests - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest> - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. Data table rows to update. At max 1,000 rows (or rows with size - * less than 2MB) can be there in a request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.UpdateDataTableRowRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest[] $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php deleted file mode 100644 index 903503608d86..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/BulkUpdateDataTableRowsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse - */ -class BulkUpdateDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataTableRows updated - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * DataTableRows updated - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * DataTableRows updated - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * DataTableRows updated - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php deleted file mode 100644 index da3b6845d4f8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.chronicle.v1.Button - */ -class Button extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $label = ''; - /** - * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $hyperlink = ''; - /** - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Whether to open the link in a new tab. - * - * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $new_tab = false; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $properties = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $label - * @type string $hyperlink - * @type string $description - * @type bool $new_tab - * Optional. Whether to open the link in a new tab. - * @type \Google\Cloud\Chronicle\V1\Button\Properties $properties - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHyperlink() - { - return $this->hyperlink; - } - - /** - * Generated from protobuf field string hyperlink = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHyperlink($var) - { - GPBUtil::checkString($var, True); - $this->hyperlink = $var; - - return $this; - } - - /** - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Whether to open the link in a new tab. - * - * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getNewTab() - { - return $this->new_tab; - } - - /** - * Optional. Whether to open the link in a new tab. - * - * Generated from protobuf field bool new_tab = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setNewTab($var) - { - GPBUtil::checkBool($var); - $this->new_tab = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\Button\Properties|null - */ - public function getProperties() - { - return $this->properties; - } - - public function hasProperties() - { - return isset($this->properties); - } - - public function clearProperties() - { - unset($this->properties); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.Button.Properties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\Button\Properties $var - * @return $this - */ - public function setProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Button\Properties::class); - $this->properties = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php deleted file mode 100644 index 63e61ffaacaf..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Button/Properties.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.chronicle.v1.Button.Properties - */ -class Properties extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $color = ''; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $button_style = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $color - * @type int $button_style - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkString($var, True); - $this->color = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getButtonStyle() - { - return $this->button_style; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ButtonStyle button_style = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setButtonStyle($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ButtonStyle::class); - $this->button_style = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php deleted file mode 100644 index 2380d2624d4d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ButtonStyle.php +++ /dev/null @@ -1,58 +0,0 @@ -google.cloud.chronicle.v1.ButtonStyle - */ -class ButtonStyle -{ - /** - * Generated from protobuf enum BUTTON_STYLE_UNSPECIFIED = 0; - */ - const BUTTON_STYLE_UNSPECIFIED = 0; - /** - * Generated from protobuf enum BUTTON_STYLE_FILLED = 1; - */ - const BUTTON_STYLE_FILLED = 1; - /** - * Generated from protobuf enum BUTTON_STYLE_OUTLINED = 2; - */ - const BUTTON_STYLE_OUTLINED = 2; - /** - * Generated from protobuf enum BUTTON_STYLE_TRANSPARENT = 3; - */ - const BUTTON_STYLE_TRANSPARENT = 3; - - private static $valueToName = [ - self::BUTTON_STYLE_UNSPECIFIED => 'BUTTON_STYLE_UNSPECIFIED', - self::BUTTON_STYLE_FILLED => 'BUTTON_STYLE_FILLED', - self::BUTTON_STYLE_OUTLINED => 'BUTTON_STYLE_OUTLINED', - self::BUTTON_STYLE_TRANSPARENT => 'BUTTON_STYLE_TRANSPARENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php deleted file mode 100644 index 0cfa1245b753..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ColumnMetadata.php +++ /dev/null @@ -1,383 +0,0 @@ -google.cloud.chronicle.v1.ColumnMetadata - */ -class ColumnMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the column. - * - * Generated from protobuf field string column = 1; - */ - protected $column = ''; - /** - * Field path of the queried field, if any. - * - * Generated from protobuf field string field_path = 2; - */ - protected $field_path = ''; - /** - * Name of the function used to query the field, if any. - * - * Generated from protobuf field string function_name = 3; - */ - protected $function_name = ''; - /** - * Module of the function used to query the field, if any. - * - * Generated from protobuf field string function_module = 4; - */ - protected $function_module = ''; - /** - * Data source queried. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; - */ - protected $data_source = 0; - /** - * Timestamp Metadata - * - * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; - */ - protected $timestamp_metadata = null; - /** - * Whether the column is a longitude field. - * - * Generated from protobuf field bool longitude = 7; - */ - protected $longitude = false; - /** - * Whether the column is a latitude field. - * - * Generated from protobuf field bool latitude = 8; - */ - protected $latitude = false; - /** - * Whether the column is selected in the final response. - * - * Generated from protobuf field bool selected = 9; - */ - protected $selected = false; - /** - * Whether the column is unselected in the final response. - * - * Generated from protobuf field bool unselected = 10; - */ - protected $unselected = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $column - * Name of the column. - * @type string $field_path - * Field path of the queried field, if any. - * @type string $function_name - * Name of the function used to query the field, if any. - * @type string $function_module - * Module of the function used to query the field, if any. - * @type int $data_source - * Data source queried. - * @type \Google\Cloud\Chronicle\V1\TimestampMetadata $timestamp_metadata - * Timestamp Metadata - * @type bool $longitude - * Whether the column is a longitude field. - * @type bool $latitude - * Whether the column is a latitude field. - * @type bool $selected - * Whether the column is selected in the final response. - * @type bool $unselected - * Whether the column is unselected in the final response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Name of the column. - * - * Generated from protobuf field string column = 1; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Name of the column. - * - * Generated from protobuf field string column = 1; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * Field path of the queried field, if any. - * - * Generated from protobuf field string field_path = 2; - * @return string - */ - public function getFieldPath() - { - return $this->field_path; - } - - /** - * Field path of the queried field, if any. - * - * Generated from protobuf field string field_path = 2; - * @param string $var - * @return $this - */ - public function setFieldPath($var) - { - GPBUtil::checkString($var, True); - $this->field_path = $var; - - return $this; - } - - /** - * Name of the function used to query the field, if any. - * - * Generated from protobuf field string function_name = 3; - * @return string - */ - public function getFunctionName() - { - return $this->function_name; - } - - /** - * Name of the function used to query the field, if any. - * - * Generated from protobuf field string function_name = 3; - * @param string $var - * @return $this - */ - public function setFunctionName($var) - { - GPBUtil::checkString($var, True); - $this->function_name = $var; - - return $this; - } - - /** - * Module of the function used to query the field, if any. - * - * Generated from protobuf field string function_module = 4; - * @return string - */ - public function getFunctionModule() - { - return $this->function_module; - } - - /** - * Module of the function used to query the field, if any. - * - * Generated from protobuf field string function_module = 4; - * @param string $var - * @return $this - */ - public function setFunctionModule($var) - { - GPBUtil::checkString($var, True); - $this->function_module = $var; - - return $this; - } - - /** - * Data source queried. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; - * @return int - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Data source queried. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 5; - * @param int $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataSource::class); - $this->data_source = $var; - - return $this; - } - - /** - * Timestamp Metadata - * - * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; - * @return \Google\Cloud\Chronicle\V1\TimestampMetadata|null - */ - public function getTimestampMetadata() - { - return $this->timestamp_metadata; - } - - public function hasTimestampMetadata() - { - return isset($this->timestamp_metadata); - } - - public function clearTimestampMetadata() - { - unset($this->timestamp_metadata); - } - - /** - * Timestamp Metadata - * - * Generated from protobuf field .google.cloud.chronicle.v1.TimestampMetadata timestamp_metadata = 6; - * @param \Google\Cloud\Chronicle\V1\TimestampMetadata $var - * @return $this - */ - public function setTimestampMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\TimestampMetadata::class); - $this->timestamp_metadata = $var; - - return $this; - } - - /** - * Whether the column is a longitude field. - * - * Generated from protobuf field bool longitude = 7; - * @return bool - */ - public function getLongitude() - { - return $this->longitude; - } - - /** - * Whether the column is a longitude field. - * - * Generated from protobuf field bool longitude = 7; - * @param bool $var - * @return $this - */ - public function setLongitude($var) - { - GPBUtil::checkBool($var); - $this->longitude = $var; - - return $this; - } - - /** - * Whether the column is a latitude field. - * - * Generated from protobuf field bool latitude = 8; - * @return bool - */ - public function getLatitude() - { - return $this->latitude; - } - - /** - * Whether the column is a latitude field. - * - * Generated from protobuf field bool latitude = 8; - * @param bool $var - * @return $this - */ - public function setLatitude($var) - { - GPBUtil::checkBool($var); - $this->latitude = $var; - - return $this; - } - - /** - * Whether the column is selected in the final response. - * - * Generated from protobuf field bool selected = 9; - * @return bool - */ - public function getSelected() - { - return $this->selected; - } - - /** - * Whether the column is selected in the final response. - * - * Generated from protobuf field bool selected = 9; - * @param bool $var - * @return $this - */ - public function setSelected($var) - { - GPBUtil::checkBool($var); - $this->selected = $var; - - return $this; - } - - /** - * Whether the column is unselected in the final response. - * - * Generated from protobuf field bool unselected = 10; - * @return bool - */ - public function getUnselected() - { - return $this->unselected; - } - - /** - * Whether the column is unselected in the final response. - * - * Generated from protobuf field bool unselected = 10; - * @param bool $var - * @return $this - */ - public function setUnselected($var) - { - GPBUtil::checkBool($var); - $this->unselected = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php deleted file mode 100644 index 0bb762683f68..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.chronicle.v1.CompilationDiagnostic - */ -class CompilationDiagnostic extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The diagnostic message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $position = null; - /** - * Output only. The severity of a rule's compilation diagnostic. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $severity = 0; - /** - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * - * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Output only. The diagnostic message. - * @type \Google\Cloud\Chronicle\V1\CompilationPosition $position - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * @type int $severity - * Output only. The severity of a rule's compilation diagnostic. - * @type string $uri - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The diagnostic message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. The diagnostic message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\CompilationPosition|null - */ - public function getPosition() - { - return $this->position; - } - - public function hasPosition() - { - return isset($this->position); - } - - public function clearPosition() - { - unset($this->position); - } - - /** - * Output only. The approximate position in the rule text associated with the - * compilation diagnostic. - * Compilation Position may be empty. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\CompilationPosition $var - * @return $this - */ - public function setPosition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\CompilationPosition::class); - $this->position = $var; - - return $this; - } - - /** - * Output only. The severity of a rule's compilation diagnostic. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Output only. The severity of a rule's compilation diagnostic. - * - * Generated from protobuf field .google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\CompilationDiagnostic\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * - * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Output only. Link to documentation that describes a diagnostic in more - * detail. - * - * Generated from protobuf field string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php deleted file mode 100644 index 09e4fc379326..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationDiagnostic/Severity.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.chronicle.v1.CompilationDiagnostic.Severity - */ -class Severity -{ - /** - * An unspecified severity level. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * A compilation warning. - * - * Generated from protobuf enum WARNING = 1; - */ - const WARNING = 1; - /** - * A compilation error. - * - * Generated from protobuf enum ERROR = 2; - */ - const ERROR = 2; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php deleted file mode 100644 index 2ab7cc676528..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CompilationPosition.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.chronicle.v1.CompilationPosition - */ -class CompilationPosition extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Start line number, beginning at 1. - * - * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_line = 0; - /** - * Output only. Start column number, beginning at 1. - * - * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_column = 0; - /** - * Output only. End line number, beginning at 1. - * - * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_line = 0; - /** - * Output only. End column number, beginning at 1. - * - * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_column = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_line - * Output only. Start line number, beginning at 1. - * @type int $start_column - * Output only. Start column number, beginning at 1. - * @type int $end_line - * Output only. End line number, beginning at 1. - * @type int $end_column - * Output only. End column number, beginning at 1. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Start line number, beginning at 1. - * - * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStartLine() - { - return $this->start_line; - } - - /** - * Output only. Start line number, beginning at 1. - * - * Generated from protobuf field int32 start_line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStartLine($var) - { - GPBUtil::checkInt32($var); - $this->start_line = $var; - - return $this; - } - - /** - * Output only. Start column number, beginning at 1. - * - * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStartColumn() - { - return $this->start_column; - } - - /** - * Output only. Start column number, beginning at 1. - * - * Generated from protobuf field int32 start_column = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStartColumn($var) - { - GPBUtil::checkInt32($var); - $this->start_column = $var; - - return $this; - } - - /** - * Output only. End line number, beginning at 1. - * - * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEndLine() - { - return $this->end_line; - } - - /** - * Output only. End line number, beginning at 1. - * - * Generated from protobuf field int32 end_line = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEndLine($var) - { - GPBUtil::checkInt32($var); - $this->end_line = $var; - - return $this; - } - - /** - * Output only. End column number, beginning at 1. - * - * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEndColumn() - { - return $this->end_column; - } - - /** - * Output only. End column number, beginning at 1. - * - * Generated from protobuf field int32 end_column = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEndColumn($var) - { - GPBUtil::checkInt32($var); - $this->end_column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php deleted file mode 100644 index 53319e2e95d3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessLabelRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.chronicle.v1.CreateDataAccessLabelRequest - */ -class CreateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data access label to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_label = null; - /** - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_label_id = ''; - - /** - * @param string $parent Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. Data access label to create. - * @param string $dataAccessLabelId Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * @return \Google\Cloud\Chronicle\V1\CreateDataAccessLabelRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, string $dataAccessLabelId): self - { - return (new self()) - ->setParent($parent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label - * Required. Data access label to create. - * @type string $data_access_label_id - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this Data Access Label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data access label to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null - */ - public function getDataAccessLabel() - { - return $this->data_access_label; - } - - public function hasDataAccessLabel() - { - return isset($this->data_access_label); - } - - public function clearDataAccessLabel() - { - unset($this->data_access_label); - } - - /** - * Required. Data access label to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var - * @return $this - */ - public function setDataAccessLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); - $this->data_access_label = $var; - - return $this; - } - - /** - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataAccessLabelId() - { - return $this->data_access_label_id; - } - - /** - * Required. The ID to use for the data access label, which will become the - * label's display name and the final component of the label's resource name. - * The maximum number of characters should be 63. Regex pattern is as per AIP: - * https://google.aip.dev/122#resource-id-segments - * - * Generated from protobuf field string data_access_label_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataAccessLabelId($var) - { - GPBUtil::checkString($var, True); - $this->data_access_label_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php deleted file mode 100644 index d4d59d290e1b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataAccessScopeRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.chronicle.v1.CreateDataAccessScopeRequest - */ -class CreateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Data access scope to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_scope = null; - /** - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_scope_id = ''; - - /** - * @param string $parent Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. Data access scope to create. - * @param string $dataAccessScopeId Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * @return \Google\Cloud\Chronicle\V1\CreateDataAccessScopeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, string $dataAccessScopeId): self - { - return (new self()) - ->setParent($parent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope - * Required. Data access scope to create. - * @type string $data_access_scope_id - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this Data Access Scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Data access scope to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null - */ - public function getDataAccessScope() - { - return $this->data_access_scope; - } - - public function hasDataAccessScope() - { - return isset($this->data_access_scope); - } - - public function clearDataAccessScope() - { - unset($this->data_access_scope); - } - - /** - * Required. Data access scope to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var - * @return $this - */ - public function setDataAccessScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); - $this->data_access_scope = $var; - - return $this; - } - - /** - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataAccessScopeId() - { - return $this->data_access_scope_id; - } - - /** - * Required. The user provided scope id which will become the last part of the - * name of the scope resource. Needs to be compliant with - * https://google.aip.dev/122 - * - * Generated from protobuf field string data_access_scope_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataAccessScopeId($var) - { - GPBUtil::checkString($var, True); - $this->data_access_scope_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php deleted file mode 100644 index 01a4b78c238a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRequest.php +++ /dev/null @@ -1,188 +0,0 @@ -google.cloud.chronicle.v1.CreateDataTableRequest - */ -class CreateDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The data table being created. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table = null; - /** - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table_id = ''; - - /** - * @param string $parent Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. The data table being created. - * @param string $dataTableId Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * @return \Google\Cloud\Chronicle\V1\CreateDataTableRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTable $dataTable, string $dataTableId): self - { - return (new self()) - ->setParent($parent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type \Google\Cloud\Chronicle\V1\DataTable $data_table - * Required. The data table being created. - * @type string $data_table_id - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The data table being created. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTable|null - */ - public function getDataTable() - { - return $this->data_table; - } - - public function hasDataTable() - { - return isset($this->data_table); - } - - public function clearDataTable() - { - unset($this->data_table); - } - - /** - * Required. The data table being created. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTable $var - * @return $this - */ - public function setDataTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); - $this->data_table = $var; - - return $this; - } - - /** - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataTableId() - { - return $this->data_table_id; - } - - /** - * Required. The ID to use for the data table. This is also the display name - * for the data table. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string data_table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataTableId($var) - { - GPBUtil::checkString($var, True); - $this->data_table_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php deleted file mode 100644 index 61d1e625e79e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateDataTableRowRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.CreateDataTableRowRequest - */ -class CreateDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The data table row to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table_row = null; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. The data table row to create. - * - * @return \Google\Cloud\Chronicle\V1\CreateDataTableRowRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow): self - { - return (new self()) - ->setParent($parent) - ->setDataTableRow($dataTableRow); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row - * Required. The data table row to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The data table row to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTableRow|null - */ - public function getDataTableRow() - { - return $this->data_table_row; - } - - public function hasDataTableRow() - { - return isset($this->data_table_row); - } - - public function clearDataTableRow() - { - unset($this->data_table_row); - } - - /** - * Required. The data table row to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTableRow $var - * @return $this - */ - public function setDataTableRow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_row = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php deleted file mode 100644 index 5e04ec90a015..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateNativeDashboardRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.CreateNativeDashboardRequest - */ -class CreateNativeDashboardRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The dashboard to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $native_dashboard = null; - - /** - * @param string $parent Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. The dashboard to create. - * - * @return \Google\Cloud\Chronicle\V1\CreateNativeDashboardRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard): self - { - return (new self()) - ->setParent($parent) - ->setNativeDashboard($nativeDashboard); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard - * Required. The dashboard to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The dashboard to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - public function hasNativeDashboard() - { - return isset($this->native_dashboard); - } - - public function clearNativeDashboard() - { - unset($this->native_dashboard); - } - - /** - * Required. The dashboard to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->native_dashboard = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php deleted file mode 100644 index dabeb7c2fc4b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateReferenceListRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.chronicle.v1.CreateReferenceListRequest - */ -class CreateReferenceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The reference list to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list = null; - /** - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list_id = ''; - - /** - * @param string $parent Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to create. - * @param string $referenceListId Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * @return \Google\Cloud\Chronicle\V1\CreateReferenceListRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\ReferenceList $referenceList, string $referenceListId): self - { - return (new self()) - ->setParent($parent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list - * Required. The reference list to create. - * @type string $reference_list_id - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this reference list will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The reference list to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\ReferenceList|null - */ - public function getReferenceList() - { - return $this->reference_list; - } - - public function hasReferenceList() - { - return isset($this->reference_list); - } - - public function clearReferenceList() - { - unset($this->reference_list); - } - - /** - * Required. The reference list to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceList $var - * @return $this - */ - public function setReferenceList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); - $this->reference_list = $var; - - return $this; - } - - /** - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getReferenceListId() - { - return $this->reference_list_id; - } - - /** - * Required. The ID to use for the reference list. This is also the display - * name for the reference list. It must satisfy the following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Has length less than 256. - * - Must be unique. - * - * Generated from protobuf field string reference_list_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setReferenceListId($var) - { - GPBUtil::checkString($var, True); - $this->reference_list_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php deleted file mode 100644 index 94af572d344c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRetrohuntRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.CreateRetrohuntRequest - */ -class CreateRetrohuntRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The retrohunt to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $retrohunt = null; - - /** - * @param string $parent Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt Required. The retrohunt to create. - * - * @return \Google\Cloud\Chronicle\V1\CreateRetrohuntRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt): self - { - return (new self()) - ->setParent($parent) - ->setRetrohunt($retrohunt); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type \Google\Cloud\Chronicle\V1\Retrohunt $retrohunt - * Required. The retrohunt to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent of retrohunt, which is a rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The retrohunt to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Retrohunt|null - */ - public function getRetrohunt() - { - return $this->retrohunt; - } - - public function hasRetrohunt() - { - return isset($this->retrohunt); - } - - public function clearRetrohunt() - { - unset($this->retrohunt); - } - - /** - * Required. The retrohunt to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt retrohunt = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Retrohunt $var - * @return $this - */ - public function setRetrohunt($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Retrohunt::class); - $this->retrohunt = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php deleted file mode 100644 index 883ebb114ef8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateRuleRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.CreateRuleRequest - */ -class CreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The rule to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rule = null; - - /** - * @param string $parent Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to create. - * - * @return \Google\Cloud\Chronicle\V1\CreateRuleRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\Rule $rule): self - { - return (new self()) - ->setParent($parent) - ->setRule($rule); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type \Google\Cloud\Chronicle\V1\Rule $rule - * Required. The rule to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this rule will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The rule to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Rule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * Required. The rule to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Rule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rule = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php deleted file mode 100644 index 8909973322b9..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/CreateWatchlistRequest.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.chronicle.v1.CreateWatchlistRequest - */ -class CreateWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $watchlist_id = ''; - /** - * Required. The watchlist to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $watchlist = null; - - /** - * @param string $parent Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to create. - * @param string $watchlistId Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * @return \Google\Cloud\Chronicle\V1\CreateWatchlistRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\Watchlist $watchlist, string $watchlistId): self - { - return (new self()) - ->setParent($parent) - ->setWatchlist($watchlist) - ->setWatchlistId($watchlistId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type string $watchlist_id - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist - * Required. The watchlist to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this watchlist will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getWatchlistId() - { - return $this->watchlist_id; - } - - /** - * Optional. The ID to use for the watchlist, - * which will become the final component of the watchlist's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setWatchlistId($var) - { - GPBUtil::checkString($var, True); - $this->watchlist_id = $var; - - return $this; - } - - /** - * Required. The watchlist to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Watchlist|null - */ - public function getWatchlist() - { - return $this->watchlist; - } - - public function hasWatchlist() - { - return isset($this->watchlist); - } - - public function clearWatchlist() - { - unset($this->watchlist); - } - - /** - * Required. The watchlist to create. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Watchlist $var - * @return $this - */ - public function setWatchlist($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); - $this->watchlist = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php deleted file mode 100644 index e51b5683efc7..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardAccess.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.chronicle.v1.DashboardAccess - */ -class DashboardAccess -{ - /** - * Default unspecified. - * - * Generated from protobuf enum DASHBOARD_ACCESS_UNSPECIFIED = 0; - */ - const DASHBOARD_ACCESS_UNSPECIFIED = 0; - /** - * Private dashboards created by users/customers. - * - * Generated from protobuf enum DASHBOARD_PRIVATE = 1; - */ - const DASHBOARD_PRIVATE = 1; - /** - * Public dashboards created by users/customers. - * - * Generated from protobuf enum DASHBOARD_PUBLIC = 2; - */ - const DASHBOARD_PUBLIC = 2; - - private static $valueToName = [ - self::DASHBOARD_ACCESS_UNSPECIFIED => 'DASHBOARD_ACCESS_UNSPECIFIED', - self::DASHBOARD_PRIVATE => 'DASHBOARD_PRIVATE', - self::DASHBOARD_PUBLIC => 'DASHBOARD_PUBLIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php deleted file mode 100644 index 952bcdd0a76a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart.php +++ /dev/null @@ -1,431 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart - */ -class DashboardChart extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the dashboardChart. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Display name/Title of the dashboardChart visible to users. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description of the dashboardChart. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. NativeDashboard this chart belongs to. - * - * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $native_dashboard = ''; - /** - * Optional. Type of tile i.e., visualization, button or text. - * - * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $tile_type = 0; - /** - * Optional. Query and datasource used in the chart. Should be empty for - * Button Tiles. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $chart_datasource = null; - /** - * Required. Depending on tile_type one of below fields will be required. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $visualization = null; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. Drill down configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $drill_down_config = null; - /** - * Optional. List of Advanced Filter tokens used in this chart's query (e.g., - * "hostname", "ip"). This allows the UI to identify dependencies without - * parsing the query text. The tokens are stored without the wrapping '$' - * characters. - * The number of tokens are not expected to be more than 10. - * - * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tokens; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the dashboardChart. - * @type string $display_name - * Required. Display name/Title of the dashboardChart visible to users. - * @type string $description - * Optional. Description of the dashboardChart. - * @type string $native_dashboard - * Output only. NativeDashboard this chart belongs to. - * @type int $tile_type - * Optional. Type of tile i.e., visualization, button or text. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource $chart_datasource - * Optional. Query and datasource used in the chart. Should be empty for - * Button Tiles. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization $visualization - * Required. Depending on tile_type one of below fields will be required. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig $drill_down_config - * Optional. Drill down configuration. - * @type string[] $tokens - * Optional. List of Advanced Filter tokens used in this chart's query (e.g., - * "hostname", "ip"). This allows the UI to identify dependencies without - * parsing the query text. The tokens are stored without the wrapping '$' - * characters. - * The number of tokens are not expected to be more than 10. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the dashboardChart. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the dashboardChart. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Display name/Title of the dashboardChart visible to users. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name/Title of the dashboardChart visible to users. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the dashboardChart. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the dashboardChart. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. NativeDashboard this chart belongs to. - * - * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - /** - * Output only. NativeDashboard this chart belongs to. - * - * Generated from protobuf field string native_dashboard = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkString($var, True); - $this->native_dashboard = $var; - - return $this; - } - - /** - * Optional. Type of tile i.e., visualization, button or text. - * - * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTileType() - { - return $this->tile_type; - } - - /** - * Optional. Type of tile i.e., visualization, button or text. - * - * Generated from protobuf field .google.cloud.chronicle.v1.TileType tile_type = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTileType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\TileType::class); - $this->tile_type = $var; - - return $this; - } - - /** - * Optional. Query and datasource used in the chart. Should be empty for - * Button Tiles. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource|null - */ - public function getChartDatasource() - { - return $this->chart_datasource; - } - - public function hasChartDatasource() - { - return isset($this->chart_datasource); - } - - public function clearChartDatasource() - { - unset($this->chart_datasource); - } - - /** - * Optional. Query and datasource used in the chart. Should be empty for - * Button Tiles. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.ChartDatasource chart_datasource = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource $var - * @return $this - */ - public function setChartDatasource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\ChartDatasource::class); - $this->chart_datasource = $var; - - return $this; - } - - /** - * Required. Depending on tile_type one of below fields will be required. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization|null - */ - public function getVisualization() - { - return $this->visualization; - } - - public function hasVisualization() - { - return isset($this->visualization); - } - - public function clearVisualization() - { - unset($this->visualization); - } - - /** - * Required. Depending on tile_type one of below fields will be required. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization visualization = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization $var - * @return $this - */ - public function setVisualization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization::class); - $this->visualization = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Drill down configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig|null - */ - public function getDrillDownConfig() - { - return $this->drill_down_config; - } - - public function hasDrillDownConfig() - { - return isset($this->drill_down_config); - } - - public function clearDrillDownConfig() - { - unset($this->drill_down_config); - } - - /** - * Optional. Drill down configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig drill_down_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig $var - * @return $this - */ - public function setDrillDownConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig::class); - $this->drill_down_config = $var; - - return $this; - } - - /** - * Optional. List of Advanced Filter tokens used in this chart's query (e.g., - * "hostname", "ip"). This allows the UI to identify dependencies without - * parsing the query text. The tokens are stored without the wrapping '$' - * characters. - * The number of tokens are not expected to be more than 10. - * - * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTokens() - { - return $this->tokens; - } - - /** - * Optional. List of Advanced Filter tokens used in this chart's query (e.g., - * "hostname", "ip"). This allows the UI to identify dependencies without - * parsing the query text. The tokens are stored without the wrapping '$' - * characters. - * The number of tokens are not expected to be more than 10. - * - * Generated from protobuf field repeated string tokens = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTokens($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tokens = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php deleted file mode 100644 index 7e4895cd74ad..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/ChartDatasource.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.ChartDatasource - */ -class ChartDatasource extends \Google\Protobuf\Internal\Message -{ - /** - * Reference to dashboard query resource used in the chart. - * - * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { - */ - protected $dashboard_query = ''; - /** - * Name of the datasource used in the chart. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; - */ - private $data_sources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dashboard_query - * Reference to dashboard query resource used in the chart. - * @type int[] $data_sources - * Name of the datasource used in the chart. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Reference to dashboard query resource used in the chart. - * - * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getDashboardQuery() - { - return $this->dashboard_query; - } - - /** - * Reference to dashboard query resource used in the chart. - * - * Generated from protobuf field string dashboard_query = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDashboardQuery($var) - { - GPBUtil::checkString($var, True); - $this->dashboard_query = $var; - - return $this; - } - - /** - * Name of the datasource used in the chart. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; - * @return RepeatedField - */ - public function getDataSources() - { - return $this->data_sources; - } - - /** - * Name of the datasource used in the chart. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; - * @param int[] $var - * @return $this - */ - public function setDataSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\DataSource::class); - $this->data_sources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php deleted file mode 100644 index 57aacc8685ca..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig - */ -class DrillDownConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Left click drill downs. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $left_drill_downs; - /** - * Required. Right click drill downs. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $right_drill_downs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $left_drill_downs - * Required. Left click drill downs. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $right_drill_downs - * Required. Right click drill downs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. Left click drill downs. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown> - */ - public function getLeftDrillDowns() - { - return $this->left_drill_downs; - } - - /** - * Required. Left click drill downs. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown left_drill_downs = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $var - * @return $this - */ - public function setLeftDrillDowns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown::class); - $this->left_drill_downs = $arr; - - return $this; - } - - /** - * Required. Right click drill downs. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown> - */ - public function getRightDrillDowns() - { - return $this->right_drill_downs; - } - - /** - * Required. Right click drill downs. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown right_drill_downs = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown[] $var - * @return $this - */ - public function setRightDrillDowns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown::class); - $this->right_drill_downs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php deleted file mode 100644 index b6c23fd7a06e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown.php +++ /dev/null @@ -1,176 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown - */ -class DrillDown extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the drill down. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Required. Display name of the drill down. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - protected $settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings $default_settings - * Default drill down settings. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings $custom_settings - * Custom drill down settings. - * @type string $id - * Required. ID of the drill down. - * @type string $display_name - * Required. Display name of the drill down. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Default drill down settings. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings default_settings = 3; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings|null - */ - public function getDefaultSettings() - { - return $this->readOneof(3); - } - - public function hasDefaultSettings() - { - return $this->hasOneof(3); - } - - /** - * Default drill down settings. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings default_settings = 3; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings $var - * @return $this - */ - public function setDefaultSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\DefaultDrillDownSettings::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Custom drill down settings. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings custom_settings = 4; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings|null - */ - public function getCustomSettings() - { - return $this->readOneof(4); - } - - public function hasCustomSettings() - { - return $this->hasOneof(4); - } - - /** - * Custom drill down settings. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings custom_settings = 4; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings $var - * @return $this - */ - public function setCustomSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. ID of the drill down. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. ID of the drill down. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Required. Display name of the drill down. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name of the drill down. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getSettings() - { - return $this->whichOneof("settings"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php deleted file mode 100644 index 51779e14d83d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings - */ -class CustomDrillDownSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Whether to open the drill down action in a new tab. - * - * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $new_tab = false; - /** - * Optional. Table chart column name to associate the custom drill down - * action on left click. - * - * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $left_click_column = ''; - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery $query - * Drill down query action config. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter $filter - * Drill down filter action config. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink $external_link - * Drill down external link action config. - * @type bool $new_tab - * Required. Whether to open the drill down action in a new tab. - * @type string $left_click_column - * Optional. Table chart column name to associate the custom drill down - * action on left click. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Drill down query action config. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery query = 3; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery|null - */ - public function getQuery() - { - return $this->readOneof(3); - } - - public function hasQuery() - { - return $this->hasOneof(3); - } - - /** - * Drill down query action config. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery query = 3; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownQuery::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Drill down filter action config. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter filter = 4; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter|null - */ - public function getFilter() - { - return $this->readOneof(4); - } - - public function hasFilter() - { - return $this->hasOneof(4); - } - - /** - * Drill down filter action config. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter filter = 4; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Drill down external link action config. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink external_link = 5; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink|null - */ - public function getExternalLink() - { - return $this->readOneof(5); - } - - public function hasExternalLink() - { - return $this->hasOneof(5); - } - - /** - * Drill down external link action config. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink external_link = 5; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink $var - * @return $this - */ - public function setExternalLink($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownExternalLink::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Required. Whether to open the drill down action in a new tab. - * - * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getNewTab() - { - return $this->new_tab; - } - - /** - * Required. Whether to open the drill down action in a new tab. - * - * Generated from protobuf field bool new_tab = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setNewTab($var) - { - GPBUtil::checkBool($var); - $this->new_tab = $var; - - return $this; - } - - /** - * Optional. Table chart column name to associate the custom drill down - * action on left click. - * - * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLeftClickColumn() - { - return $this->left_click_column; - } - - /** - * Optional. Table chart column name to associate the custom drill down - * action on left click. - * - * Generated from protobuf field string left_click_column = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLeftClickColumn($var) - { - GPBUtil::checkString($var, True); - $this->left_click_column = $var; - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php deleted file mode 100644 index 40700f5c4d06..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownExternalLink.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownExternalLink - */ -class DrillDownExternalLink extends \Google\Protobuf\Internal\Message -{ - /** - * Required. External link the drill down action should redirect to. - * - * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $link = ''; - /** - * Optional. Description of the external link. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $link - * Required. External link the drill down action should redirect to. - * @type string $description - * Optional. Description of the external link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. External link the drill down action should redirect to. - * - * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLink() - { - return $this->link; - } - - /** - * Required. External link the drill down action should redirect to. - * - * Generated from protobuf field string link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLink($var) - { - GPBUtil::checkString($var, True); - $this->link = $var; - - return $this; - } - - /** - * Optional. Description of the external link. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the external link. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php deleted file mode 100644 index ec6d39b1562b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter - */ -class DrillDownFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Dashboard filters to be applied on drill down. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $dashboard_filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter[] $dashboard_filters - * Required. Dashboard filters to be applied on drill down. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. Dashboard filters to be applied on drill down. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter> - */ - public function getDashboardFilters() - { - return $this->dashboard_filters; - } - - /** - * Required. Dashboard filters to be applied on drill down. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter dashboard_filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter[] $var - * @return $this - */ - public function setDashboardFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\DrillDownConfig\DrillDown\CustomDrillDownSettings\DrillDownFilter\DrillDownDashboardFilter::class); - $this->dashboard_filters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php deleted file mode 100644 index 31976604ae30..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownFilter/DrillDownDashboardFilter.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownFilter.DrillDownDashboardFilter - */ -class DrillDownDashboardFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the dashboard filter. - * - * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dashboard_filter_id = ''; - /** - * Required. Filter operator and field values for the dashboard - * filter. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $filter_operator_and_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dashboard_filter_id - * Required. ID of the dashboard filter. - * @type \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $filter_operator_and_values - * Required. Filter operator and field values for the dashboard - * filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the dashboard filter. - * - * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDashboardFilterId() - { - return $this->dashboard_filter_id; - } - - /** - * Required. ID of the dashboard filter. - * - * Generated from protobuf field string dashboard_filter_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDashboardFilterId($var) - { - GPBUtil::checkString($var, True); - $this->dashboard_filter_id = $var; - - return $this; - } - - /** - * Required. Filter operator and field values for the dashboard - * filter. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\FilterOperatorAndValues> - */ - public function getFilterOperatorAndValues() - { - return $this->filter_operator_and_values; - } - - /** - * Required. Filter operator and field values for the dashboard - * filter. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $var - * @return $this - */ - public function setFilterOperatorAndValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FilterOperatorAndValues::class); - $this->filter_operator_and_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php deleted file mode 100644 index ed1b8a5b57d2..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/CustomDrillDownSettings/DrillDownQuery.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.CustomDrillDownSettings.DrillDownQuery - */ -class DrillDownQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Search query to be executed on drill down. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * Required. Search query to be executed on drill down. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. Search query to be executed on drill down. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. Search query to be executed on drill down. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php deleted file mode 100644 index ddb7719040b2..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/DrillDownConfig/DrillDown/DefaultDrillDownSettings.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.DrillDownConfig.DrillDown.DefaultDrillDownSettings - */ -class DefaultDrillDownSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Whether the default drill down is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Required. Whether the default drill down is enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. Whether the default drill down is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Required. Whether the default drill down is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php deleted file mode 100644 index af7b13fb1d9b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization.php +++ /dev/null @@ -1,533 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization - */ -class Visualization extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; - */ - private $x_axes; - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; - */ - private $y_axes; - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; - */ - private $series; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; - */ - protected $tooltip = null; - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; - */ - private $legends; - /** - * Column Definition to represent chart as a table. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; - */ - private $column_defs; - /** - * Optional. Configuration for table appearance. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_config = null; - /** - * Button config for a chart if tileType is TILE_TYPE_BUTTON. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; - */ - protected $button = null; - /** - * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $markdown = null; - /** - * Optional. Selected column for series - * - * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $series_column; - /** - * Optional. Selected grouping type for series - * - * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $grouping_type = ''; - /** - * Optional. Google Maps config for a chart if type is GOOGLE MAPS. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $google_maps_config = null; - /** - * Optional. Whether threshold coloring is enabled for the chart. If it's - * enabled, the chart will be colored based on the values stored in - * VisualMap below. - * - * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $threshold_coloring_enabled = false; - /** - * Optional. Visual maps for the chart. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $visual_maps; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $x_axes - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $y_axes - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series[] $series - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip $tooltip - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend[] $legends - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef[] $column_defs - * Column Definition to represent chart as a table. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig $table_config - * Optional. Configuration for table appearance. - * @type \Google\Cloud\Chronicle\V1\Button $button - * Button config for a chart if tileType is TILE_TYPE_BUTTON. - * @type \Google\Cloud\Chronicle\V1\Markdown $markdown - * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. - * @type string[] $series_column - * Optional. Selected column for series - * @type string $grouping_type - * Optional. Selected grouping type for series - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig $google_maps_config - * Optional. Google Maps config for a chart if type is GOOGLE MAPS. - * @type bool $threshold_coloring_enabled - * Optional. Whether threshold coloring is enabled for the chart. If it's - * enabled, the chart will be colored based on the values stored in - * VisualMap below. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap[] $visual_maps - * Optional. Visual maps for the chart. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis> - */ - public function getXAxes() - { - return $this->x_axes; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis x_axes = 7; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $var - * @return $this - */ - public function setXAxes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis::class); - $this->x_axes = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis> - */ - public function getYAxes() - { - return $this->y_axes; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Axis y_axes = 8; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis[] $var - * @return $this - */ - public function setYAxes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Axis::class); - $this->y_axes = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series> - */ - public function getSeries() - { - return $this->series; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series series = 3; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series[] $var - * @return $this - */ - public function setSeries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series::class); - $this->series = $arr; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip|null - */ - public function getTooltip() - { - return $this->tooltip; - } - - public function hasTooltip() - { - return isset($this->tooltip); - } - - public function clearTooltip() - { - unset($this->tooltip); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip tooltip = 4; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip $var - * @return $this - */ - public function setTooltip($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Tooltip::class); - $this->tooltip = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend> - */ - public function getLegends() - { - return $this->legends; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Legend legends = 9; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend[] $var - * @return $this - */ - public function setLegends($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Legend::class); - $this->legends = $arr; - - return $this; - } - - /** - * Column Definition to represent chart as a table. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef> - */ - public function getColumnDefs() - { - return $this->column_defs; - } - - /** - * Column Definition to represent chart as a table. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef column_defs = 10; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef[] $var - * @return $this - */ - public function setColumnDefs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnDef::class); - $this->column_defs = $arr; - - return $this; - } - - /** - * Optional. Configuration for table appearance. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig|null - */ - public function getTableConfig() - { - return $this->table_config; - } - - public function hasTableConfig() - { - return isset($this->table_config); - } - - public function clearTableConfig() - { - unset($this->table_config); - } - - /** - * Optional. Configuration for table appearance. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig table_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig $var - * @return $this - */ - public function setTableConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\TableConfig::class); - $this->table_config = $var; - - return $this; - } - - /** - * Button config for a chart if tileType is TILE_TYPE_BUTTON. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; - * @return \Google\Cloud\Chronicle\V1\Button|null - */ - public function getButton() - { - return $this->button; - } - - public function hasButton() - { - return isset($this->button); - } - - public function clearButton() - { - unset($this->button); - } - - /** - * Button config for a chart if tileType is TILE_TYPE_BUTTON. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Button button = 11; - * @param \Google\Cloud\Chronicle\V1\Button $var - * @return $this - */ - public function setButton($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Button::class); - $this->button = $var; - - return $this; - } - - /** - * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\Markdown|null - */ - public function getMarkdown() - { - return $this->markdown; - } - - public function hasMarkdown() - { - return isset($this->markdown); - } - - public function clearMarkdown() - { - unset($this->markdown); - } - - /** - * Optional. Markdown config for a chart if tileType is TILE_TYPE_MARKDOWN. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Markdown markdown = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\Markdown $var - * @return $this - */ - public function setMarkdown($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Markdown::class); - $this->markdown = $var; - - return $this; - } - - /** - * Optional. Selected column for series - * - * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSeriesColumn() - { - return $this->series_column; - } - - /** - * Optional. Selected column for series - * - * Generated from protobuf field repeated string series_column = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setSeriesColumn($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->series_column = $arr; - - return $this; - } - - /** - * Optional. Selected grouping type for series - * - * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getGroupingType() - { - return $this->grouping_type; - } - - /** - * Optional. Selected grouping type for series - * - * Generated from protobuf field string grouping_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setGroupingType($var) - { - GPBUtil::checkString($var, True); - $this->grouping_type = $var; - - return $this; - } - - /** - * Optional. Google Maps config for a chart if type is GOOGLE MAPS. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig|null - */ - public function getGoogleMapsConfig() - { - return $this->google_maps_config; - } - - public function hasGoogleMapsConfig() - { - return isset($this->google_maps_config); - } - - public function clearGoogleMapsConfig() - { - unset($this->google_maps_config); - } - - /** - * Optional. Google Maps config for a chart if type is GOOGLE MAPS. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig google_maps_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig $var - * @return $this - */ - public function setGoogleMapsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig::class); - $this->google_maps_config = $var; - - return $this; - } - - /** - * Optional. Whether threshold coloring is enabled for the chart. If it's - * enabled, the chart will be colored based on the values stored in - * VisualMap below. - * - * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getThresholdColoringEnabled() - { - return $this->threshold_coloring_enabled; - } - - /** - * Optional. Whether threshold coloring is enabled for the chart. If it's - * enabled, the chart will be colored based on the values stored in - * VisualMap below. - * - * Generated from protobuf field bool threshold_coloring_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setThresholdColoringEnabled($var) - { - GPBUtil::checkBool($var); - $this->threshold_coloring_enabled = $var; - - return $this; - } - - /** - * Optional. Visual maps for the chart. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap> - */ - public function getVisualMaps() - { - return $this->visual_maps; - } - - /** - * Optional. Visual maps for the chart. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap visual_maps = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap[] $var - * @return $this - */ - public function setVisualMaps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap::class); - $this->visual_maps = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php deleted file mode 100644 index b7d063f2cbc7..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Axis.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Axis - */ -class Axis extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; - */ - protected $axis_type = 0; - /** - * Generated from protobuf field string display_name = 5; - */ - protected $display_name = ''; - /** - * Minimum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.min - * - * Generated from protobuf field optional int32 min = 6; - */ - protected $min = null; - /** - * Maximum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.max - * - * Generated from protobuf field optional int32 max = 7; - */ - protected $max = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $axis_type - * @type string $display_name - * @type int $min - * Minimum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.min - * @type int $max - * Maximum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.max - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; - * @return int - */ - public function getAxisType() - { - return $this->axis_type; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.AxisType axis_type = 4; - * @param int $var - * @return $this - */ - public function setAxisType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\AxisType::class); - $this->axis_type = $var; - - return $this; - } - - /** - * Generated from protobuf field string display_name = 5; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Generated from protobuf field string display_name = 5; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Minimum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.min - * - * Generated from protobuf field optional int32 min = 6; - * @return int - */ - public function getMin() - { - return isset($this->min) ? $this->min : 0; - } - - public function hasMin() - { - return isset($this->min); - } - - public function clearMin() - { - unset($this->min); - } - - /** - * Minimum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.min - * - * Generated from protobuf field optional int32 min = 6; - * @param int $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkInt32($var); - $this->min = $var; - - return $this; - } - - /** - * Maximum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.max - * - * Generated from protobuf field optional int32 max = 7; - * @return int - */ - public function getMax() - { - return isset($this->max) ? $this->max : 0; - } - - public function hasMax() - { - return isset($this->max); - } - - public function clearMax() - { - unset($this->max); - } - - /** - * Maximum value to be rendered in ECharts as per - * https://echarts.apache.org/en/option.html#xAxis.max - * - * Generated from protobuf field optional int32 max = 7; - * @param int $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkInt32($var); - $this->max = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php deleted file mode 100644 index 1455eed4278d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnDef.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef - */ -class ColumnDef extends \Google\Protobuf\Internal\Message -{ - /** - * Field key in data. - * - * Generated from protobuf field string field = 1; - */ - protected $field = ''; - /** - * Header name for column. - * - * Generated from protobuf field string header = 2; - */ - protected $header = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Field key in data. - * @type string $header - * Header name for column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Field key in data. - * - * Generated from protobuf field string field = 1; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Field key in data. - * - * Generated from protobuf field string field = 1; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * Header name for column. - * - * Generated from protobuf field string header = 2; - * @return string - */ - public function getHeader() - { - return $this->header; - } - - /** - * Header name for column. - * - * Generated from protobuf field string header = 2; - * @param string $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkString($var, True); - $this->header = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php deleted file mode 100644 index fdcdde1cf7bd..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnRenderTypeSettings.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings - */ -class ColumnRenderTypeSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Field key in data. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $field = ''; - /** - * Optional. Column render type. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $column_render_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Optional. Field key in data. - * @type int $column_render_type - * Optional. Column render type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Field key in data. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Optional. Field key in data. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * Optional. Column render type. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getColumnRenderType() - { - return $this->column_render_type; - } - - /** - * Optional. Column render type. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RenderType column_render_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setColumnRenderType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RenderType::class); - $this->column_render_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php deleted file mode 100644 index 55a4cb54c72b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/ColumnTooltipSettings.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings - */ -class ColumnTooltipSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field key in data. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = ''; - /** - * Optional. Column header tooltip text. - * - * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $header_tooltip_text = ''; - /** - * Optional. Column cell tooltip text. - * - * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cell_tooltip_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Required. Field key in data. - * @type string $header_tooltip_text - * Optional. Column header tooltip text. - * @type string $cell_tooltip_text - * Optional. Column cell tooltip text. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field key in data. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Required. Field key in data. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * Optional. Column header tooltip text. - * - * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getHeaderTooltipText() - { - return $this->header_tooltip_text; - } - - /** - * Optional. Column header tooltip text. - * - * Generated from protobuf field string header_tooltip_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setHeaderTooltipText($var) - { - GPBUtil::checkString($var, True); - $this->header_tooltip_text = $var; - - return $this; - } - - /** - * Optional. Column cell tooltip text. - * - * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCellTooltipText() - { - return $this->cell_tooltip_text; - } - - /** - * Optional. Column cell tooltip text. - * - * Generated from protobuf field string cell_tooltip_text = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCellTooltipText($var) - { - GPBUtil::checkString($var, True); - $this->cell_tooltip_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php deleted file mode 100644 index 338161b61fa6..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig - */ -class GoogleMapsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Data settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_settings = null; - /** - * Optional. Plot mode for the map. This is used to determine whether to - * show points, heatmap or both. - * - * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $plot_mode = 0; - /** - * Optional. Map position settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $map_position = null; - /** - * Optional. Point settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $point_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings $data_settings - * Optional. Data settings for the map. - * @type int $plot_mode - * Optional. Plot mode for the map. This is used to determine whether to - * show points, heatmap or both. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition $map_position - * Optional. Map position settings for the map. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings $point_settings - * Optional. Point settings for the map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Data settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings|null - */ - public function getDataSettings() - { - return $this->data_settings; - } - - public function hasDataSettings() - { - return isset($this->data_settings); - } - - public function clearDataSettings() - { - unset($this->data_settings); - } - - /** - * Optional. Data settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings data_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings $var - * @return $this - */ - public function setDataSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\DataSettings::class); - $this->data_settings = $var; - - return $this; - } - - /** - * Optional. Plot mode for the map. This is used to determine whether to - * show points, heatmap or both. - * - * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPlotMode() - { - return $this->plot_mode; - } - - /** - * Optional. Plot mode for the map. This is used to determine whether to - * show points, heatmap or both. - * - * Generated from protobuf field .google.cloud.chronicle.v1.PlotMode plot_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPlotMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\PlotMode::class); - $this->plot_mode = $var; - - return $this; - } - - /** - * Optional. Map position settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition|null - */ - public function getMapPosition() - { - return $this->map_position; - } - - public function hasMapPosition() - { - return isset($this->map_position); - } - - public function clearMapPosition() - { - unset($this->map_position); - } - - /** - * Optional. Map position settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition map_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition $var - * @return $this - */ - public function setMapPosition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\MapPosition::class); - $this->map_position = $var; - - return $this; - } - - /** - * Optional. Point settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings|null - */ - public function getPointSettings() - { - return $this->point_settings; - } - - public function hasPointSettings() - { - return isset($this->point_settings); - } - - public function clearPointSettings() - { - unset($this->point_settings); - } - - /** - * Optional. Point settings for the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings point_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings $var - * @return $this - */ - public function setPointSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\GoogleMapsConfig\PointSettings::class); - $this->point_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php deleted file mode 100644 index 9266e58d7376..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/DataSettings.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.DataSettings - */ -class DataSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Latitude column. - * - * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latitude_column = ''; - /** - * Optional. Longitude column. - * - * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $longitude_column = ''; - /** - * Optional. Field to count. - * - * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $count_column = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $latitude_column - * Optional. Latitude column. - * @type string $longitude_column - * Optional. Longitude column. - * @type string $count_column - * Optional. Field to count. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Latitude column. - * - * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLatitudeColumn() - { - return $this->latitude_column; - } - - /** - * Optional. Latitude column. - * - * Generated from protobuf field string latitude_column = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLatitudeColumn($var) - { - GPBUtil::checkString($var, True); - $this->latitude_column = $var; - - return $this; - } - - /** - * Optional. Longitude column. - * - * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLongitudeColumn() - { - return $this->longitude_column; - } - - /** - * Optional. Longitude column. - * - * Generated from protobuf field string longitude_column = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLongitudeColumn($var) - { - GPBUtil::checkString($var, True); - $this->longitude_column = $var; - - return $this; - } - - /** - * Optional. Field to count. - * - * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCountColumn() - { - return $this->count_column; - } - - /** - * Optional. Field to count. - * - * Generated from protobuf field string count_column = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCountColumn($var) - { - GPBUtil::checkString($var, True); - $this->count_column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php deleted file mode 100644 index 4fded9790bcd..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/MapPosition.php +++ /dev/null @@ -1,177 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.MapPosition - */ -class MapPosition extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to fit the map to the data. - * If true, the map will be resized to fit the data. - * If false, langitude and longitude will be used to set the map size. - * - * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fit_data = false; - /** - * Optional. Latitude of the map. - * - * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latitude_value = 0.0; - /** - * Optional. Longitude of the map. - * - * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $longitude_value = 0.0; - /** - * Optional. Scale of the map. - * - * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $zoom_scale_value = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $fit_data - * Optional. Whether to fit the map to the data. - * If true, the map will be resized to fit the data. - * If false, langitude and longitude will be used to set the map size. - * @type float $latitude_value - * Optional. Latitude of the map. - * @type float $longitude_value - * Optional. Longitude of the map. - * @type float $zoom_scale_value - * Optional. Scale of the map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to fit the map to the data. - * If true, the map will be resized to fit the data. - * If false, langitude and longitude will be used to set the map size. - * - * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getFitData() - { - return $this->fit_data; - } - - /** - * Optional. Whether to fit the map to the data. - * If true, the map will be resized to fit the data. - * If false, langitude and longitude will be used to set the map size. - * - * Generated from protobuf field bool fit_data = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setFitData($var) - { - GPBUtil::checkBool($var); - $this->fit_data = $var; - - return $this; - } - - /** - * Optional. Latitude of the map. - * - * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getLatitudeValue() - { - return $this->latitude_value; - } - - /** - * Optional. Latitude of the map. - * - * Generated from protobuf field double latitude_value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setLatitudeValue($var) - { - GPBUtil::checkDouble($var); - $this->latitude_value = $var; - - return $this; - } - - /** - * Optional. Longitude of the map. - * - * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getLongitudeValue() - { - return $this->longitude_value; - } - - /** - * Optional. Longitude of the map. - * - * Generated from protobuf field double longitude_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setLongitudeValue($var) - { - GPBUtil::checkDouble($var); - $this->longitude_value = $var; - - return $this; - } - - /** - * Optional. Scale of the map. - * - * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getZoomScaleValue() - { - return $this->zoom_scale_value; - } - - /** - * Optional. Scale of the map. - * - * Generated from protobuf field double zoom_scale_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setZoomScaleValue($var) - { - GPBUtil::checkDouble($var); - $this->zoom_scale_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php deleted file mode 100644 index ae9248b5adac..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/GoogleMapsConfig/PointSettings.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.GoogleMapsConfig.PointSettings - */ -class PointSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Point size type for the map. This is used to - * determine the size of the points on the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $point_size_type = 0; - /** - * Optional. Color for the point on the map. - * - * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $color = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $point_size_type - * Optional. Point size type for the map. This is used to - * determine the size of the points on the map. - * @type string $color - * Optional. Color for the point on the map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Point size type for the map. This is used to - * determine the size of the points on the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPointSizeType() - { - return $this->point_size_type; - } - - /** - * Optional. Point size type for the map. This is used to - * determine the size of the points on the map. - * - * Generated from protobuf field .google.cloud.chronicle.v1.PointSizeType point_size_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPointSizeType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\PointSizeType::class); - $this->point_size_type = $var; - - return $this; - } - - /** - * Optional. Color for the point on the map. - * - * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Optional. Color for the point on the map. - * - * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkString($var, True); - $this->color = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php deleted file mode 100644 index 85508b0d8051..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Legend.php +++ /dev/null @@ -1,328 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Legend - */ -class Legend extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Generated from protobuf field bool show = 2; - */ - protected $show = false; - /** - * Generated from protobuf field int32 z_level = 3; - */ - protected $z_level = 0; - /** - * Generated from protobuf field int32 z = 4; - */ - protected $z = 0; - /** - * Generated from protobuf field int32 left = 5; - */ - protected $left = 0; - /** - * Generated from protobuf field int32 top = 6; - */ - protected $top = 0; - /** - * Generated from protobuf field int32 right = 7; - */ - protected $right = 0; - /** - * Generated from protobuf field int32 bottom = 8; - */ - protected $bottom = 0; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; - */ - protected $legend_orient = 0; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; - */ - protected $legend_align = 0; - /** - * Generated from protobuf field repeated int32 padding = 11; - */ - private $padding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * @type bool $show - * @type int $z_level - * @type int $z - * @type int $left - * @type int $top - * @type int $right - * @type int $bottom - * @type int $legend_orient - * @type int $legend_align - * @type int[] $padding - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Generated from protobuf field bool show = 2; - * @return bool - */ - public function getShow() - { - return $this->show; - } - - /** - * Generated from protobuf field bool show = 2; - * @param bool $var - * @return $this - */ - public function setShow($var) - { - GPBUtil::checkBool($var); - $this->show = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 z_level = 3; - * @return int - */ - public function getZLevel() - { - return $this->z_level; - } - - /** - * Generated from protobuf field int32 z_level = 3; - * @param int $var - * @return $this - */ - public function setZLevel($var) - { - GPBUtil::checkInt32($var); - $this->z_level = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 z = 4; - * @return int - */ - public function getZ() - { - return $this->z; - } - - /** - * Generated from protobuf field int32 z = 4; - * @param int $var - * @return $this - */ - public function setZ($var) - { - GPBUtil::checkInt32($var); - $this->z = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 left = 5; - * @return int - */ - public function getLeft() - { - return $this->left; - } - - /** - * Generated from protobuf field int32 left = 5; - * @param int $var - * @return $this - */ - public function setLeft($var) - { - GPBUtil::checkInt32($var); - $this->left = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 top = 6; - * @return int - */ - public function getTop() - { - return $this->top; - } - - /** - * Generated from protobuf field int32 top = 6; - * @param int $var - * @return $this - */ - public function setTop($var) - { - GPBUtil::checkInt32($var); - $this->top = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 right = 7; - * @return int - */ - public function getRight() - { - return $this->right; - } - - /** - * Generated from protobuf field int32 right = 7; - * @param int $var - * @return $this - */ - public function setRight($var) - { - GPBUtil::checkInt32($var); - $this->right = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 bottom = 8; - * @return int - */ - public function getBottom() - { - return $this->bottom; - } - - /** - * Generated from protobuf field int32 bottom = 8; - * @param int $var - * @return $this - */ - public function setBottom($var) - { - GPBUtil::checkInt32($var); - $this->bottom = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; - * @return int - */ - public function getLegendOrient() - { - return $this->legend_orient; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.LegendOrient legend_orient = 12; - * @param int $var - * @return $this - */ - public function setLegendOrient($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\LegendOrient::class); - $this->legend_orient = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; - * @return int - */ - public function getLegendAlign() - { - return $this->legend_align; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.LegendAlign legend_align = 13; - * @param int $var - * @return $this - */ - public function setLegendAlign($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\LegendAlign::class); - $this->legend_align = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated int32 padding = 11; - * @return RepeatedField - */ - public function getPadding() - { - return $this->padding; - } - - /** - * Generated from protobuf field repeated int32 padding = 11; - * @param int[] $var - * @return $this - */ - public function setPadding($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->padding = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php deleted file mode 100644 index d9b2e06e31be..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series.php +++ /dev/null @@ -1,627 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series - */ -class Series extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; - */ - protected $series_type = 0; - /** - * user specified series label - * - * Generated from protobuf field string series_name = 2; - */ - protected $series_name = ''; - /** - * Generated from protobuf field bool show_symbol = 4; - */ - protected $show_symbol = false; - /** - * Generated from protobuf field bool show_background = 5; - */ - protected $show_background = false; - /** - * Generated from protobuf field string stack = 6; - */ - protected $stack = ''; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; - */ - protected $series_stack_strategy = 0; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; - */ - protected $encode = null; - /** - * Generated from protobuf field string label = 11; - */ - protected $label = ''; - /** - * Generated from protobuf field string field = 12; - */ - protected $field = ''; - /** - * Optional. Data label config for a series. - * Displays data vaule in the chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_label = null; - /** - * Optional. Used to make a pie chart into a douhnut chart - * - * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $radius; - /** - * Optional. Custom styling for chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $item_style = null; - /** - * Optional. Series unique value from the query result - * - * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $series_unique_value = ''; - /** - * Optional. Custom styling for area chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $area_style = null; - /** - * Optional. Field to be saved for retrieving slice colors for the chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $item_colors = null; - /** - * Optional. Field to be saved for retrieving gauge config for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $gauge_config = null; - /** - * Optional. Fields to capture trend config for metric charts - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_trend_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $series_type - * @type string $series_name - * user specified series label - * @type bool $show_symbol - * @type bool $show_background - * @type string $stack - * @type int $series_stack_strategy - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode $encode - * @type string $label - * @type string $field - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel $data_label - * Optional. Data label config for a series. - * Displays data vaule in the chart - * @type string[] $radius - * Optional. Used to make a pie chart into a douhnut chart - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle $item_style - * Optional. Custom styling for chart - * @type string $series_unique_value - * Optional. Series unique value from the query result - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle $area_style - * Optional. Custom styling for area chart - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors $item_colors - * Optional. Field to be saved for retrieving slice colors for the chart - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig $gauge_config - * Optional. Field to be saved for retrieving gauge config for gauge chart - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig $metric_trend_config - * Optional. Fields to capture trend config for metric charts - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; - * @return int - */ - public function getSeriesType() - { - return $this->series_type; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.SeriesType series_type = 8; - * @param int $var - * @return $this - */ - public function setSeriesType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\SeriesType::class); - $this->series_type = $var; - - return $this; - } - - /** - * user specified series label - * - * Generated from protobuf field string series_name = 2; - * @return string - */ - public function getSeriesName() - { - return $this->series_name; - } - - /** - * user specified series label - * - * Generated from protobuf field string series_name = 2; - * @param string $var - * @return $this - */ - public function setSeriesName($var) - { - GPBUtil::checkString($var, True); - $this->series_name = $var; - - return $this; - } - - /** - * Generated from protobuf field bool show_symbol = 4; - * @return bool - */ - public function getShowSymbol() - { - return $this->show_symbol; - } - - /** - * Generated from protobuf field bool show_symbol = 4; - * @param bool $var - * @return $this - */ - public function setShowSymbol($var) - { - GPBUtil::checkBool($var); - $this->show_symbol = $var; - - return $this; - } - - /** - * Generated from protobuf field bool show_background = 5; - * @return bool - */ - public function getShowBackground() - { - return $this->show_background; - } - - /** - * Generated from protobuf field bool show_background = 5; - * @param bool $var - * @return $this - */ - public function setShowBackground($var) - { - GPBUtil::checkBool($var); - $this->show_background = $var; - - return $this; - } - - /** - * Generated from protobuf field string stack = 6; - * @return string - */ - public function getStack() - { - return $this->stack; - } - - /** - * Generated from protobuf field string stack = 6; - * @param string $var - * @return $this - */ - public function setStack($var) - { - GPBUtil::checkString($var, True); - $this->stack = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; - * @return int - */ - public function getSeriesStackStrategy() - { - return $this->series_stack_strategy; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.SeriesStackStrategy series_stack_strategy = 9; - * @param int $var - * @return $this - */ - public function setSeriesStackStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\SeriesStackStrategy::class); - $this->series_stack_strategy = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode|null - */ - public function getEncode() - { - return $this->encode; - } - - public function hasEncode() - { - return isset($this->encode); - } - - public function clearEncode() - { - unset($this->encode); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode encode = 10; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode $var - * @return $this - */ - public function setEncode($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\Encode::class); - $this->encode = $var; - - return $this; - } - - /** - * Generated from protobuf field string label = 11; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Generated from protobuf field string label = 11; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Generated from protobuf field string field = 12; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Generated from protobuf field string field = 12; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * Optional. Data label config for a series. - * Displays data vaule in the chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel|null - */ - public function getDataLabel() - { - return $this->data_label; - } - - public function hasDataLabel() - { - return isset($this->data_label); - } - - public function clearDataLabel() - { - unset($this->data_label); - } - - /** - * Optional. Data label config for a series. - * Displays data vaule in the chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel data_label = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel $var - * @return $this - */ - public function setDataLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\DataLabel::class); - $this->data_label = $var; - - return $this; - } - - /** - * Optional. Used to make a pie chart into a douhnut chart - * - * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getRadius() - { - return $this->radius; - } - - /** - * Optional. Used to make a pie chart into a douhnut chart - * - * Generated from protobuf field repeated string radius = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setRadius($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->radius = $arr; - - return $this; - } - - /** - * Optional. Custom styling for chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle|null - */ - public function getItemStyle() - { - return $this->item_style; - } - - public function hasItemStyle() - { - return isset($this->item_style); - } - - public function clearItemStyle() - { - unset($this->item_style); - } - - /** - * Optional. Custom styling for chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle item_style = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle $var - * @return $this - */ - public function setItemStyle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemStyle::class); - $this->item_style = $var; - - return $this; - } - - /** - * Optional. Series unique value from the query result - * - * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSeriesUniqueValue() - { - return $this->series_unique_value; - } - - /** - * Optional. Series unique value from the query result - * - * Generated from protobuf field string series_unique_value = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSeriesUniqueValue($var) - { - GPBUtil::checkString($var, True); - $this->series_unique_value = $var; - - return $this; - } - - /** - * Optional. Custom styling for area chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle|null - */ - public function getAreaStyle() - { - return $this->area_style; - } - - public function hasAreaStyle() - { - return isset($this->area_style); - } - - public function clearAreaStyle() - { - unset($this->area_style); - } - - /** - * Optional. Custom styling for area chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle area_style = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle $var - * @return $this - */ - public function setAreaStyle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\AreaStyle::class); - $this->area_style = $var; - - return $this; - } - - /** - * Optional. Field to be saved for retrieving slice colors for the chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors|null - */ - public function getItemColors() - { - return $this->item_colors; - } - - public function hasItemColors() - { - return isset($this->item_colors); - } - - public function clearItemColors() - { - unset($this->item_colors); - } - - /** - * Optional. Field to be saved for retrieving slice colors for the chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors item_colors = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors $var - * @return $this - */ - public function setItemColors($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ItemColors::class); - $this->item_colors = $var; - - return $this; - } - - /** - * Optional. Field to be saved for retrieving gauge config for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig|null - */ - public function getGaugeConfig() - { - return $this->gauge_config; - } - - public function hasGaugeConfig() - { - return isset($this->gauge_config); - } - - public function clearGaugeConfig() - { - unset($this->gauge_config); - } - - /** - * Optional. Field to be saved for retrieving gauge config for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig gauge_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig $var - * @return $this - */ - public function setGaugeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeConfig::class); - $this->gauge_config = $var; - - return $this; - } - - /** - * Optional. Fields to capture trend config for metric charts - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig|null - */ - public function getMetricTrendConfig() - { - return $this->metric_trend_config; - } - - public function hasMetricTrendConfig() - { - return isset($this->metric_trend_config); - } - - public function clearMetricTrendConfig() - { - unset($this->metric_trend_config); - } - - /** - * Optional. Fields to capture trend config for metric charts - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig metric_trend_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig $var - * @return $this - */ - public function setMetricTrendConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\MetricTrendConfig::class); - $this->metric_trend_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php deleted file mode 100644 index 05188a1ac7e7..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/AreaStyle.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.AreaStyle - */ -class AreaStyle extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Used to add color - * - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $color = ''; - /** - * Optional. Used to add origin - * - * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $origin = ''; - /** - * Optional. Used to add shadow blur - * - * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $shadow_blur = 0; - /** - * Optional. Used to add shadow color - * - * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $shadow_color = ''; - /** - * Optional. Used to add shadow offsetX - * - * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $shadow_offset_x = 0; - /** - * Optional. Used to add shadow offsetY - * - * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $shadow_offset_y = 0; - /** - * Optional. Used to add opacity - * - * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $opacity = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $color - * Optional. Used to add color - * @type string $origin - * Optional. Used to add origin - * @type int $shadow_blur - * Optional. Used to add shadow blur - * @type string $shadow_color - * Optional. Used to add shadow color - * @type int $shadow_offset_x - * Optional. Used to add shadow offsetX - * @type int $shadow_offset_y - * Optional. Used to add shadow offsetY - * @type int $opacity - * Optional. Used to add opacity - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Used to add color - * - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Optional. Used to add color - * - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkString($var, True); - $this->color = $var; - - return $this; - } - - /** - * Optional. Used to add origin - * - * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrigin() - { - return $this->origin; - } - - /** - * Optional. Used to add origin - * - * Generated from protobuf field string origin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrigin($var) - { - GPBUtil::checkString($var, True); - $this->origin = $var; - - return $this; - } - - /** - * Optional. Used to add shadow blur - * - * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getShadowBlur() - { - return $this->shadow_blur; - } - - /** - * Optional. Used to add shadow blur - * - * Generated from protobuf field int32 shadow_blur = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setShadowBlur($var) - { - GPBUtil::checkInt32($var); - $this->shadow_blur = $var; - - return $this; - } - - /** - * Optional. Used to add shadow color - * - * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getShadowColor() - { - return $this->shadow_color; - } - - /** - * Optional. Used to add shadow color - * - * Generated from protobuf field string shadow_color = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setShadowColor($var) - { - GPBUtil::checkString($var, True); - $this->shadow_color = $var; - - return $this; - } - - /** - * Optional. Used to add shadow offsetX - * - * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getShadowOffsetX() - { - return $this->shadow_offset_x; - } - - /** - * Optional. Used to add shadow offsetX - * - * Generated from protobuf field int32 shadow_offset_x = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setShadowOffsetX($var) - { - GPBUtil::checkInt32($var); - $this->shadow_offset_x = $var; - - return $this; - } - - /** - * Optional. Used to add shadow offsetY - * - * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getShadowOffsetY() - { - return $this->shadow_offset_y; - } - - /** - * Optional. Used to add shadow offsetY - * - * Generated from protobuf field int32 shadow_offset_y = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setShadowOffsetY($var) - { - GPBUtil::checkInt32($var); - $this->shadow_offset_y = $var; - - return $this; - } - - /** - * Optional. Used to add opacity - * - * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getOpacity() - { - return $this->opacity; - } - - /** - * Optional. Used to add opacity - * - * Generated from protobuf field int32 opacity = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setOpacity($var) - { - GPBUtil::checkInt32($var); - $this->opacity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php deleted file mode 100644 index f9521afdffd3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ChartSliceColor.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor - */ -class ChartSliceColor extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Key for the slice - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key = ''; - /** - * Optional. Value for the slice - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Optional. Key for the slice - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues $value - * Optional. Value for the slice - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Key for the slice - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Optional. Key for the slice - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Optional. Value for the slice - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Optional. Value for the slice - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\UserSelectedValues::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php deleted file mode 100644 index 4cd0d0cc8d35..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/DataLabel.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.DataLabel - */ -class DataLabel extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to show data label. - * - * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $show - * Optional. Whether to show data label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to show data label. - * - * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShow() - { - return $this->show; - } - - /** - * Optional. Whether to show data label. - * - * Generated from protobuf field bool show = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShow($var) - { - GPBUtil::checkBool($var); - $this->show = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php deleted file mode 100644 index e34150f8b5a2..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/Encode.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.Encode - */ -class Encode extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string x = 1; - */ - protected $x = ''; - /** - * Generated from protobuf field string y = 2; - */ - protected $y = ''; - /** - * For some type of series that are not in any coordinate system, like - * 'pie' - * - * Generated from protobuf field string value = 3; - */ - protected $value = ''; - /** - * This is useful in charts like 'pie', where data item name can be - * displayed in legend. - * - * Generated from protobuf field string item_name = 4; - */ - protected $item_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $x - * @type string $y - * @type string $value - * For some type of series that are not in any coordinate system, like - * 'pie' - * @type string $item_name - * This is useful in charts like 'pie', where data item name can be - * displayed in legend. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string x = 1; - * @return string - */ - public function getX() - { - return $this->x; - } - - /** - * Generated from protobuf field string x = 1; - * @param string $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkString($var, True); - $this->x = $var; - - return $this; - } - - /** - * Generated from protobuf field string y = 2; - * @return string - */ - public function getY() - { - return $this->y; - } - - /** - * Generated from protobuf field string y = 2; - * @param string $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkString($var, True); - $this->y = $var; - - return $this; - } - - /** - * For some type of series that are not in any coordinate system, like - * 'pie' - * - * Generated from protobuf field string value = 3; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * For some type of series that are not in any coordinate system, like - * 'pie' - * - * Generated from protobuf field string value = 3; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * This is useful in charts like 'pie', where data item name can be - * displayed in legend. - * - * Generated from protobuf field string item_name = 4; - * @return string - */ - public function getItemName() - { - return $this->item_name; - } - - /** - * This is useful in charts like 'pie', where data item name can be - * displayed in legend. - * - * Generated from protobuf field string item_name = 4; - * @param string $var - * @return $this - */ - public function setItemName($var) - { - GPBUtil::checkString($var, True); - $this->item_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php deleted file mode 100644 index e9d01426c93c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeConfig.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeConfig - */ -class GaugeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Base value for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $base_value = null; - /** - * Optional. Limit value for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit_value = null; - /** - * Optional. Threshold values for gauge chart - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $threshold_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $base_value - * Optional. Base value for gauge chart - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $limit_value - * Optional. Limit value for gauge chart - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue[] $threshold_values - * Optional. Threshold values for gauge chart - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Base value for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue|null - */ - public function getBaseValue() - { - return $this->base_value; - } - - public function hasBaseValue() - { - return isset($this->base_value); - } - - public function clearBaseValue() - { - unset($this->base_value); - } - - /** - * Optional. Base value for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue base_value = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $var - * @return $this - */ - public function setBaseValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); - $this->base_value = $var; - - return $this; - } - - /** - * Optional. Limit value for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue|null - */ - public function getLimitValue() - { - return $this->limit_value; - } - - public function hasLimitValue() - { - return isset($this->limit_value); - } - - public function clearLimitValue() - { - unset($this->limit_value); - } - - /** - * Optional. Limit value for gauge chart - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue limit_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue $var - * @return $this - */ - public function setLimitValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); - $this->limit_value = $var; - - return $this; - } - - /** - * Optional. Threshold values for gauge chart - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue> - */ - public function getThresholdValues() - { - return $this->threshold_values; - } - - /** - * Optional. Threshold values for gauge chart - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue threshold_values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue[] $var - * @return $this - */ - public function setThresholdValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\GaugeValue::class); - $this->threshold_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php deleted file mode 100644 index 631073acba0f..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/GaugeValue.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.GaugeValue - */ -class GaugeValue extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Value for gauge chart - * - * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value = 0; - /** - * Optional. Color for gauge chart - * - * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $color = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $value - * Optional. Value for gauge chart - * @type string $color - * Optional. Color for gauge chart - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Value for gauge chart - * - * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getValue() - { - return $this->value; - } - - /** - * Optional. Value for gauge chart - * - * Generated from protobuf field int32 value = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkInt32($var); - $this->value = $var; - - return $this; - } - - /** - * Optional. Color for gauge chart - * - * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Optional. Color for gauge chart - * - * Generated from protobuf field string color = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkString($var, True); - $this->color = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php deleted file mode 100644 index 941eaeef6b74..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemColors.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemColors - */ -class ItemColors extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Slice colors array - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $colors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor[] $colors - * Optional. Slice colors array - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Slice colors array - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor> - */ - public function getColors() - { - return $this->colors; - } - - /** - * Optional. Slice colors array - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ChartSliceColor colors = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor[] $var - * @return $this - */ - public function setColors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\Series\ChartSliceColor::class); - $this->colors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php deleted file mode 100644 index e4b5e356b169..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/ItemStyle.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.ItemStyle - */ -class ItemStyle extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Used to add border width - * - * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $border_width = 0; - /** - * Optional. Used to add border color - * - * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $border_color = ''; - /** - * Optional. Used to add color - * - * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $color = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $border_width - * Optional. Used to add border width - * @type string $border_color - * Optional. Used to add border color - * @type string $color - * Optional. Used to add color - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Used to add border width - * - * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getBorderWidth() - { - return $this->border_width; - } - - /** - * Optional. Used to add border width - * - * Generated from protobuf field int32 border_width = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setBorderWidth($var) - { - GPBUtil::checkInt32($var); - $this->border_width = $var; - - return $this; - } - - /** - * Optional. Used to add border color - * - * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBorderColor() - { - return $this->border_color; - } - - /** - * Optional. Used to add border color - * - * Generated from protobuf field string border_color = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBorderColor($var) - { - GPBUtil::checkString($var, True); - $this->border_color = $var; - - return $this; - } - - /** - * Optional. Used to add color - * - * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Optional. Used to add color - * - * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkString($var, True); - $this->color = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php deleted file mode 100644 index 648f41614333..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/MetricTrendConfig.php +++ /dev/null @@ -1,177 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.MetricTrendConfig - */ -class MetricTrendConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Metric chart configuration to display metric trend - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_format = 0; - /** - * Optional. Metric chart configuration to toggle the trend value - * display - * - * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_metric_trend = false; - /** - * Optional. Metric chart configuration to display the trend value - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_display_trend = 0; - /** - * Optional. Metric chart configuration to display trend type whether - * regular or inverse - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_trend_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $metric_format - * Optional. Metric chart configuration to display metric trend - * @type bool $show_metric_trend - * Optional. Metric chart configuration to toggle the trend value - * display - * @type int $metric_display_trend - * Optional. Metric chart configuration to display the trend value - * @type int $metric_trend_type - * Optional. Metric chart configuration to display trend type whether - * regular or inverse - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Metric chart configuration to display metric trend - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMetricFormat() - { - return $this->metric_format; - } - - /** - * Optional. Metric chart configuration to display metric trend - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricFormat metric_format = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMetricFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricFormat::class); - $this->metric_format = $var; - - return $this; - } - - /** - * Optional. Metric chart configuration to toggle the trend value - * display - * - * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowMetricTrend() - { - return $this->show_metric_trend; - } - - /** - * Optional. Metric chart configuration to toggle the trend value - * display - * - * Generated from protobuf field bool show_metric_trend = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowMetricTrend($var) - { - GPBUtil::checkBool($var); - $this->show_metric_trend = $var; - - return $this; - } - - /** - * Optional. Metric chart configuration to display the trend value - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMetricDisplayTrend() - { - return $this->metric_display_trend; - } - - /** - * Optional. Metric chart configuration to display the trend value - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricDisplayTrend metric_display_trend = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMetricDisplayTrend($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricDisplayTrend::class); - $this->metric_display_trend = $var; - - return $this; - } - - /** - * Optional. Metric chart configuration to display trend type whether - * regular or inverse - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMetricTrendType() - { - return $this->metric_trend_type; - } - - /** - * Optional. Metric chart configuration to display trend type whether - * regular or inverse - * - * Generated from protobuf field .google.cloud.chronicle.v1.MetricTrendType metric_trend_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMetricTrendType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\MetricTrendType::class); - $this->metric_trend_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php deleted file mode 100644 index 551b8f138b6e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Series/UserSelectedValues.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Series.UserSelectedValues - */ -class UserSelectedValues extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. User specified color of a pie slice - * - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $color = ''; - /** - * Optional. User specified label for a pie slice - * - * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $label = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $color - * Optional. User specified color of a pie slice - * @type string $label - * Optional. User specified label for a pie slice - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. User specified color of a pie slice - * - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Optional. User specified color of a pie slice - * - * Generated from protobuf field string color = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkString($var, True); - $this->color = $var; - - return $this; - } - - /** - * Optional. User specified label for a pie slice - * - * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Optional. User specified label for a pie slice - * - * Generated from protobuf field string label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php deleted file mode 100644 index 9b0049bc04e4..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/TableConfig.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.TableConfig - */ -class TableConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to show the table. - * - * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_text_wrap = false; - /** - * Optional. Column render type settings. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $column_render_type_settings; - /** - * Optional. Settings for tooltip for column header and cell. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $column_tooltip_settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_text_wrap - * Optional. Whether to show the table. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings[] $column_render_type_settings - * Optional. Column render type settings. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings[] $column_tooltip_settings - * Optional. Settings for tooltip for column header and cell. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to show the table. - * - * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableTextWrap() - { - return $this->enable_text_wrap; - } - - /** - * Optional. Whether to show the table. - * - * Generated from protobuf field bool enable_text_wrap = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableTextWrap($var) - { - GPBUtil::checkBool($var); - $this->enable_text_wrap = $var; - - return $this; - } - - /** - * Optional. Column render type settings. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings> - */ - public function getColumnRenderTypeSettings() - { - return $this->column_render_type_settings; - } - - /** - * Optional. Column render type settings. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnRenderTypeSettings column_render_type_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings[] $var - * @return $this - */ - public function setColumnRenderTypeSettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnRenderTypeSettings::class); - $this->column_render_type_settings = $arr; - - return $this; - } - - /** - * Optional. Settings for tooltip for column header and cell. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings> - */ - public function getColumnTooltipSettings() - { - return $this->column_tooltip_settings; - } - - /** - * Optional. Settings for tooltip for column header and cell. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnTooltipSettings column_tooltip_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings[] $var - * @return $this - */ - public function setColumnTooltipSettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\ColumnTooltipSettings::class); - $this->column_tooltip_settings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php deleted file mode 100644 index cf2d0750d0bc..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/Tooltip.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.Tooltip - */ -class Tooltip extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bool show = 1; - */ - protected $show = false; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; - */ - protected $tooltip_trigger = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $show - * @type int $tooltip_trigger - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bool show = 1; - * @return bool - */ - public function getShow() - { - return $this->show; - } - - /** - * Generated from protobuf field bool show = 1; - * @param bool $var - * @return $this - */ - public function setShow($var) - { - GPBUtil::checkBool($var); - $this->show = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; - * @return int - */ - public function getTooltipTrigger() - { - return $this->tooltip_trigger; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ToolTipTrigger tooltip_trigger = 3; - * @param int $var - * @return $this - */ - public function setTooltipTrigger($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ToolTipTrigger::class); - $this->tooltip_trigger = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php deleted file mode 100644 index 4fbfc4b3b88c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap - */ -class VisualMap extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Contains one of the valid visual map types such as - * 'continuous' or 'piecewise'. - * - * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $visual_map_type = 0; - /** - * Optional. Pieces of the visual map. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $pieces; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $visual_map_type - * Optional. Contains one of the valid visual map types such as - * 'continuous' or 'piecewise'. - * @type \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece[] $pieces - * Optional. Pieces of the visual map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Contains one of the valid visual map types such as - * 'continuous' or 'piecewise'. - * - * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getVisualMapType() - { - return $this->visual_map_type; - } - - /** - * Optional. Contains one of the valid visual map types such as - * 'continuous' or 'piecewise'. - * - * Generated from protobuf field .google.cloud.chronicle.v1.VisualMapType visual_map_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setVisualMapType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\VisualMapType::class); - $this->visual_map_type = $var; - - return $this; - } - - /** - * Optional. Pieces of the visual map. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece> - */ - public function getPieces() - { - return $this->pieces; - } - - /** - * Optional. Pieces of the visual map. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece pieces = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece[] $var - * @return $this - */ - public function setPieces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart\Visualization\VisualMap\VisualMapPiece::class); - $this->pieces = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php deleted file mode 100644 index 827bebc3d790..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardChart/Visualization/VisualMap/VisualMapPiece.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece - */ -class VisualMapPiece extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Minimum value for the piece. - * - * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min = null; - /** - * Optional. Minimum value for the piece. - * - * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max = null; - /** - * Optional. Color to render the piece in when the value is between min - * and max. - * - * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $color = ''; - /** - * Optional. Label used in visual map controller. - * - * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $label = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $min - * Optional. Minimum value for the piece. - * @type int|string $max - * Optional. Minimum value for the piece. - * @type string $color - * Optional. Color to render the piece in when the value is between min - * and max. - * @type string $label - * Optional. Label used in visual map controller. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Minimum value for the piece. - * - * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMin() - { - return isset($this->min) ? $this->min : 0; - } - - public function hasMin() - { - return isset($this->min); - } - - public function clearMin() - { - unset($this->min); - } - - /** - * Optional. Minimum value for the piece. - * - * Generated from protobuf field optional int64 min = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkInt64($var); - $this->min = $var; - - return $this; - } - - /** - * Optional. Minimum value for the piece. - * - * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMax() - { - return isset($this->max) ? $this->max : 0; - } - - public function hasMax() - { - return isset($this->max); - } - - public function clearMax() - { - unset($this->max); - } - - /** - * Optional. Minimum value for the piece. - * - * Generated from protobuf field optional int64 max = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkInt64($var); - $this->max = $var; - - return $this; - } - - /** - * Optional. Color to render the piece in when the value is between min - * and max. - * - * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Optional. Color to render the piece in when the value is between min - * and max. - * - * Generated from protobuf field string color = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkString($var, True); - $this->color = $var; - - return $this; - } - - /** - * Optional. Label used in visual map controller. - * - * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Optional. Label used in visual map controller. - * - * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php deleted file mode 100644 index 30d2d7f300c0..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.chronicle.v1.DashboardDefinition - */ -class DashboardDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * Filters for the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; - */ - private $filters; - /** - * Fingerprint of the dashboard definition. - * - * Generated from protobuf field string fingerprint = 2; - */ - protected $fingerprint = ''; - /** - * Charts in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; - */ - private $charts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DashboardFilter[] $filters - * Filters for the dashboard. - * @type string $fingerprint - * Fingerprint of the dashboard definition. - * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig[] $charts - * Charts in the dashboard. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Filters for the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardFilter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Filters for the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 1; - * @param \Google\Cloud\Chronicle\V1\DashboardFilter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardFilter::class); - $this->filters = $arr; - - return $this; - } - - /** - * Fingerprint of the dashboard definition. - * - * Generated from protobuf field string fingerprint = 2; - * @return string - */ - public function getFingerprint() - { - return $this->fingerprint; - } - - /** - * Fingerprint of the dashboard definition. - * - * Generated from protobuf field string fingerprint = 2; - * @param string $var - * @return $this - */ - public function setFingerprint($var) - { - GPBUtil::checkString($var, True); - $this->fingerprint = $var; - - return $this; - } - - /** - * Charts in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig> - */ - public function getCharts() - { - return $this->charts; - } - - /** - * Charts in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig charts = 4; - * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig[] $var - * @return $this - */ - public function setCharts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig::class); - $this->charts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php deleted file mode 100644 index 6355197f9691..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.chronicle.v1.DashboardDefinition.ChartConfig - */ -class ChartConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $dashboard_chart = ''; - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; - */ - protected $chart_layout = null; - /** - * Dashboard filters applied to the chart. - * - * Generated from protobuf field repeated string filters_ids = 4; - */ - private $filters_ids; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dashboard_chart - * @type \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $chart_layout - * @type string[] $filters_ids - * Dashboard filters applied to the chart. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - /** - * Generated from protobuf field string dashboard_chart = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkString($var, True); - $this->dashboard_chart = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; - * @return \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout|null - */ - public function getChartLayout() - { - return $this->chart_layout; - } - - public function hasChartLayout() - { - return isset($this->chart_layout); - } - - public function clearChartLayout() - { - unset($this->chart_layout); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 2; - * @param \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout $var - * @return $this - */ - public function setChartLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition\ChartConfig\ChartLayout::class); - $this->chart_layout = $var; - - return $this; - } - - /** - * Dashboard filters applied to the chart. - * - * Generated from protobuf field repeated string filters_ids = 4; - * @return RepeatedField - */ - public function getFiltersIds() - { - return $this->filters_ids; - } - - /** - * Dashboard filters applied to the chart. - * - * Generated from protobuf field repeated string filters_ids = 4; - * @param string[] $var - * @return $this - */ - public function setFiltersIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->filters_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php deleted file mode 100644 index 09b82904ab91..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardDefinition/ChartConfig/ChartLayout.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout - */ -class ChartLayout extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field optional int32 start_x = 9; - */ - protected $start_x = null; - /** - * Generated from protobuf field int32 span_x = 10; - */ - protected $span_x = 0; - /** - * Generated from protobuf field optional int32 start_y = 11; - */ - protected $start_y = null; - /** - * Generated from protobuf field int32 span_y = 12; - */ - protected $span_y = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_x - * @type int $span_x - * @type int $start_y - * @type int $span_y - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field optional int32 start_x = 9; - * @return int - */ - public function getStartX() - { - return isset($this->start_x) ? $this->start_x : 0; - } - - public function hasStartX() - { - return isset($this->start_x); - } - - public function clearStartX() - { - unset($this->start_x); - } - - /** - * Generated from protobuf field optional int32 start_x = 9; - * @param int $var - * @return $this - */ - public function setStartX($var) - { - GPBUtil::checkInt32($var); - $this->start_x = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 span_x = 10; - * @return int - */ - public function getSpanX() - { - return $this->span_x; - } - - /** - * Generated from protobuf field int32 span_x = 10; - * @param int $var - * @return $this - */ - public function setSpanX($var) - { - GPBUtil::checkInt32($var); - $this->span_x = $var; - - return $this; - } - - /** - * Generated from protobuf field optional int32 start_y = 11; - * @return int - */ - public function getStartY() - { - return isset($this->start_y) ? $this->start_y : 0; - } - - public function hasStartY() - { - return isset($this->start_y); - } - - public function clearStartY() - { - unset($this->start_y); - } - - /** - * Generated from protobuf field optional int32 start_y = 11; - * @param int $var - * @return $this - */ - public function setStartY($var) - { - GPBUtil::checkInt32($var); - $this->start_y = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 span_y = 12; - * @return int - */ - public function getSpanY() - { - return $this->span_y; - } - - /** - * Generated from protobuf field int32 span_y = 12; - * @param int $var - * @return $this - */ - public function setSpanY($var) - { - GPBUtil::checkInt32($var); - $this->span_y = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php deleted file mode 100644 index 79c685090fec..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardFilter.php +++ /dev/null @@ -1,410 +0,0 @@ -google.cloud.chronicle.v1.DashboardFilter - */ -class DashboardFilter extends \Google\Protobuf\Internal\Message -{ - /** - * ID of the filter. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Datasource the filter is applicable for. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; - */ - protected $data_source = 0; - /** - * Filter field path. - * - * Generated from protobuf field string field_path = 3; - */ - protected $field_path = ''; - /** - * Operator and values. Can include multiple modifiers. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; - */ - private $filter_operator_and_field_values; - /** - * Display name of the filter. - * - * Generated from protobuf field string display_name = 5; - */ - protected $display_name = ''; - /** - * Chart IDs the filter is applicable for. - * - * Generated from protobuf field repeated string chart_ids = 6; - */ - private $chart_ids; - /** - * Optional. Whether the filter is a standard time range filter, - * meaning that it has to be used as the query time range, - * and not as a predicate in the query. - * A chart can have at most one standard time range filter applied. - * - * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $is_standard_time_range_filter = false; - /** - * Optional. Whether this filter is required to be populated by the - * dashboard consumer prior to the dashboard loading. - * - * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $is_mandatory = false; - /** - * Optional. Whether this standard time range filter is enabled. - * - * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $is_standard_time_range_filter_enabled = null; - /** - * Optional. Advanced filter configuration for the filter widget. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $advanced_filter_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of the filter. - * @type int $data_source - * Datasource the filter is applicable for. - * @type string $field_path - * Filter field path. - * @type \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $filter_operator_and_field_values - * Operator and values. Can include multiple modifiers. - * @type string $display_name - * Display name of the filter. - * @type string[] $chart_ids - * Chart IDs the filter is applicable for. - * @type bool $is_standard_time_range_filter - * Optional. Whether the filter is a standard time range filter, - * meaning that it has to be used as the query time range, - * and not as a predicate in the query. - * A chart can have at most one standard time range filter applied. - * @type bool $is_mandatory - * Optional. Whether this filter is required to be populated by the - * dashboard consumer prior to the dashboard loading. - * @type bool $is_standard_time_range_filter_enabled - * Optional. Whether this standard time range filter is enabled. - * @type \Google\Cloud\Chronicle\V1\AdvancedFilterConfig $advanced_filter_config - * Optional. Advanced filter configuration for the filter widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * ID of the filter. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of the filter. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Datasource the filter is applicable for. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; - * @return int - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Datasource the filter is applicable for. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataSource data_source = 2; - * @param int $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataSource::class); - $this->data_source = $var; - - return $this; - } - - /** - * Filter field path. - * - * Generated from protobuf field string field_path = 3; - * @return string - */ - public function getFieldPath() - { - return $this->field_path; - } - - /** - * Filter field path. - * - * Generated from protobuf field string field_path = 3; - * @param string $var - * @return $this - */ - public function setFieldPath($var) - { - GPBUtil::checkString($var, True); - $this->field_path = $var; - - return $this; - } - - /** - * Operator and values. Can include multiple modifiers. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\FilterOperatorAndValues> - */ - public function getFilterOperatorAndFieldValues() - { - return $this->filter_operator_and_field_values; - } - - /** - * Operator and values. Can include multiple modifiers. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FilterOperatorAndValues filter_operator_and_field_values = 4; - * @param \Google\Cloud\Chronicle\V1\FilterOperatorAndValues[] $var - * @return $this - */ - public function setFilterOperatorAndFieldValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FilterOperatorAndValues::class); - $this->filter_operator_and_field_values = $arr; - - return $this; - } - - /** - * Display name of the filter. - * - * Generated from protobuf field string display_name = 5; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name of the filter. - * - * Generated from protobuf field string display_name = 5; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Chart IDs the filter is applicable for. - * - * Generated from protobuf field repeated string chart_ids = 6; - * @return RepeatedField - */ - public function getChartIds() - { - return $this->chart_ids; - } - - /** - * Chart IDs the filter is applicable for. - * - * Generated from protobuf field repeated string chart_ids = 6; - * @param string[] $var - * @return $this - */ - public function setChartIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->chart_ids = $arr; - - return $this; - } - - /** - * Optional. Whether the filter is a standard time range filter, - * meaning that it has to be used as the query time range, - * and not as a predicate in the query. - * A chart can have at most one standard time range filter applied. - * - * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIsStandardTimeRangeFilter() - { - return $this->is_standard_time_range_filter; - } - - /** - * Optional. Whether the filter is a standard time range filter, - * meaning that it has to be used as the query time range, - * and not as a predicate in the query. - * A chart can have at most one standard time range filter applied. - * - * Generated from protobuf field bool is_standard_time_range_filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIsStandardTimeRangeFilter($var) - { - GPBUtil::checkBool($var); - $this->is_standard_time_range_filter = $var; - - return $this; - } - - /** - * Optional. Whether this filter is required to be populated by the - * dashboard consumer prior to the dashboard loading. - * - * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIsMandatory() - { - return $this->is_mandatory; - } - - /** - * Optional. Whether this filter is required to be populated by the - * dashboard consumer prior to the dashboard loading. - * - * Generated from protobuf field bool is_mandatory = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIsMandatory($var) - { - GPBUtil::checkBool($var); - $this->is_mandatory = $var; - - return $this; - } - - /** - * Optional. Whether this standard time range filter is enabled. - * - * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIsStandardTimeRangeFilterEnabled() - { - return isset($this->is_standard_time_range_filter_enabled) ? $this->is_standard_time_range_filter_enabled : false; - } - - public function hasIsStandardTimeRangeFilterEnabled() - { - return isset($this->is_standard_time_range_filter_enabled); - } - - public function clearIsStandardTimeRangeFilterEnabled() - { - unset($this->is_standard_time_range_filter_enabled); - } - - /** - * Optional. Whether this standard time range filter is enabled. - * - * Generated from protobuf field optional bool is_standard_time_range_filter_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIsStandardTimeRangeFilterEnabled($var) - { - GPBUtil::checkBool($var); - $this->is_standard_time_range_filter_enabled = $var; - - return $this; - } - - /** - * Optional. Advanced filter configuration for the filter widget. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\AdvancedFilterConfig|null - */ - public function getAdvancedFilterConfig() - { - return $this->advanced_filter_config; - } - - public function hasAdvancedFilterConfig() - { - return isset($this->advanced_filter_config); - } - - public function clearAdvancedFilterConfig() - { - unset($this->advanced_filter_config); - } - - /** - * Optional. Advanced filter configuration for the filter widget. - * - * Generated from protobuf field .google.cloud.chronicle.v1.AdvancedFilterConfig advanced_filter_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\AdvancedFilterConfig $var - * @return $this - */ - public function setAdvancedFilterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\AdvancedFilterConfig::class); - $this->advanced_filter_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php deleted file mode 100644 index 72d8951c72d9..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.chronicle.v1.DashboardQuery - */ -class DashboardQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the dashboardQuery. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Search query string. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Required. Inputs to the query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $input = null; - /** - * Output only. DashboardChart this query belongs to. - * - * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $dashboard_chart = ''; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the dashboardQuery. - * @type string $query - * Required. Search query string. - * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input $input - * Required. Inputs to the query. - * @type string $dashboard_chart - * Output only. DashboardChart this query belongs to. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the dashboardQuery. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the dashboardQuery. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Search query string. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. Search query string. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Required. Inputs to the query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input|null - */ - public function getInput() - { - return $this->input; - } - - public function hasInput() - { - return isset($this->input); - } - - public function clearInput() - { - unset($this->input); - } - - /** - * Required. Inputs to the query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input input = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input $var - * @return $this - */ - public function setInput($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input::class); - $this->input = $var; - - return $this; - } - - /** - * Output only. DashboardChart this query belongs to. - * - * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - /** - * Output only. DashboardChart this query belongs to. - * - * Generated from protobuf field string dashboard_chart = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkString($var, True); - $this->dashboard_chart = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php deleted file mode 100644 index 0d33588d5bed..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.chronicle.v1.DashboardQuery.Input - */ -class Input extends \Google\Protobuf\Internal\Message -{ - protected $time_input; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Interval $time_window - * time range to fetch the data for. - * @type \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime $relative_time - * time range for last x units. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * time range to fetch the data for. - * - * Generated from protobuf field .google.type.Interval time_window = 1; - * @return \Google\Type\Interval|null - */ - public function getTimeWindow() - { - return $this->readOneof(1); - } - - public function hasTimeWindow() - { - return $this->hasOneof(1); - } - - /** - * time range to fetch the data for. - * - * Generated from protobuf field .google.type.Interval time_window = 1; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setTimeWindow($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * time range for last x units. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime relative_time = 3; - * @return \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime|null - */ - public function getRelativeTime() - { - return $this->readOneof(3); - } - - public function hasRelativeTime() - { - return $this->hasOneof(3); - } - - /** - * time range for last x units. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime relative_time = 3; - * @param \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime $var - * @return $this - */ - public function setRelativeTime($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery\Input\RelativeTime::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getTimeInput() - { - return $this->whichOneof("time_input"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php deleted file mode 100644 index 594b70b0840f..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardQuery/Input/RelativeTime.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.chronicle.v1.DashboardQuery.Input.RelativeTime - */ -class RelativeTime extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_unit = 0; - /** - * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $start_time_val = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $time_unit - * @type int|string $start_time_val - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getTimeUnit() - { - return $this->time_unit; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.TimeUnit time_unit = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setTimeUnit($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\TimeUnit::class); - $this->time_unit = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getStartTimeVal() - { - return $this->start_time_val; - } - - /** - * Generated from protobuf field int64 start_time_val = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setStartTimeVal($var) - { - GPBUtil::checkInt64($var); - $this->start_time_val = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php deleted file mode 100644 index e20f164a073c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardType.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.chronicle.v1.DashboardType - */ -class DashboardType -{ - /** - * Default unspecified. - * - * Generated from protobuf enum DASHBOARD_TYPE_UNSPECIFIED = 0; - */ - const DASHBOARD_TYPE_UNSPECIFIED = 0; - /** - * Out of the box curated dashboards provided by Chronicle. - * - * Generated from protobuf enum CURATED = 1; - */ - const CURATED = 1; - /** - * Private dashboards created by users/customers. - * - * Generated from protobuf enum PRIVATE = 2; - */ - const PBPRIVATE = 2; - /** - * Public dashboards created by users/customers. - * - * Generated from protobuf enum PUBLIC = 3; - */ - const PBPUBLIC = 3; - /** - * Custom dashboards - * - * Generated from protobuf enum CUSTOM = 4; - */ - const CUSTOM = 4; - /** - * Marketplace dashboards - * - * Generated from protobuf enum MARKETPLACE = 5; - */ - const MARKETPLACE = 5; - - private static $valueToName = [ - self::DASHBOARD_TYPE_UNSPECIFIED => 'DASHBOARD_TYPE_UNSPECIFIED', - self::CURATED => 'CURATED', - self::PBPRIVATE => 'PRIVATE', - self::PBPUBLIC => 'PUBLIC', - self::CUSTOM => 'CUSTOM', - self::MARKETPLACE => 'MARKETPLACE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php deleted file mode 100644 index 5ce9afb7d058..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DashboardUserData.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.chronicle.v1.DashboardUserData - */ -class DashboardUserData extends \Google\Protobuf\Internal\Message -{ - /** - * time when this dashboard is last viewed - * - * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; - */ - protected $last_viewed_time = null; - /** - * is dashboard pinned by user - * - * Generated from protobuf field bool is_pinned = 2; - */ - protected $is_pinned = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $last_viewed_time - * time when this dashboard is last viewed - * @type bool $is_pinned - * is dashboard pinned by user - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * time when this dashboard is last viewed - * - * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastViewedTime() - { - return $this->last_viewed_time; - } - - public function hasLastViewedTime() - { - return isset($this->last_viewed_time); - } - - public function clearLastViewedTime() - { - unset($this->last_viewed_time); - } - - /** - * time when this dashboard is last viewed - * - * Generated from protobuf field .google.protobuf.Timestamp last_viewed_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastViewedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_viewed_time = $var; - - return $this; - } - - /** - * is dashboard pinned by user - * - * Generated from protobuf field bool is_pinned = 2; - * @return bool - */ - public function getIsPinned() - { - return $this->is_pinned; - } - - /** - * is dashboard pinned by user - * - * Generated from protobuf field bool is_pinned = 2; - * @param bool $var - * @return $this - */ - public function setIsPinned($var) - { - GPBUtil::checkBool($var); - $this->is_pinned = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php deleted file mode 100644 index 9eb65ff6b99b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabel.php +++ /dev/null @@ -1,337 +0,0 @@ -google.cloud.chronicle.v1.DataAccessLabel - */ -class DataAccessLabel extends \Google\Protobuf\Internal\Message -{ - /** - * The unique resource name of the data access label. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. The short name displayed for the label as it appears on event - * data. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The time at which the data access label was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the data access label was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The user who created the data access label. - * - * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $author = ''; - /** - * Output only. The user who last updated the data access label. - * - * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_editor = ''; - /** - * Optional. A description of the data access label for a human reader. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - protected $definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $udm_query - * A UDM query over event data. - * @type string $name - * The unique resource name of the data access label. - * @type string $display_name - * Output only. The short name displayed for the label as it appears on event - * data. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the data access label was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the data access label was last updated. - * @type string $author - * Output only. The user who created the data access label. - * @type string $last_editor - * Output only. The user who last updated the data access label. - * @type string $description - * Optional. A description of the data access label for a human reader. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * A UDM query over event data. - * - * Generated from protobuf field string udm_query = 3; - * @return string - */ - public function getUdmQuery() - { - return $this->readOneof(3); - } - - public function hasUdmQuery() - { - return $this->hasOneof(3); - } - - /** - * A UDM query over event data. - * - * Generated from protobuf field string udm_query = 3; - * @param string $var - * @return $this - */ - public function setUdmQuery($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The unique resource name of the data access label. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique resource name of the data access label. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The short name displayed for the label as it appears on event - * data. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The short name displayed for the label as it appears on event - * data. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The time at which the data access label was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time at which the data access label was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time at which the data access label was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time at which the data access label was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The user who created the data access label. - * - * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAuthor() - { - return $this->author; - } - - /** - * Output only. The user who created the data access label. - * - * Generated from protobuf field string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkString($var, True); - $this->author = $var; - - return $this; - } - - /** - * Output only. The user who last updated the data access label. - * - * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLastEditor() - { - return $this->last_editor; - } - - /** - * Output only. The user who last updated the data access label. - * - * Generated from protobuf field string last_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLastEditor($var) - { - GPBUtil::checkString($var, True); - $this->last_editor = $var; - - return $this; - } - - /** - * Optional. A description of the data access label for a human reader. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the data access label for a human reader. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * @return string - */ - public function getDefinition() - { - return $this->whichOneof("definition"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php deleted file mode 100644 index 9f32f7c3f294..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessLabelReference.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.chronicle.v1.DataAccessLabelReference - */ -class DataAccessLabelReference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - protected $label; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_access_label - * The name of the data access label. - * @type string $log_type - * The name of the log type. - * @type string $asset_namespace - * The asset namespace configured in the forwarder - * of the customer's events. - * @type \Google\Cloud\Chronicle\V1\IngestionLabel $ingestion_label - * The ingestion label configured in the forwarder of the customer's events. - * @type string $display_name - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * The name of the data access label. - * - * Generated from protobuf field string data_access_label = 1; - * @return string - */ - public function getDataAccessLabel() - { - return $this->readOneof(1); - } - - public function hasDataAccessLabel() - { - return $this->hasOneof(1); - } - - /** - * The name of the data access label. - * - * Generated from protobuf field string data_access_label = 1; - * @param string $var - * @return $this - */ - public function setDataAccessLabel($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The name of the log type. - * - * Generated from protobuf field string log_type = 2; - * @return string - */ - public function getLogType() - { - return $this->readOneof(2); - } - - public function hasLogType() - { - return $this->hasOneof(2); - } - - /** - * The name of the log type. - * - * Generated from protobuf field string log_type = 2; - * @param string $var - * @return $this - */ - public function setLogType($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The asset namespace configured in the forwarder - * of the customer's events. - * - * Generated from protobuf field string asset_namespace = 3; - * @return string - */ - public function getAssetNamespace() - { - return $this->readOneof(3); - } - - public function hasAssetNamespace() - { - return $this->hasOneof(3); - } - - /** - * The asset namespace configured in the forwarder - * of the customer's events. - * - * Generated from protobuf field string asset_namespace = 3; - * @param string $var - * @return $this - */ - public function setAssetNamespace($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The ingestion label configured in the forwarder of the customer's events. - * - * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; - * @return \Google\Cloud\Chronicle\V1\IngestionLabel|null - */ - public function getIngestionLabel() - { - return $this->readOneof(4); - } - - public function hasIngestionLabel() - { - return $this->hasOneof(4); - } - - /** - * The ingestion label configured in the forwarder of the customer's events. - * - * Generated from protobuf field .google.cloud.chronicle.v1.IngestionLabel ingestion_label = 4; - * @param \Google\Cloud\Chronicle\V1\IngestionLabel $var - * @return $this - */ - public function setIngestionLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\IngestionLabel::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The display name of the label. - * Data access label and log types's name - * will match the display name of the resource. - * The asset namespace will match the namespace itself. - * The ingestion key value pair will match the key of the tuple. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getLabel() - { - return $this->whichOneof("label"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php deleted file mode 100644 index 687d809ead24..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataAccessScope.php +++ /dev/null @@ -1,470 +0,0 @@ -google.cloud.chronicle.v1.DataAccessScope - */ -class DataAccessScope extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $allowed_data_access_labels; - /** - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $denied_data_access_labels; - /** - * Output only. The name to be used for display to customers of the data - * access scope. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The time at which the data access scope was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the data access scope was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The user who created the data access scope. - * - * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $author = ''; - /** - * Output only. The user who last updated the data access scope. - * - * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_editor = ''; - /** - * Optional. A description of the data access scope for a human reader. - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * - * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_all = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $allowed_data_access_labels - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * @type \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $denied_data_access_labels - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * @type string $display_name - * Output only. The name to be used for display to customers of the data - * access scope. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the data access scope was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the data access scope was last updated. - * @type string $author - * Output only. The user who created the data access scope. - * @type string $last_editor - * Output only. The user who last updated the data access scope. - * @type string $description - * Optional. A description of the data access scope for a human reader. - * @type bool $allow_all - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique full name of the data access scope. - * The name should comply with https://google.aip.dev/122 standards. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> - */ - public function getAllowedDataAccessLabels() - { - return $this->allowed_data_access_labels; - } - - /** - * Optional. The allowed labels for the scope. - * Either allow_all or allowed_data_access_labels needs to be provided. - * When provided, there has to be at least one label allowed for the scope to - * be valid. - * The logical operator for evaluation of the allowed labels is OR. - * E.g.: A customer with scope with allowed labels A and B will be able - * to see data with labeled with A or B or (A and B). - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference allowed_data_access_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var - * @return $this - */ - public function setAllowedDataAccessLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); - $this->allowed_data_access_labels = $arr; - - return $this; - } - - /** - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabelReference> - */ - public function getDeniedDataAccessLabels() - { - return $this->denied_data_access_labels; - } - - /** - * Optional. The denied labels for the scope. - * The logical operator for evaluation of the denied labels is AND. - * E.g.: A customer with scope with denied labels A and B won't be able - * to see data labeled with A and data labeled with B - * and data with labels A and B. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabelReference denied_data_access_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabelReference[] $var - * @return $this - */ - public function setDeniedDataAccessLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabelReference::class); - $this->denied_data_access_labels = $arr; - - return $this; - } - - /** - * Output only. The name to be used for display to customers of the data - * access scope. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The name to be used for display to customers of the data - * access scope. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The time at which the data access scope was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time at which the data access scope was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time at which the data access scope was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time at which the data access scope was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The user who created the data access scope. - * - * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAuthor() - { - return $this->author; - } - - /** - * Output only. The user who created the data access scope. - * - * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkString($var, True); - $this->author = $var; - - return $this; - } - - /** - * Output only. The user who last updated the data access scope. - * - * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLastEditor() - { - return $this->last_editor; - } - - /** - * Output only. The user who last updated the data access scope. - * - * Generated from protobuf field string last_editor = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLastEditor($var) - { - GPBUtil::checkString($var, True); - $this->last_editor = $var; - - return $this; - } - - /** - * Optional. A description of the data access scope for a human reader. - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the data access scope for a human reader. - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * - * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowAll() - { - return $this->allow_all; - } - - /** - * Optional. Whether or not the scope allows all labels, allow_all and - * allowed_data_access_labels are mutually exclusive and one of them must be - * present. denied_data_access_labels can still be used along with allow_all. - * When combined with denied_data_access_labels, access will be granted to all - * data that doesn't have labels mentioned in denied_data_access_labels. E.g.: - * A customer with scope with denied labels A and B and allow_all will be able - * to see all data except data labeled with A and data labeled with B and data - * with labels A and B. - * - * Generated from protobuf field bool allow_all = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowAll($var) - { - GPBUtil::checkBool($var); - $this->allow_all = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php deleted file mode 100644 index afe99eb7727d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataSource.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.chronicle.v1.DataSource - */ -class DataSource -{ - /** - * Generated from protobuf enum DATA_SOURCE_UNSPECIFIED = 0; - */ - const DATA_SOURCE_UNSPECIFIED = 0; - /** - * Generated from protobuf enum UDM = 1; - */ - const UDM = 1; - /** - * Generated from protobuf enum ENTITY = 2; - */ - const ENTITY = 2; - /** - * Generated from protobuf enum INGESTION_METRICS = 3; - */ - const INGESTION_METRICS = 3; - /** - * RULE_DETECTIONS is used for detections datasource. - * - * Generated from protobuf enum RULE_DETECTIONS = 4; - */ - const RULE_DETECTIONS = 4; - /** - * RULESETS is used for ruleset with detections datasource. - * - * Generated from protobuf enum RULESETS = 5; - */ - const RULESETS = 5; - /** - * GLOBAL is used for standard time range filter. - * - * Generated from protobuf enum GLOBAL = 6; - */ - const PBGLOBAL = 6; - /** - * IOC_MATCHES is used for ioc_matches datasource. - * - * Generated from protobuf enum IOC_MATCHES = 7; - */ - const IOC_MATCHES = 7; - /** - * RULES is used for rules datasource. - * - * Generated from protobuf enum RULES = 8; - */ - const RULES = 8; - /** - * SOAR Cases - identified as `case`. - * - * Generated from protobuf enum SOAR_CASES = 9; - */ - const SOAR_CASES = 9; - /** - * SOAR Playbooks - identified as `playbook`. - * - * Generated from protobuf enum SOAR_PLAYBOOKS = 10; - */ - const SOAR_PLAYBOOKS = 10; - /** - * SOAR Case History - identified as `case_history`. - * - * Generated from protobuf enum SOAR_CASE_HISTORY = 11; - */ - const SOAR_CASE_HISTORY = 11; - /** - * DATA_TABLE is used for data tables source. - * - * Generated from protobuf enum DATA_TABLE = 12; - */ - const DATA_TABLE = 12; - /** - * INVESTIGATION is used as the data source for triage agent investigations. - * Identified as `gemini_investigation`. - * - * Generated from protobuf enum INVESTIGATION = 13; - */ - const INVESTIGATION = 13; - /** - * INVESTIGATION_FEEDBACK is used as the data source for user feedback on - * triage agent investigations. Identified as `gemini_investigation_feedback`. - * - * Generated from protobuf enum INVESTIGATION_FEEDBACK = 14; - */ - const INVESTIGATION_FEEDBACK = 14; - - private static $valueToName = [ - self::DATA_SOURCE_UNSPECIFIED => 'DATA_SOURCE_UNSPECIFIED', - self::UDM => 'UDM', - self::ENTITY => 'ENTITY', - self::INGESTION_METRICS => 'INGESTION_METRICS', - self::RULE_DETECTIONS => 'RULE_DETECTIONS', - self::RULESETS => 'RULESETS', - self::PBGLOBAL => 'GLOBAL', - self::IOC_MATCHES => 'IOC_MATCHES', - self::RULES => 'RULES', - self::SOAR_CASES => 'SOAR_CASES', - self::SOAR_PLAYBOOKS => 'SOAR_PLAYBOOKS', - self::SOAR_CASE_HISTORY => 'SOAR_CASE_HISTORY', - self::DATA_TABLE => 'DATA_TABLE', - self::INVESTIGATION => 'INVESTIGATION', - self::INVESTIGATION_FEEDBACK => 'INVESTIGATION_FEEDBACK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php deleted file mode 100644 index f2024c29a822..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTable.php +++ /dev/null @@ -1,585 +0,0 @@ -google.cloud.chronicle.v1.DataTable - */ -class DataTable extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The unique display name of the data table. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Required. A user-provided description of the data table. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Output only. Table create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Table update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Immutable. Details of all the columns in the table - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $column_info; - /** - * Output only. Data table unique id - * - * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_table_uuid = ''; - /** - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * - * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $rules; - /** - * Output only. The count of rules using the data table. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule_associations_count = 0; - /** - * Optional. User-provided TTL of the data table. - * - * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $row_time_to_live = ''; - /** - * Output only. The count of rows in the data table. - * - * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $approximate_row_count = 0; - /** - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $scope_info = null; - /** - * Output only. Source of the data table update. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_source = 0; - /** - * Output only. Last update time of the TTL of the data table. - * - * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $row_time_to_live_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * @type string $display_name - * Output only. The unique display name of the data table. - * @type string $description - * Required. A user-provided description of the data table. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Table create time - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Table update time - * @type \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $column_info - * Immutable. Details of all the columns in the table - * @type string $data_table_uuid - * Output only. Data table unique id - * @type string[] $rules - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * @type int $rule_associations_count - * Output only. The count of rules using the data table. - * @type string $row_time_to_live - * Optional. User-provided TTL of the data table. - * @type int|string $approximate_row_count - * Output only. The count of rows in the data table. - * @type \Google\Cloud\Chronicle\V1\DataTableScopeInfo $scope_info - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * @type int $update_source - * Output only. Source of the data table update. - * @type \Google\Protobuf\Timestamp $row_time_to_live_update_time - * Output only. Last update time of the TTL of the data table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the data table - * Format: - * "{project}/locations/{location}/instances/{instance}/dataTables/{data_table}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The unique display name of the data table. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The unique display name of the data table. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. A user-provided description of the data table. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. A user-provided description of the data table. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Table create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Table create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Table update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Table update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Immutable. Details of all the columns in the table - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableColumnInfo> - */ - public function getColumnInfo() - { - return $this->column_info; - } - - /** - * Immutable. Details of all the columns in the table - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableColumnInfo column_info = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Chronicle\V1\DataTableColumnInfo[] $var - * @return $this - */ - public function setColumnInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableColumnInfo::class); - $this->column_info = $arr; - - return $this; - } - - /** - * Output only. Data table unique id - * - * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataTableUuid() - { - return $this->data_table_uuid; - } - - /** - * Output only. Data table unique id - * - * Generated from protobuf field string data_table_uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataTableUuid($var) - { - GPBUtil::checkString($var, True); - $this->data_table_uuid = $var; - - return $this; - } - - /** - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * - * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * Output only. The resource names for the associated Rules that use this - * data table. Format: - * projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. - * {rule} here refers to the rule id. - * - * Generated from protobuf field repeated string rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->rules = $arr; - - return $this; - } - - /** - * Output only. The count of rules using the data table. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRuleAssociationsCount() - { - return $this->rule_associations_count; - } - - /** - * Output only. The count of rules using the data table. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRuleAssociationsCount($var) - { - GPBUtil::checkInt32($var); - $this->rule_associations_count = $var; - - return $this; - } - - /** - * Optional. User-provided TTL of the data table. - * - * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRowTimeToLive() - { - return $this->row_time_to_live; - } - - /** - * Optional. User-provided TTL of the data table. - * - * Generated from protobuf field string row_time_to_live = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRowTimeToLive($var) - { - GPBUtil::checkString($var, True); - $this->row_time_to_live = $var; - - return $this; - } - - /** - * Output only. The count of rows in the data table. - * - * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getApproximateRowCount() - { - return $this->approximate_row_count; - } - - /** - * Output only. The count of rows in the data table. - * - * Generated from protobuf field int64 approximate_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setApproximateRowCount($var) - { - GPBUtil::checkInt64($var); - $this->approximate_row_count = $var; - - return $this; - } - - /** - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DataTableScopeInfo|null - */ - public function getScopeInfo() - { - return $this->scope_info; - } - - public function hasScopeInfo() - { - return isset($this->scope_info); - } - - public function clearScopeInfo() - { - unset($this->scope_info); - } - - /** - * Optional. The scope info of the data table. - * During data table creation, if this field is not set, the data - * table without scopes (an unscoped table) will be created for a global - * user. For a scoped user, this field must be set. During data table - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableScopeInfo scope_info = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DataTableScopeInfo $var - * @return $this - */ - public function setScopeInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableScopeInfo::class); - $this->scope_info = $var; - - return $this; - } - - /** - * Output only. Source of the data table update. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getUpdateSource() - { - return $this->update_source; - } - - /** - * Output only. Source of the data table update. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableUpdateSource update_source = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setUpdateSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableUpdateSource::class); - $this->update_source = $var; - - return $this; - } - - /** - * Output only. Last update time of the TTL of the data table. - * - * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRowTimeToLiveUpdateTime() - { - return $this->row_time_to_live_update_time; - } - - public function hasRowTimeToLiveUpdateTime() - { - return isset($this->row_time_to_live_update_time); - } - - public function clearRowTimeToLiveUpdateTime() - { - unset($this->row_time_to_live_update_time); - } - - /** - * Output only. Last update time of the TTL of the data table. - * - * Generated from protobuf field .google.protobuf.Timestamp row_time_to_live_update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRowTimeToLiveUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->row_time_to_live_update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php deleted file mode 100644 index e8d196b47d9e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo.php +++ /dev/null @@ -1,274 +0,0 @@ -google.cloud.chronicle.v1.DataTableColumnInfo - */ -class DataTableColumnInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Column Index. 0,1,2... - * - * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $column_index = 0; - /** - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $original_column = ''; - /** - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * - * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key_column = false; - /** - * Optional. Whether the column is a repeated values column. - * - * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $repeated_values = false; - protected $path_or_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $mapped_column_path - * Entity proto field path that the column is mapped to - * @type int $column_type - * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX - * @type int $column_index - * Required. Column Index. 0,1,2... - * @type string $original_column - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * @type bool $key_column - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * @type bool $repeated_values - * Optional. Whether the column is a repeated values column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Entity proto field path that the column is mapped to - * - * Generated from protobuf field string mapped_column_path = 3; - * @return string - */ - public function getMappedColumnPath() - { - return $this->readOneof(3); - } - - public function hasMappedColumnPath() - { - return $this->hasOneof(3); - } - - /** - * Entity proto field path that the column is mapped to - * - * Generated from protobuf field string mapped_column_path = 3; - * @param string $var - * @return $this - */ - public function setMappedColumnPath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; - * @return int - */ - public function getColumnType() - { - return $this->readOneof(4); - } - - public function hasColumnType() - { - return $this->hasOneof(4); - } - - /** - * Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4; - * @param int $var - * @return $this - */ - public function setColumnType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DataTableColumnInfo\DataTableColumnType::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. Column Index. 0,1,2... - * - * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getColumnIndex() - { - return $this->column_index; - } - - /** - * Required. Column Index. 0,1,2... - * - * Generated from protobuf field int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setColumnIndex($var) - { - GPBUtil::checkInt32($var); - $this->column_index = $var; - - return $this; - } - - /** - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getOriginalColumn() - { - return $this->original_column; - } - - /** - * Required. Original column name of the Data Table (present in the CSV header - * in case of creation of data tables using file uploads). It must satisfy the - * following requirements: - * - Starts with letter. - * - Contains only letters, numbers and underscore. - * - Must be unique and has length < 256. - * - * Generated from protobuf field string original_column = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setOriginalColumn($var) - { - GPBUtil::checkString($var, True); - $this->original_column = $var; - - return $this; - } - - /** - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * - * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getKeyColumn() - { - return $this->key_column; - } - - /** - * Optional. Whether to include this column in the calculation of the row ID. - * If no columns have key_column = true, all columns will be included in the - * calculation of the row ID. - * - * Generated from protobuf field bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setKeyColumn($var) - { - GPBUtil::checkBool($var); - $this->key_column = $var; - - return $this; - } - - /** - * Optional. Whether the column is a repeated values column. - * - * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getRepeatedValues() - { - return $this->repeated_values; - } - - /** - * Optional. Whether the column is a repeated values column. - * - * Generated from protobuf field bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setRepeatedValues($var) - { - GPBUtil::checkBool($var); - $this->repeated_values = $var; - - return $this; - } - - /** - * @return string - */ - public function getPathOrType() - { - return $this->whichOneof("path_or_type"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php deleted file mode 100644 index 66ce99ee22da..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableColumnInfo/DataTableColumnType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType - */ -class DataTableColumnType -{ - /** - * The default Data Table Column Type. - * - * Generated from protobuf enum DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; - */ - const DATA_TABLE_COLUMN_TYPE_UNSPECIFIED = 0; - /** - * Denotes the type of the column as STRING. - * - * Generated from protobuf enum STRING = 1; - */ - const STRING = 1; - /** - * Denotes the type of the column as REGEX. - * - * Generated from protobuf enum REGEX = 2; - */ - const REGEX = 2; - /** - * Denotes the type of the column as CIDR. - * - * Generated from protobuf enum CIDR = 3; - */ - const CIDR = 3; - /** - * Denotes the type of the column as NUMBER (includes int and float). - * - * Generated from protobuf enum NUMBER = 4; - */ - const NUMBER = 4; - - private static $valueToName = [ - self::DATA_TABLE_COLUMN_TYPE_UNSPECIFIED => 'DATA_TABLE_COLUMN_TYPE_UNSPECIFIED', - self::STRING => 'STRING', - self::REGEX => 'REGEX', - self::CIDR => 'CIDR', - self::NUMBER => 'NUMBER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php deleted file mode 100644 index 23120c0eb49b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableOperationErrors.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.chronicle.v1.DataTableOperationErrors - */ -class DataTableOperationErrors extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The list of errors. - * Replaces the deprecated `errors` field. - * - * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; - */ - private $rpc_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * @type \Google\Rpc\Status[] $rpc_errors - * The list of errors. - * Replaces the deprecated `errors` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The list of errors. - * Replaces the deprecated `errors` field. - * - * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; - * @return RepeatedField<\Google\Rpc\Status> - */ - public function getRpcErrors() - { - return $this->rpc_errors; - } - - /** - * The list of errors. - * Replaces the deprecated `errors` field. - * - * Generated from protobuf field repeated .google.rpc.Status rpc_errors = 3; - * @param \Google\Rpc\Status[] $var - * @return $this - */ - public function setRpcErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->rpc_errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php deleted file mode 100644 index 09f30b14ac0c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableRow.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.chronicle.v1.DataTableRow - */ -class DataTableRow extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Output only. DataTableRow create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. DataTableRow update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-provided TTL of the data table row. - * - * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $row_time_to_live = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * @type string[] $values - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. DataTableRow create time - * @type \Google\Protobuf\Timestamp $update_time - * Output only. DataTableRow update time - * @type string $row_time_to_live - * Optional. User-provided TTL of the data table row. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the data table - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. All column values for a single row. The values should be in the - * same order as the columns of the data tables. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Output only. DataTableRow create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. DataTableRow create time - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. DataTableRow update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. DataTableRow update time - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. User-provided TTL of the data table row. - * - * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRowTimeToLive() - { - return $this->row_time_to_live; - } - - /** - * Optional. User-provided TTL of the data table row. - * - * Generated from protobuf field string row_time_to_live = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRowTimeToLive($var) - { - GPBUtil::checkString($var, True); - $this->row_time_to_live = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php deleted file mode 100644 index 71088a6ffab9..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableScopeInfo.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.chronicle.v1.DataTableScopeInfo - */ -class DataTableScopeInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * - * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $data_access_scopes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $data_access_scopes - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * - * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getDataAccessScopes() - { - return $this->data_access_scopes; - } - - /** - * Required. Contains the list of scope names of the data table. If the list - * is empty, the data table is treated as unscoped. The scope names should be - * full resource names and should be of the format: - * "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}" - * - * Generated from protobuf field repeated string data_access_scopes = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setDataAccessScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_access_scopes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php deleted file mode 100644 index a2d2cbf75cc5..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DataTableUpdateSource.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.DataTableUpdateSource - */ -class DataTableUpdateSource -{ - /** - * The data table is updated by the user. - * - * Generated from protobuf enum DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; - */ - const DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED = 0; - /** - * The data table is updated by the user. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * The data table is updated by the rule. - * - * Generated from protobuf enum RULE = 2; - */ - const RULE = 2; - /** - * The data table is updated by the search. - * - * Generated from protobuf enum SEARCH = 3; - */ - const SEARCH = 3; - - private static $valueToName = [ - self::DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED => 'DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED', - self::USER => 'USER', - self::RULE => 'RULE', - self::SEARCH => 'SEARCH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php deleted file mode 100644 index 31005e449a5e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessLabelRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataAccessLabelRequest - */ -class DeleteDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessLabelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access label to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php deleted file mode 100644 index 5d5ef83446ba..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataAccessScopeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataAccessScopeRequest - */ -class DeleteDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataAccessScopeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access scope to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php deleted file mode 100644 index 5b6d521de2f3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataTableRequest - */ -class DeleteDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * @param bool $force Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRequest - * - * @experimental - */ - public static function build(string $name, bool $force): self - { - return (new self()) - ->setName($name) - ->setForce($force); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * @type bool $force - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table to delete. - * Format - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any rows under this data table will also be - * deleted. (Otherwise, the request will only work if the data table has no - * rows.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php deleted file mode 100644 index 90e6718b303a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteDataTableRowRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.DeleteDataTableRowRequest - */ -class DeleteDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteDataTableRowRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php deleted file mode 100644 index 5875f97849e0..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteNativeDashboardRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.DeleteNativeDashboardRequest - */ -class DeleteNativeDashboardRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard name to delete. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The dashboard name to delete. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteNativeDashboardRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The dashboard name to delete. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard name to delete. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The dashboard name to delete. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php deleted file mode 100644 index 65679e334596..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteRuleRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.chronicle.v1.DeleteRuleRequest - */ -class DeleteRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DeleteRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type bool $force - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule to delete. A rule revision timestamp cannot - * be specified as part of the name, as deleting specific revisions is not - * supported. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any retrohunts and any detections associated with - * the rule will also be deleted. If set to false, the call will only succeed - * if the rule has no associated retrohunts, including completed retrohunts, - * and no associated detections. Regardless of this field's value, the rule - * deployment associated with this rule will also be deleted. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php deleted file mode 100644 index d713acb98186..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DeleteWatchlistRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.DeleteWatchlistRequest - */ -class DeleteWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. - * @param bool $force Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * @return \Google\Cloud\Chronicle\V1\DeleteWatchlistRequest - * - * @experimental - */ - public static function build(string $name, bool $force): self - { - return (new self()) - ->setName($name) - ->setForce($force); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @type bool $force - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the watchlist to delete. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any entities under this watchlist will also be - * deleted. (Otherwise, the request will only work if the watchlist has no - * entities.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php deleted file mode 100644 index 9475a9dc17ed..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.chronicle.v1.DuplicateChartRequest - */ -class DuplicateChartRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard name that involves chart duplication. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The dashboard chart name to duplicate. - * - * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $dashboard_chart = ''; - - /** - * @param string $name Required. The dashboard name that involves chart duplication. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\DuplicateChartRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The dashboard name that involves chart duplication. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @type string $dashboard_chart - * Required. The dashboard chart name to duplicate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard name that involves chart duplication. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The dashboard name that involves chart duplication. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The dashboard chart name to duplicate. - * - * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - /** - * Required. The dashboard chart name to duplicate. - * - * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkString($var, True); - $this->dashboard_chart = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php deleted file mode 100644 index f8f041f4917e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateChartResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.chronicle.v1.DuplicateChartResponse - */ -class DuplicateChartResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Dashboard with chart added in definition. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - */ - protected $native_dashboard = null; - /** - * Duplicated chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - */ - protected $dashboard_chart = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard - * Dashboard with chart added in definition. - * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart - * Duplicated chart resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Dashboard with chart added in definition. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - public function hasNativeDashboard() - { - return isset($this->native_dashboard); - } - - public function clearNativeDashboard() - { - unset($this->native_dashboard); - } - - /** - * Dashboard with chart added in definition. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->native_dashboard = $var; - - return $this; - } - - /** - * Duplicated chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - * @return \Google\Cloud\Chronicle\V1\DashboardChart|null - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - public function hasDashboardChart() - { - return isset($this->dashboard_chart); - } - - public function clearDashboardChart() - { - unset($this->dashboard_chart); - } - - /** - * Duplicated chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - * @param \Google\Cloud\Chronicle\V1\DashboardChart $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); - $this->dashboard_chart = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php deleted file mode 100644 index 3792bba9ae5c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/DuplicateNativeDashboardRequest.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.chronicle.v1.DuplicateNativeDashboardRequest - */ -class DuplicateNativeDashboardRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard name to duplicate. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Any fields that need modification can be passed through this like - * name, description etc. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $native_dashboard = null; - - /** - * @param string $name Required. The dashboard name to duplicate. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. Any fields that need modification can be passed through this like - * name, description etc. - * - * @return \Google\Cloud\Chronicle\V1\DuplicateNativeDashboardRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard): self - { - return (new self()) - ->setName($name) - ->setNativeDashboard($nativeDashboard); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The dashboard name to duplicate. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard - * Required. Any fields that need modification can be passed through this like - * name, description etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard name to duplicate. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The dashboard name to duplicate. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Any fields that need modification can be passed through this like - * name, description etc. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - public function hasNativeDashboard() - { - return isset($this->native_dashboard); - } - - public function clearNativeDashboard() - { - unset($this->native_dashboard); - } - - /** - * Required. Any fields that need modification can be passed through this like - * name, description etc. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->native_dashboard = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php deleted file mode 100644 index cad00c146146..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartRequest.php +++ /dev/null @@ -1,318 +0,0 @@ -google.cloud.chronicle.v1.EditChartRequest - */ -class EditChartRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard name to edit chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Query for the edited chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dashboard_query = null; - /** - * Optional. Edited chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dashboard_chart = null; - /** - * Required. The list of fields to edit for chart and query. - * Supported paths in chart are - - * dashboard_chart.display_name - * dashboard_chart.description - * dashboard_chart.chart_datasource.data_sources - * dashboard_chart.visualization - * dashboard_chart.visualization.button - * dashboard_chart.visualization.markdown - * dashboard_chart.drill_down_config - * Supported paths in query are - - * dashboard_query.query - * dashboard_query.input - * - * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $edit_mask = null; - /** - * Optional. Language Features present in the query. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $language_features; - - /** - * @param string $name Required. The dashboard name to edit chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery Optional. Query for the edited chart. - * @param \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart Optional. Edited chart. - * @param \Google\Protobuf\FieldMask $editMask Required. The list of fields to edit for chart and query. - * Supported paths in chart are - - * dashboard_chart.display_name - * dashboard_chart.description - * dashboard_chart.chart_datasource.data_sources - * dashboard_chart.visualization - * dashboard_chart.visualization.button - * dashboard_chart.visualization.markdown - * dashboard_chart.drill_down_config - * Supported paths in query are - - * dashboard_query.query - * dashboard_query.input - * - * @return \Google\Cloud\Chronicle\V1\EditChartRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Chronicle\V1\DashboardQuery $dashboardQuery, \Google\Cloud\Chronicle\V1\DashboardChart $dashboardChart, \Google\Protobuf\FieldMask $editMask): self - { - return (new self()) - ->setName($name) - ->setDashboardQuery($dashboardQuery) - ->setDashboardChart($dashboardChart) - ->setEditMask($editMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The dashboard name to edit chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @type \Google\Cloud\Chronicle\V1\DashboardQuery $dashboard_query - * Optional. Query for the edited chart. - * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart - * Optional. Edited chart. - * @type \Google\Protobuf\FieldMask $edit_mask - * Required. The list of fields to edit for chart and query. - * Supported paths in chart are - - * dashboard_chart.display_name - * dashboard_chart.description - * dashboard_chart.chart_datasource.data_sources - * dashboard_chart.visualization - * dashboard_chart.visualization.button - * dashboard_chart.visualization.markdown - * dashboard_chart.drill_down_config - * Supported paths in query are - - * dashboard_query.query - * dashboard_query.input - * @type int[] $language_features - * Optional. Language Features present in the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard name to edit chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The dashboard name to edit chart in. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Query for the edited chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null - */ - public function getDashboardQuery() - { - return $this->dashboard_query; - } - - public function hasDashboardQuery() - { - return isset($this->dashboard_query); - } - - public function clearDashboardQuery() - { - unset($this->dashboard_query); - } - - /** - * Optional. Query for the edited chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var - * @return $this - */ - public function setDashboardQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); - $this->dashboard_query = $var; - - return $this; - } - - /** - * Optional. Edited chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardChart|null - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - public function hasDashboardChart() - { - return isset($this->dashboard_chart); - } - - public function clearDashboardChart() - { - unset($this->dashboard_chart); - } - - /** - * Optional. Edited chart. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); - $this->dashboard_chart = $var; - - return $this; - } - - /** - * Required. The list of fields to edit for chart and query. - * Supported paths in chart are - - * dashboard_chart.display_name - * dashboard_chart.description - * dashboard_chart.chart_datasource.data_sources - * dashboard_chart.visualization - * dashboard_chart.visualization.button - * dashboard_chart.visualization.markdown - * dashboard_chart.drill_down_config - * Supported paths in query are - - * dashboard_query.query - * dashboard_query.input - * - * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getEditMask() - { - return $this->edit_mask; - } - - public function hasEditMask() - { - return isset($this->edit_mask); - } - - public function clearEditMask() - { - unset($this->edit_mask); - } - - /** - * Required. The list of fields to edit for chart and query. - * Supported paths in chart are - - * dashboard_chart.display_name - * dashboard_chart.description - * dashboard_chart.chart_datasource.data_sources - * dashboard_chart.visualization - * dashboard_chart.visualization.button - * dashboard_chart.visualization.markdown - * dashboard_chart.drill_down_config - * Supported paths in query are - - * dashboard_query.query - * dashboard_query.input - * - * Generated from protobuf field .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setEditMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->edit_mask = $var; - - return $this; - } - - /** - * Optional. Language Features present in the query. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getLanguageFeatures() - { - return $this->language_features; - } - - /** - * Optional. Language Features present in the query. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setLanguageFeatures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\LanguageFeature::class); - $this->language_features = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php deleted file mode 100644 index dc3b323f23d3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/EditChartResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.chronicle.v1.EditChartResponse - */ -class EditChartResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Edited dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - */ - protected $native_dashboard = null; - /** - * Edited chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - */ - protected $dashboard_chart = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard - * Edited dashboard. - * @type \Google\Cloud\Chronicle\V1\DashboardChart $dashboard_chart - * Edited chart resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Edited dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - public function hasNativeDashboard() - { - return isset($this->native_dashboard); - } - - public function clearNativeDashboard() - { - unset($this->native_dashboard); - } - - /** - * Edited dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->native_dashboard = $var; - - return $this; - } - - /** - * Edited chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - * @return \Google\Cloud\Chronicle\V1\DashboardChart|null - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - public function hasDashboardChart() - { - return isset($this->dashboard_chart); - } - - public function clearDashboardChart() - { - unset($this->dashboard_chart); - } - - /** - * Edited chart resource. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 2; - * @param \Google\Cloud\Chronicle\V1\DashboardChart $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardChart::class); - $this->dashboard_chart = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php deleted file mode 100644 index 73f303fb1bc3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.cloud.chronicle.v1.ExecuteDashboardQueryRequest - */ -class ExecuteDashboardQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, under which to run this dashboardQuery. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The query to execute and get results back for. - * QueryID or 'query', 'input.time_window' fields will be used. Use - * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard - * query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = null; - /** - * Optional. Dashboard level filters other than query string. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $filters; - /** - * Optional. When true, the backend would read from the database, rather than - * fetching data directly from the cache. - * - * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $clear_cache = false; - /** - * Optional. When true, the backend will execute the query against the - * previous time range of the query. - * - * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_previous_time_range = false; - - /** - * @param string $parent Required. The parent, under which to run this dashboardQuery. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see DashboardQueryServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\DashboardQuery $query Required. The query to execute and get results back for. - * QueryID or 'query', 'input.time_window' fields will be used. Use - * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard - * query. - * - * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\DashboardQuery $query): self - { - return (new self()) - ->setParent($parent) - ->setQuery($query); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, under which to run this dashboardQuery. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type \Google\Cloud\Chronicle\V1\DashboardQuery $query - * Required. The query to execute and get results back for. - * QueryID or 'query', 'input.time_window' fields will be used. Use - * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard - * query. - * @type \Google\Cloud\Chronicle\V1\DashboardFilter[] $filters - * Optional. Dashboard level filters other than query string. - * @type bool $clear_cache - * Optional. When true, the backend would read from the database, rather than - * fetching data directly from the cache. - * @type bool $use_previous_time_range - * Optional. When true, the backend will execute the query against the - * previous time range of the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, under which to run this dashboardQuery. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, under which to run this dashboardQuery. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The query to execute and get results back for. - * QueryID or 'query', 'input.time_window' fields will be used. Use - * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard - * query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DashboardQuery|null - */ - public function getQuery() - { - return $this->query; - } - - public function hasQuery() - { - return isset($this->query); - } - - public function clearQuery() - { - unset($this->query); - } - - /** - * Required. The query to execute and get results back for. - * QueryID or 'query', 'input.time_window' fields will be used. Use - * 'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard - * query. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DashboardQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardQuery::class); - $this->query = $var; - - return $this; - } - - /** - * Optional. Dashboard level filters other than query string. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardFilter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Optional. Dashboard level filters other than query string. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardFilter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardFilter::class); - $this->filters = $arr; - - return $this; - } - - /** - * Optional. When true, the backend would read from the database, rather than - * fetching data directly from the cache. - * - * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getClearCache() - { - return $this->clear_cache; - } - - /** - * Optional. When true, the backend would read from the database, rather than - * fetching data directly from the cache. - * - * Generated from protobuf field bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setClearCache($var) - { - GPBUtil::checkBool($var); - $this->clear_cache = $var; - - return $this; - } - - /** - * Optional. When true, the backend will execute the query against the - * previous time range of the query. - * - * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUsePreviousTimeRange() - { - return $this->use_previous_time_range; - } - - /** - * Optional. When true, the backend will execute the query against the - * previous time range of the query. - * - * Generated from protobuf field bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUsePreviousTimeRange($var) - { - GPBUtil::checkBool($var); - $this->use_previous_time_range = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php deleted file mode 100644 index 3df4d3c979fa..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse.php +++ /dev/null @@ -1,261 +0,0 @@ -google.cloud.chronicle.v1.ExecuteDashboardQueryResponse - */ -class ExecuteDashboardQueryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Result rows that are queried. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; - */ - private $results; - /** - * Datasource of the query and results. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; - */ - private $data_sources; - /** - * Optional. Last time the cache was refreshed. This would be used by the UI - * to show the last updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $last_backend_cache_refreshed_time = null; - /** - * Time window against which query was executed. - * - * Generated from protobuf field .google.type.Interval time_window = 5; - */ - protected $time_window = null; - /** - * Runtime errors - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; - */ - private $query_runtime_errors; - /** - * Optional. Language features found in the query. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $language_features; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData[] $results - * Result rows that are queried. - * @type int[] $data_sources - * Datasource of the query and results. - * @type \Google\Protobuf\Timestamp $last_backend_cache_refreshed_time - * Optional. Last time the cache was refreshed. This would be used by the UI - * to show the last updated time. - * @type \Google\Type\Interval $time_window - * Time window against which query was executed. - * @type \Google\Cloud\Chronicle\V1\QueryRuntimeError[] $query_runtime_errors - * Runtime errors - * @type int[] $language_features - * Optional. Language features found in the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Result rows that are queried. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData> - */ - public function getResults() - { - return $this->results; - } - - /** - * Result rows that are queried. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData results = 1; - * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData[] $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnData::class); - $this->results = $arr; - - return $this; - } - - /** - * Datasource of the query and results. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; - * @return RepeatedField - */ - public function getDataSources() - { - return $this->data_sources; - } - - /** - * Datasource of the query and results. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataSource data_sources = 3; - * @param int[] $var - * @return $this - */ - public function setDataSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\DataSource::class); - $this->data_sources = $arr; - - return $this; - } - - /** - * Optional. Last time the cache was refreshed. This would be used by the UI - * to show the last updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastBackendCacheRefreshedTime() - { - return $this->last_backend_cache_refreshed_time; - } - - public function hasLastBackendCacheRefreshedTime() - { - return isset($this->last_backend_cache_refreshed_time); - } - - public function clearLastBackendCacheRefreshedTime() - { - unset($this->last_backend_cache_refreshed_time); - } - - /** - * Optional. Last time the cache was refreshed. This would be used by the UI - * to show the last updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp last_backend_cache_refreshed_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastBackendCacheRefreshedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_backend_cache_refreshed_time = $var; - - return $this; - } - - /** - * Time window against which query was executed. - * - * Generated from protobuf field .google.type.Interval time_window = 5; - * @return \Google\Type\Interval|null - */ - public function getTimeWindow() - { - return $this->time_window; - } - - public function hasTimeWindow() - { - return isset($this->time_window); - } - - public function clearTimeWindow() - { - unset($this->time_window); - } - - /** - * Time window against which query was executed. - * - * Generated from protobuf field .google.type.Interval time_window = 5; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setTimeWindow($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->time_window = $var; - - return $this; - } - - /** - * Runtime errors - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\QueryRuntimeError> - */ - public function getQueryRuntimeErrors() - { - return $this->query_runtime_errors; - } - - /** - * Runtime errors - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError query_runtime_errors = 6; - * @param \Google\Cloud\Chronicle\V1\QueryRuntimeError[] $var - * @return $this - */ - public function setQueryRuntimeErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\QueryRuntimeError::class); - $this->query_runtime_errors = $arr; - - return $this; - } - - /** - * Optional. Language features found in the query. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getLanguageFeatures() - { - return $this->language_features; - } - - /** - * Optional. Language features found in the query. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setLanguageFeatures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\LanguageFeature::class); - $this->language_features = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php deleted file mode 100644 index b8e4df0aca8b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnData.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnData - */ -class ColumnData extends \Google\Protobuf\Internal\Message -{ - /** - * Used to store column names. - * - * Generated from protobuf field string column = 1; - */ - protected $column = ''; - /** - * To store column data. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; - */ - private $values; - /** - * To store column metadata. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; - */ - protected $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $column - * Used to store column names. - * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType[] $values - * To store column data. - * @type \Google\Cloud\Chronicle\V1\ColumnMetadata $metadata - * To store column metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Used to store column names. - * - * Generated from protobuf field string column = 1; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Used to store column names. - * - * Generated from protobuf field string column = 1; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * To store column data. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType> - */ - public function getValues() - { - return $this->values; - } - - /** - * To store column data. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType values = 2; - * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType::class); - $this->values = $arr; - - return $this; - } - - /** - * To store column metadata. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; - * @return \Google\Cloud\Chronicle\V1\ColumnMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * To store column metadata. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ColumnMetadata metadata = 3; - * @param \Google\Cloud\Chronicle\V1\ColumnMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ColumnMetadata::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php deleted file mode 100644 index 7f504659a31c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType - */ -class ColumnType extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue $value - * Single value in a column. - * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList $list - * List of values in a column e.g. IPs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Single value in a column. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue value = 1; - * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue|null - */ - public function getValue() - { - return $this->readOneof(1); - } - - public function hasValue() - { - return $this->hasOneof(1); - } - - /** - * Single value in a column. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue value = 1; - * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * List of values in a column e.g. IPs - * - * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List list = 2; - * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList|null - */ - public function getList() - { - return $this->readOneof(2); - } - - public function hasList() - { - return $this->hasOneof(2); - } - - /** - * List of values in a column e.g. IPs - * - * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List list = 2; - * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList $var - * @return $this - */ - public function setList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnType\PBList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php deleted file mode 100644 index 6ea5b09b5482..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnType/PBList.php +++ /dev/null @@ -1,60 +0,0 @@ -google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnType.List - */ -class PBList extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue[] $values - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue> - */ - public function getValues() - { - return $this->values; - } - - /** - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue values = 1; - * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php deleted file mode 100644 index aba08e522e0d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue.php +++ /dev/null @@ -1,410 +0,0 @@ -google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue - */ -class ColumnValue extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; - */ - protected $metadata = null; - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $null_val - * True if the value is NULL. - * @type bool $bool_val - * Boolean value. - * @type string $bytes_val - * Bytes value. - * @type float $double_val - * Double value. - * @type int|string $int64_val - * Integer value (signed). - * @type int|string $uint64_val - * Un-signed integer value. - * @type string $string_val - * String value. Enum values are returned as strings. - * @type \Google\Protobuf\Timestamp $timestamp_val - * Timestamp values. Does not handle `interval`. - * @type \Google\Type\Date $date_val - * Date values. - * @type \Google\Protobuf\Any $proto_val - * For any proto values that are not any of the above. - * @type \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata $metadata - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * True if the value is NULL. - * - * Generated from protobuf field bool null_val = 1; - * @return bool - */ - public function getNullVal() - { - return $this->readOneof(1); - } - - public function hasNullVal() - { - return $this->hasOneof(1); - } - - /** - * True if the value is NULL. - * - * Generated from protobuf field bool null_val = 1; - * @param bool $var - * @return $this - */ - public function setNullVal($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Boolean value. - * - * Generated from protobuf field bool bool_val = 2; - * @return bool - */ - public function getBoolVal() - { - return $this->readOneof(2); - } - - public function hasBoolVal() - { - return $this->hasOneof(2); - } - - /** - * Boolean value. - * - * Generated from protobuf field bool bool_val = 2; - * @param bool $var - * @return $this - */ - public function setBoolVal($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Bytes value. - * - * Generated from protobuf field bytes bytes_val = 3; - * @return string - */ - public function getBytesVal() - { - return $this->readOneof(3); - } - - public function hasBytesVal() - { - return $this->hasOneof(3); - } - - /** - * Bytes value. - * - * Generated from protobuf field bytes bytes_val = 3; - * @param string $var - * @return $this - */ - public function setBytesVal($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Double value. - * - * Generated from protobuf field double double_val = 4; - * @return float - */ - public function getDoubleVal() - { - return $this->readOneof(4); - } - - public function hasDoubleVal() - { - return $this->hasOneof(4); - } - - /** - * Double value. - * - * Generated from protobuf field double double_val = 4; - * @param float $var - * @return $this - */ - public function setDoubleVal($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Integer value (signed). - * - * Generated from protobuf field int64 int64_val = 5; - * @return int|string - */ - public function getInt64Val() - { - return $this->readOneof(5); - } - - public function hasInt64Val() - { - return $this->hasOneof(5); - } - - /** - * Integer value (signed). - * - * Generated from protobuf field int64 int64_val = 5; - * @param int|string $var - * @return $this - */ - public function setInt64Val($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Un-signed integer value. - * - * Generated from protobuf field uint64 uint64_val = 6; - * @return int|string - */ - public function getUint64Val() - { - return $this->readOneof(6); - } - - public function hasUint64Val() - { - return $this->hasOneof(6); - } - - /** - * Un-signed integer value. - * - * Generated from protobuf field uint64 uint64_val = 6; - * @param int|string $var - * @return $this - */ - public function setUint64Val($var) - { - GPBUtil::checkUint64($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * String value. Enum values are returned as strings. - * - * Generated from protobuf field string string_val = 7; - * @return string - */ - public function getStringVal() - { - return $this->readOneof(7); - } - - public function hasStringVal() - { - return $this->hasOneof(7); - } - - /** - * String value. Enum values are returned as strings. - * - * Generated from protobuf field string string_val = 7; - * @param string $var - * @return $this - */ - public function setStringVal($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Timestamp values. Does not handle `interval`. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampVal() - { - return $this->readOneof(8); - } - - public function hasTimestampVal() - { - return $this->hasOneof(8); - } - - /** - * Timestamp values. Does not handle `interval`. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampVal($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Date values. - * - * Generated from protobuf field .google.type.Date date_val = 9; - * @return \Google\Type\Date|null - */ - public function getDateVal() - { - return $this->readOneof(9); - } - - public function hasDateVal() - { - return $this->hasOneof(9); - } - - /** - * Date values. - * - * Generated from protobuf field .google.type.Date date_val = 9; - * @param \Google\Type\Date $var - * @return $this - */ - public function setDateVal($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * For any proto values that are not any of the above. - * - * Generated from protobuf field .google.protobuf.Any proto_val = 10; - * @return \Google\Protobuf\Any|null - */ - public function getProtoVal() - { - return $this->readOneof(10); - } - - public function hasProtoVal() - { - return $this->hasOneof(10); - } - - /** - * For any proto values that are not any of the above. - * - * Generated from protobuf field .google.protobuf.Any proto_val = 10; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setProtoVal($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; - * @return \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Generated from protobuf field .google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata metadata = 11; - * @param \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse\ColumnValue\ValueMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php deleted file mode 100644 index d3d25849132d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExecuteDashboardQueryResponse/ColumnValue/ValueMetadata.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.chronicle.v1.ExecuteDashboardQueryResponse.ColumnValue.ValueMetadata - */ -class ValueMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * "Auto" generated In-app links. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; - */ - private $links; - /** - * Generated from protobuf field repeated string field_paths = 2; - */ - private $field_paths; - /** - * Timestamp value to store the timestamp for the case of the date and - * time data type. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; - */ - protected $timestamp_val = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\InAppLink[] $links - * "Auto" generated In-app links. - * @type string[] $field_paths - * @type \Google\Protobuf\Timestamp $timestamp_val - * Timestamp value to store the timestamp for the case of the date and - * time data type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * "Auto" generated In-app links. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\InAppLink> - */ - public function getLinks() - { - return $this->links; - } - - /** - * "Auto" generated In-app links. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.InAppLink links = 1; - * @param \Google\Cloud\Chronicle\V1\InAppLink[] $var - * @return $this - */ - public function setLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\InAppLink::class); - $this->links = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated string field_paths = 2; - * @return RepeatedField - */ - public function getFieldPaths() - { - return $this->field_paths; - } - - /** - * Generated from protobuf field repeated string field_paths = 2; - * @param string[] $var - * @return $this - */ - public function setFieldPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->field_paths = $arr; - - return $this; - } - - /** - * Timestamp value to store the timestamp for the case of the date and - * time data type. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampVal() - { - return $this->timestamp_val; - } - - public function hasTimestampVal() - { - return isset($this->timestamp_val); - } - - public function clearTimestampVal() - { - unset($this->timestamp_val); - } - - /** - * Timestamp value to store the timestamp for the case of the date and - * time data type. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_val = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampVal($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp_val = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php deleted file mode 100644 index 042cb057790a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsRequest.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.chronicle.v1.ExportNativeDashboardsRequest - */ -class ExportNativeDashboardsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource that the dashboards to be exported belong to. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The resource names of the dashboards to export. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $names; - - /** - * @param string $parent Required. The parent resource that the dashboards to be exported belong to. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. - * @param string[] $names Required. The resource names of the dashboards to export. - * - * @return \Google\Cloud\Chronicle\V1\ExportNativeDashboardsRequest - * - * @experimental - */ - public static function build(string $parent, array $names): self - { - return (new self()) - ->setParent($parent) - ->setNames($names); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource that the dashboards to be exported belong to. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type string[] $names - * Required. The resource names of the dashboards to export. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource that the dashboards to be exported belong to. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource that the dashboards to be exported belong to. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The resource names of the dashboards to export. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getNames() - { - return $this->names; - } - - /** - * Required. The resource names of the dashboards to export. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php deleted file mode 100644 index 3f3ed5adb422..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ExportNativeDashboardsResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.ExportNativeDashboardsResponse - */ -class ExportNativeDashboardsResponse extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\InlineDestination $inline_destination - * The data for the exported dashboards included directly in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * The data for the exported dashboards included directly in the response. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InlineDestination inline_destination = 1; - * @return \Google\Cloud\Chronicle\V1\InlineDestination|null - */ - public function getInlineDestination() - { - return $this->readOneof(1); - } - - public function hasInlineDestination() - { - return $this->hasOneof(1); - } - - /** - * The data for the exported dashboards included directly in the response. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InlineDestination inline_destination = 1; - * @param \Google\Cloud\Chronicle\V1\InlineDestination $var - * @return $this - */ - public function setInlineDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\InlineDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php deleted file mode 100644 index 8f54c9eaa611..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata.php +++ /dev/null @@ -1,445 +0,0 @@ -google.cloud.chronicle.v1.FeaturedContentMetadata - */ -class FeaturedContentMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unique identifier of the featured content. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Output only. The display name of the featured content. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. Timestamp indicating when the item was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Timestamp indicating when the item was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Content item author full name. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $author = ''; - /** - * Output only. Determine if this content item is officially certified by - * Google or created by the community. - * - * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $certified = false; - /** - * Output only. The description of the content item. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. Categories the content is associated with. - * - * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $categories; - /** - * Output only. Featured content version (Major.Minor.Patch). - * - * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $version = ''; - /** - * Output only. Whether the content is verified by Google (applicable for 3rd - * party content). - * - * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verified = null; - /** - * Output only. The source type of the content. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. Unique identifier of the featured content. - * @type string $display_name - * Output only. The display name of the featured content. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Timestamp indicating when the item was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Timestamp indicating when the item was updated. - * @type string $author - * Output only. Content item author full name. - * @type bool $certified - * Output only. Determine if this content item is officially certified by - * Google or created by the community. - * @type string $description - * Output only. The description of the content item. - * @type string[] $categories - * Output only. Categories the content is associated with. - * @type string $version - * Output only. Featured content version (Major.Minor.Patch). - * @type bool $verified - * Output only. Whether the content is verified by Google (applicable for 3rd - * party content). - * @type int $source_type - * Output only. The source type of the content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentMetadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unique identifier of the featured content. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. Unique identifier of the featured content. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Output only. The display name of the featured content. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The display name of the featured content. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Timestamp indicating when the item was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Timestamp indicating when the item was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Timestamp indicating when the item was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Timestamp indicating when the item was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Content item author full name. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAuthor() - { - return $this->author; - } - - /** - * Output only. Content item author full name. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkString($var, True); - $this->author = $var; - - return $this; - } - - /** - * Output only. Determine if this content item is officially certified by - * Google or created by the community. - * - * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCertified() - { - return $this->certified; - } - - /** - * Output only. Determine if this content item is officially certified by - * Google or created by the community. - * - * Generated from protobuf field bool certified = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCertified($var) - { - GPBUtil::checkBool($var); - $this->certified = $var; - - return $this; - } - - /** - * Output only. The description of the content item. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. The description of the content item. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Categories the content is associated with. - * - * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getCategories() - { - return $this->categories; - } - - /** - * Output only. Categories the content is associated with. - * - * Generated from protobuf field repeated string categories = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->categories = $arr; - - return $this; - } - - /** - * Output only. Featured content version (Major.Minor.Patch). - * - * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Output only. Featured content version (Major.Minor.Patch). - * - * Generated from protobuf field string version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Output only. Whether the content is verified by Google (applicable for 3rd - * party content). - * - * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getVerified() - { - return isset($this->verified) ? $this->verified : false; - } - - public function hasVerified() - { - return isset($this->verified); - } - - public function clearVerified() - { - unset($this->verified); - } - - /** - * Output only. Whether the content is verified by Google (applicable for 3rd - * party content). - * - * Generated from protobuf field optional bool verified = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setVerified($var) - { - GPBUtil::checkBool($var); - $this->verified = $var; - - return $this; - } - - /** - * Output only. The source type of the content. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSourceType() - { - return $this->source_type; - } - - /** - * Output only. The source type of the content. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType source_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\FeaturedContentMetadata\ContentSourceType::class); - $this->source_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php deleted file mode 100644 index 534cef11ee20..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentMetadata/ContentSourceType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.FeaturedContentMetadata.ContentSourceType - */ -class ContentSourceType -{ - /** - * Unspecified content source type - * - * Generated from protobuf enum CONTENT_SOURCE_TYPE_UNSPECIFIED = 0; - */ - const CONTENT_SOURCE_TYPE_UNSPECIFIED = 0; - /** - * Certified Google content source type - * - * Generated from protobuf enum GOOGLE = 1; - */ - const GOOGLE = 1; - /** - * Community content source type - * - * Generated from protobuf enum COMMUNITY = 2; - */ - const COMMUNITY = 2; - /** - * Partner content source type - * - * Generated from protobuf enum PARTNER = 3; - */ - const PARTNER = 3; - - private static $valueToName = [ - self::CONTENT_SOURCE_TYPE_UNSPECIFIED => 'CONTENT_SOURCE_TYPE_UNSPECIFIED', - self::GOOGLE => 'GOOGLE', - self::COMMUNITY => 'COMMUNITY', - self::PARTNER => 'PARTNER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php deleted file mode 100644 index 6ad1cded0da0..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FeaturedContentNativeDashboard.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.chronicle.v1.FeaturedContentNativeDashboard - */ -class FeaturedContentNativeDashboard extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the FeaturedContentNativeDashboard. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Metadata about the FeaturedContentNativeDashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $content_metadata = null; - /** - * Optional. The dashboard content. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dashboard_content = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the FeaturedContentNativeDashboard. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * @type \Google\Cloud\Chronicle\V1\FeaturedContentMetadata $content_metadata - * Output only. Metadata about the FeaturedContentNativeDashboard. - * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries $dashboard_content - * Optional. The dashboard content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the FeaturedContentNativeDashboard. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the FeaturedContentNativeDashboard. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Metadata about the FeaturedContentNativeDashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\FeaturedContentMetadata|null - */ - public function getContentMetadata() - { - return $this->content_metadata; - } - - public function hasContentMetadata() - { - return isset($this->content_metadata); - } - - public function clearContentMetadata() - { - unset($this->content_metadata); - } - - /** - * Output only. Metadata about the FeaturedContentNativeDashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentMetadata content_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\FeaturedContentMetadata $var - * @return $this - */ - public function setContentMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\FeaturedContentMetadata::class); - $this->content_metadata = $var; - - return $this; - } - - /** - * Optional. The dashboard content. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries|null - */ - public function getDashboardContent() - { - return $this->dashboard_content; - } - - public function hasDashboardContent() - { - return isset($this->dashboard_content); - } - - public function clearDashboardContent() - { - unset($this->dashboard_content); - } - - /** - * Optional. The dashboard content. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboard_content = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries $var - * @return $this - */ - public function setDashboardContent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); - $this->dashboard_content = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php deleted file mode 100644 index d67629162255..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperator.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.chronicle.v1.FilterOperator - */ -class FilterOperator -{ - /** - * Default unspecified. - * - * Generated from protobuf enum FILTER_OPERATOR_UNSPECIFIED = 0; - */ - const FILTER_OPERATOR_UNSPECIFIED = 0; - /** - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Generated from protobuf enum NOT_EQUAL = 2; - */ - const NOT_EQUAL = 2; - /** - * Generated from protobuf enum IN = 3; - */ - const IN = 3; - /** - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Generated from protobuf enum GREATER_THAN_OR_EQUAL_TO = 5; - */ - const GREATER_THAN_OR_EQUAL_TO = 5; - /** - * Generated from protobuf enum LESS_THAN = 6; - */ - const LESS_THAN = 6; - /** - * Generated from protobuf enum LESS_THAN_OR_EQUAL_TO = 7; - */ - const LESS_THAN_OR_EQUAL_TO = 7; - /** - * Generated from protobuf enum BETWEEN = 8; - */ - const BETWEEN = 8; - /** - * Generated from protobuf enum PAST = 9; - */ - const PAST = 9; - /** - * Generated from protobuf enum IS_NULL = 10; - */ - const IS_NULL = 10; - /** - * Generated from protobuf enum IS_NOT_NULL = 11; - */ - const IS_NOT_NULL = 11; - /** - * Generated from protobuf enum STARTS_WITH = 12; - */ - const STARTS_WITH = 12; - /** - * Generated from protobuf enum ENDS_WITH = 13; - */ - const ENDS_WITH = 13; - /** - * Generated from protobuf enum DOES_NOT_STARTS_WITH = 14; - */ - const DOES_NOT_STARTS_WITH = 14; - /** - * Generated from protobuf enum DOES_NOT_ENDS_WITH = 15; - */ - const DOES_NOT_ENDS_WITH = 15; - /** - * Generated from protobuf enum NOT_IN = 16; - */ - const NOT_IN = 16; - /** - * CONTAINS is used for substring match. - * - * Generated from protobuf enum CONTAINS = 17; - */ - const CONTAINS = 17; - /** - * Used if we want to check if the field does not contain the substring. - * - * Generated from protobuf enum DOES_NOT_CONTAIN = 18; - */ - const DOES_NOT_CONTAIN = 18; - - private static $valueToName = [ - self::FILTER_OPERATOR_UNSPECIFIED => 'FILTER_OPERATOR_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::NOT_EQUAL => 'NOT_EQUAL', - self::IN => 'IN', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL_TO => 'GREATER_THAN_OR_EQUAL_TO', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL_TO => 'LESS_THAN_OR_EQUAL_TO', - self::BETWEEN => 'BETWEEN', - self::PAST => 'PAST', - self::IS_NULL => 'IS_NULL', - self::IS_NOT_NULL => 'IS_NOT_NULL', - self::STARTS_WITH => 'STARTS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::DOES_NOT_STARTS_WITH => 'DOES_NOT_STARTS_WITH', - self::DOES_NOT_ENDS_WITH => 'DOES_NOT_ENDS_WITH', - self::NOT_IN => 'NOT_IN', - self::CONTAINS => 'CONTAINS', - self::DOES_NOT_CONTAIN => 'DOES_NOT_CONTAIN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php deleted file mode 100644 index 142ad9a745d4..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/FilterOperatorAndValues.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.chronicle.v1.FilterOperatorAndValues - */ -class FilterOperatorAndValues extends \Google\Protobuf\Internal\Message -{ - /** - * Operator for a single filter modifier. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; - */ - protected $filter_operator = 0; - /** - * Values for the modifier. All operators should have a single value other - * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds - * like -86400 is past 1 day. - * - * Generated from protobuf field repeated string field_values = 2; - */ - private $field_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $filter_operator - * Operator for a single filter modifier. - * @type string[] $field_values - * Values for the modifier. All operators should have a single value other - * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds - * like -86400 is past 1 day. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Operator for a single filter modifier. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; - * @return int - */ - public function getFilterOperator() - { - return $this->filter_operator; - } - - /** - * Operator for a single filter modifier. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FilterOperator filter_operator = 1; - * @param int $var - * @return $this - */ - public function setFilterOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\FilterOperator::class); - $this->filter_operator = $var; - - return $this; - } - - /** - * Values for the modifier. All operators should have a single value other - * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds - * like -86400 is past 1 day. - * - * Generated from protobuf field repeated string field_values = 2; - * @return RepeatedField - */ - public function getFieldValues() - { - return $this->field_values; - } - - /** - * Values for the modifier. All operators should have a single value other - * than 'IN' and 'BETWEEN'. 'PAST' will have negative seconds - * like -86400 is past 1 day. - * - * Generated from protobuf field repeated string field_values = 2; - * @param string[] $var - * @return $this - */ - public function setFieldValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->field_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php deleted file mode 100644 index 11a3b7ba09f3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardChartRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDashboardChartRequest - */ -class GetDashboardChartRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the dashboardChart to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the dashboardChart to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * Please see {@see DashboardChartServiceClient::dashboardChartName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDashboardChartRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the dashboardChart to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the dashboardChart to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the dashboardChart to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php deleted file mode 100644 index 0c607fe266f4..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDashboardQueryRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDashboardQueryRequest - */ -class GetDashboardQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the dashboardQuery to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the dashboardQuery to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * Please see {@see DashboardQueryServiceClient::dashboardQueryName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDashboardQueryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the dashboardQuery to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the dashboardQuery to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the dashboardQuery to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php deleted file mode 100644 index 74aead7733a7..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessLabelRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataAccessLabelRequest - */ -class GetDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * Please see {@see DataAccessControlServiceClient::dataAccessLabelName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataAccessLabelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access label to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php deleted file mode 100644 index 0ee76b341d49..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataAccessScopeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataAccessScopeRequest - */ -class GetDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * Please see {@see DataAccessControlServiceClient::dataAccessScopeName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataAccessScopeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the data access scope to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php deleted file mode 100644 index b00e5d52ec7d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableOperationErrorsRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataTableOperationErrorsRequest - */ -class GetDataTableOperationErrorsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * Please see {@see DataTableServiceClient::dataTableOperationErrorsName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataTableOperationErrorsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name for the data table operation errors. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php deleted file mode 100644 index ab2aac02a02c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataTableRequest - */ -class GetDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataTableRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table to retrieve. - * Format: - * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php deleted file mode 100644 index 3c1918a3f2be..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetDataTableRowRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetDataTableRowRequest - */ -class GetDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * Please see {@see DataTableServiceClient::dataTableRowName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetDataTableRowRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the data table row i,e row_id. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php deleted file mode 100644 index 7a4ee8ab0153..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetFeaturedContentNativeDashboardRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetFeaturedContentNativeDashboardRequest - */ -class GetFeaturedContentNativeDashboardRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the FeaturedContentNativeDashboard to - * retrieve. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the FeaturedContentNativeDashboard to - * retrieve. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * Please see {@see FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetFeaturedContentNativeDashboardRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the FeaturedContentNativeDashboard to - * retrieve. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the FeaturedContentNativeDashboard to - * retrieve. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the FeaturedContentNativeDashboard to - * retrieve. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php deleted file mode 100644 index f7f10e18fe26..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetInstanceRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetInstanceRequest - */ -class GetInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * Please see {@see InstanceServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the instance to retrieve. - * Format: - * `projects/{project_id}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php deleted file mode 100644 index e637b5b6f217..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetNativeDashboardRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.chronicle.v1.GetNativeDashboardRequest - */ -class GetNativeDashboardRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard name to fetch. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. The dashboard name to fetch. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetNativeDashboardRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The dashboard name to fetch. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @type int $view - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard name to fetch. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The dashboard name to fetch. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\NativeDashboardView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php deleted file mode 100644 index baf589cbd38c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetReferenceListRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.chronicle.v1.GetReferenceListRequest - */ -class GetReferenceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; - */ - protected $view = 0; - - /** - * @param string $name Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * Please see {@see ReferenceListServiceClient::referenceListName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetReferenceListRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * @type int $view - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the reference list to retrieve. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * How much of the ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php deleted file mode 100644 index 2d46a2a1ae1f..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRetrohuntRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetRetrohuntRequest - */ -class GetRetrohuntRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * Please see {@see RuleServiceClient::retrohuntName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetRetrohuntRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the retrohunt to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php deleted file mode 100644 index c5defab4535b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleDeploymentRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.GetRuleDeploymentRequest - */ -class GetRuleDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * Please see {@see RuleServiceClient::ruleDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetRuleDeploymentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule deployment to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php deleted file mode 100644 index d43e6dff3705..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetRuleRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.chronicle.v1.GetRuleRequest - */ -class GetRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; - */ - protected $view = 0; - - /** - * @param string $name Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type int $view - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view field indicates the scope of fields to populate for the Rule being - * returned. If unspecified, defaults to FULL. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php deleted file mode 100644 index 056e4ed0fcf8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/GetWatchlistRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.chronicle.v1.GetWatchlistRequest - */ -class GetWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * Please see {@see EntityServiceClient::watchlistName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\GetWatchlistRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The parent, which owns this collection of watchlists. - * The name of the watchlist to retrieve. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php deleted file mode 100644 index f671e484e6da..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportExportStatus.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.chronicle.v1.ImportExportStatus - */ -class ImportExportStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the dashboard if it was supplied in the request. - * - * Generated from protobuf field string dashboard = 1; - */ - protected $dashboard = ''; - /** - * Output only. Status of the import/export operation. - * - * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dashboard - * The resource name of the dashboard if it was supplied in the request. - * @type \Google\Rpc\Status $status - * Output only. Status of the import/export operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the dashboard if it was supplied in the request. - * - * Generated from protobuf field string dashboard = 1; - * @return string - */ - public function getDashboard() - { - return $this->dashboard; - } - - /** - * The resource name of the dashboard if it was supplied in the request. - * - * Generated from protobuf field string dashboard = 1; - * @param string $var - * @return $this - */ - public function setDashboard($var) - { - GPBUtil::checkString($var, True); - $this->dashboard = $var; - - return $this; - } - - /** - * Output only. Status of the import/export operation. - * - * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. Status of the import/export operation. - * - * Generated from protobuf field .google.rpc.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php deleted file mode 100644 index 731274371bb9..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsInlineSource.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource - */ -class ImportNativeDashboardsInlineSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Dashboards with charts and queries. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $dashboards; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $dashboards - * Required. Dashboards with charts and queries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. Dashboards with charts and queries. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries> - */ - public function getDashboards() - { - return $this->dashboards; - } - - /** - * Required. Dashboards with charts and queries. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $var - * @return $this - */ - public function setDashboards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); - $this->dashboards = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php deleted file mode 100644 index 19dad270814c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.chronicle.v1.ImportNativeDashboardsRequest - */ -class ImportNativeDashboardsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The data will imported from this proto. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $source = null; - - /** - * @param string $parent Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source Required. The data will imported from this proto. - * - * @return \Google\Cloud\Chronicle\V1\ImportNativeDashboardsRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source): self - { - return (new self()) - ->setParent($parent) - ->setSource($source); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $source - * Required. The data will imported from this proto. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this dashboard will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The data will imported from this proto. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource|null - */ - public function getSource() - { - return $this->source; - } - - public function hasSource() - { - return isset($this->source); - } - - public function clearSource() - { - unset($this->source); - } - - /** - * Required. The data will imported from this proto. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ImportNativeDashboardsInlineSource::class); - $this->source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php deleted file mode 100644 index a89d2e54dbd5..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ImportNativeDashboardsResponse.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.chronicle.v1.ImportNativeDashboardsResponse - */ -class ImportNativeDashboardsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Represents the status of an import operation for multiple - * dashboards. Each dashboard's import status is tracked. A status of OK - * indicates the dashboard was ready for import. Otherwise, an appropriate - * error code and message are provided. Importantly, the import process is - * all-or-nothing: if even one dashboard fails to import, the entire import - * operation is aborted, and none of the dashboards are imported. The order of - * the statuses will be the same as in the import request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $results; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ImportExportStatus[] $results - * Output only. Represents the status of an import operation for multiple - * dashboards. Each dashboard's import status is tracked. A status of OK - * indicates the dashboard was ready for import. Otherwise, an appropriate - * error code and message are provided. Importantly, the import process is - * all-or-nothing: if even one dashboard fails to import, the entire import - * operation is aborted, and none of the dashboards are imported. The order of - * the statuses will be the same as in the import request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Represents the status of an import operation for multiple - * dashboards. Each dashboard's import status is tracked. A status of OK - * indicates the dashboard was ready for import. Otherwise, an appropriate - * error code and message are provided. Importantly, the import process is - * all-or-nothing: if even one dashboard fails to import, the entire import - * operation is aborted, and none of the dashboards are imported. The order of - * the statuses will be the same as in the import request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ImportExportStatus> - */ - public function getResults() - { - return $this->results; - } - - /** - * Output only. Represents the status of an import operation for multiple - * dashboards. Each dashboard's import status is tracked. A status of OK - * indicates the dashboard was ready for import. Otherwise, an appropriate - * error code and message are provided. Importantly, the import process is - * all-or-nothing: if even one dashboard fails to import, the entire import - * operation is aborted, and none of the dashboards are imported. The order of - * the statuses will be the same as in the import request. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ImportExportStatus results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\ImportExportStatus[] $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ImportExportStatus::class); - $this->results = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php deleted file mode 100644 index c3a7107895a1..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InAppLink.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.chronicle.v1.InAppLink - */ -class InAppLink extends \Google\Protobuf\Internal\Message -{ - /** - * URL to redirect to. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * Label for the link. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * Icon url for the link. - * - * Generated from protobuf field string icon_url = 3; - */ - protected $icon_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * URL to redirect to. - * @type string $label - * Label for the link. - * @type string $icon_url - * Icon url for the link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * URL to redirect to. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * URL to redirect to. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Label for the link. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Label for the link. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Icon url for the link. - * - * Generated from protobuf field string icon_url = 3; - * @return string - */ - public function getIconUrl() - { - return $this->icon_url; - } - - /** - * Icon url for the link. - * - * Generated from protobuf field string icon_url = 3; - * @param string $var - * @return $this - */ - public function setIconUrl($var) - { - GPBUtil::checkString($var, True); - $this->icon_url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php deleted file mode 100644 index de4fea8fbc81..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/IngestionLabel.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.chronicle.v1.IngestionLabel - */ -class IngestionLabel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The key of the ingestion label. Always required. - * - * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ingestion_label_key = ''; - /** - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * - * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ingestion_label_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ingestion_label_key - * Required. The key of the ingestion label. Always required. - * @type string $ingestion_label_value - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The key of the ingestion label. Always required. - * - * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getIngestionLabelKey() - { - return $this->ingestion_label_key; - } - - /** - * Required. The key of the ingestion label. Always required. - * - * Generated from protobuf field string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setIngestionLabelKey($var) - { - GPBUtil::checkString($var, True); - $this->ingestion_label_key = $var; - - return $this; - } - - /** - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * - * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getIngestionLabelValue() - { - return $this->ingestion_label_value; - } - - /** - * Optional. The value of the ingestion label. Optional. An object - * with no provided value and some key provided would match - * against the given key and ANY value. - * - * Generated from protobuf field string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setIngestionLabelValue($var) - { - GPBUtil::checkString($var, True); - $this->ingestion_label_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php deleted file mode 100644 index 866b74665fdf..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InlineDestination.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.InlineDestination - */ -class InlineDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Dashboards with charts and queries. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; - */ - private $dashboards; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $dashboards - * Dashboards with charts and queries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Dashboards with charts and queries. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries> - */ - public function getDashboards() - { - return $this->dashboards; - } - - /** - * Dashboards with charts and queries. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries dashboards = 1; - * @param \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries[] $var - * @return $this - */ - public function setDashboards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboardWithChartsAndQueries::class); - $this->dashboards = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php deleted file mode 100644 index a8afa8fd340e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InputsUsed.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.chronicle.v1.InputsUsed - */ -class InputsUsed extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether the rule queries UDM events. - * - * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $uses_udm = false; - /** - * Optional. Whether the rule queries entity events. - * - * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $uses_entity = false; - /** - * Optional. Whether the rule queries detections. - * - * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $uses_detection = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $uses_udm - * Optional. Whether the rule queries UDM events. - * @type bool $uses_entity - * Optional. Whether the rule queries entity events. - * @type bool $uses_detection - * Optional. Whether the rule queries detections. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether the rule queries UDM events. - * - * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUsesUdm() - { - return $this->uses_udm; - } - - /** - * Optional. Whether the rule queries UDM events. - * - * Generated from protobuf field bool uses_udm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUsesUdm($var) - { - GPBUtil::checkBool($var); - $this->uses_udm = $var; - - return $this; - } - - /** - * Optional. Whether the rule queries entity events. - * - * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUsesEntity() - { - return $this->uses_entity; - } - - /** - * Optional. Whether the rule queries entity events. - * - * Generated from protobuf field bool uses_entity = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUsesEntity($var) - { - GPBUtil::checkBool($var); - $this->uses_entity = $var; - - return $this; - } - - /** - * Optional. Whether the rule queries detections. - * - * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUsesDetection() - { - return $this->uses_detection; - } - - /** - * Optional. Whether the rule queries detections. - * - * Generated from protobuf field bool uses_detection = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUsesDetection($var) - { - GPBUtil::checkBool($var); - $this->uses_detection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php deleted file mode 100644 index 2b0c1a42587a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardRequest - */ -class InstallFeaturedContentNativeDashboardRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the FeaturedContentNativeDashboard to - * install. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The FeaturedContentNativeDashboard to install. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $featured_content_native_dashboard = null; - - /** - * @param string $name Required. The resource name of the FeaturedContentNativeDashboard to - * install. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * Please see {@see FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\InstallFeaturedContentNativeDashboardRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the FeaturedContentNativeDashboard to - * install. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * @type \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard $featured_content_native_dashboard - * Optional. The FeaturedContentNativeDashboard to install. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the FeaturedContentNativeDashboard to - * install. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the FeaturedContentNativeDashboard to - * install. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The FeaturedContentNativeDashboard to install. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard|null - */ - public function getFeaturedContentNativeDashboard() - { - return $this->featured_content_native_dashboard; - } - - public function hasFeaturedContentNativeDashboard() - { - return isset($this->featured_content_native_dashboard); - } - - public function clearFeaturedContentNativeDashboard() - { - unset($this->featured_content_native_dashboard); - } - - /** - * Optional. The FeaturedContentNativeDashboard to install. - * - * Generated from protobuf field .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboard = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard $var - * @return $this - */ - public function setFeaturedContentNativeDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::class); - $this->featured_content_native_dashboard = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php deleted file mode 100644 index 5571fee0f8fb..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/InstallFeaturedContentNativeDashboardResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse - */ -class InstallFeaturedContentNativeDashboardResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource name of the NativeDashboard created. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} - * - * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $native_dashboard = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $native_dashboard - * Optional. The resource name of the NativeDashboard created. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource name of the NativeDashboard created. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} - * - * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - /** - * Optional. The resource name of the NativeDashboard created. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{native_dashboard_id} - * - * Generated from protobuf field string native_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkString($var, True); - $this->native_dashboard = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php deleted file mode 100644 index 4f364828a412..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Instance.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.chronicle.v1.Instance - */ -class Instance extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of this instance. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php deleted file mode 100644 index 60f00ada61ce..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LanguageFeature.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.chronicle.v1.LanguageFeature - */ -class LanguageFeature -{ - /** - * Language feature is unknown. - * - * Generated from protobuf enum LANGUAGE_FEATURE_UNSPECIFIED = 0; - */ - const LANGUAGE_FEATURE_UNSPECIFIED = 0; - /** - * Language feature is joins. - * - * Generated from protobuf enum JOINS = 1; - */ - const JOINS = 1; - /** - * Language feature is stages. - * - * Generated from protobuf enum STAGES = 2; - */ - const STAGES = 2; - /** - * Language feature is data table. - * - * Generated from protobuf enum DATA_TABLES = 3; - */ - const DATA_TABLES = 3; - - private static $valueToName = [ - self::LANGUAGE_FEATURE_UNSPECIFIED => 'LANGUAGE_FEATURE_UNSPECIFIED', - self::JOINS => 'JOINS', - self::STAGES => 'STAGES', - self::DATA_TABLES => 'DATA_TABLES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php deleted file mode 100644 index a850d2d49de5..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendAlign.php +++ /dev/null @@ -1,58 +0,0 @@ -google.cloud.chronicle.v1.LegendAlign - */ -class LegendAlign -{ - /** - * Generated from protobuf enum LEGEND_ALIGN_UNSPECIFIED = 0; - */ - const LEGEND_ALIGN_UNSPECIFIED = 0; - /** - * Generated from protobuf enum AUTO = 1; - */ - const AUTO = 1; - /** - * Generated from protobuf enum LEFT = 2; - */ - const LEFT = 2; - /** - * Generated from protobuf enum RIGHT = 3; - */ - const RIGHT = 3; - - private static $valueToName = [ - self::LEGEND_ALIGN_UNSPECIFIED => 'LEGEND_ALIGN_UNSPECIFIED', - self::AUTO => 'AUTO', - self::LEFT => 'LEFT', - self::RIGHT => 'RIGHT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php deleted file mode 100644 index 4a62d42e57bd..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/LegendOrient.php +++ /dev/null @@ -1,53 +0,0 @@ -google.cloud.chronicle.v1.LegendOrient - */ -class LegendOrient -{ - /** - * Generated from protobuf enum LEGEND_ORIENT_UNSPECIFIED = 0; - */ - const LEGEND_ORIENT_UNSPECIFIED = 0; - /** - * Generated from protobuf enum VERTICAL = 1; - */ - const VERTICAL = 1; - /** - * Generated from protobuf enum HORIZONTAL = 2; - */ - const HORIZONTAL = 2; - - private static $valueToName = [ - self::LEGEND_ORIENT_UNSPECIFIED => 'LEGEND_ORIENT_UNSPECIFIED', - self::VERTICAL => 'VERTICAL', - self::HORIZONTAL => 'HORIZONTAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php deleted file mode 100644 index 40f14437c42a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessLabelsRequest - */ -class ListDataAccessLabelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataAccessLabelsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data access label will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of data access labels to return. The service may return - * fewer than this value. If unspecified, at most 100 data access labels will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataAccessLabelsRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessLabel and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php deleted file mode 100644 index 0fb2a491bf5d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessLabelsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessLabelsResponse - */ -class ListDataAccessLabelsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data access labels. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; - */ - private $data_access_labels; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessLabel[] $data_access_labels - * List of data access labels. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * List of data access labels. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessLabel> - */ - public function getDataAccessLabels() - { - return $this->data_access_labels; - } - - /** - * List of data access labels. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessLabel data_access_labels = 1; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel[] $var - * @return $this - */ - public function setDataAccessLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); - $this->data_access_labels = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php deleted file mode 100644 index 54813ad9638e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessScopesRequest - */ -class ListDataAccessScopesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see DataAccessControlServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataAccessScopesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data access scope will be created. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of data access scopes to return. The service may return - * fewer than this value. If unspecified, at most 100 data access scopes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataAccessScopesRequest` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter which should follow the guidelines of AIP-160. - * Supports filtering on all fieds of DataAccessScope and all operations as - * mentioned in https://google.aip.dev/160. - * example filter: "create_time greater than \"2023-04-21T11:30:00-04:00\" OR - * display_name:\"-21-1\"". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php deleted file mode 100644 index fd1d5cd91bc8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataAccessScopesResponse.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.chronicle.v1.ListDataAccessScopesResponse - */ -class ListDataAccessScopesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data access scopes. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; - */ - private $data_access_scopes; - /** - * Whether or not global scope is granted to the user. - * - * Generated from protobuf field optional bool global_data_access_scope_granted = 3; - */ - protected $global_data_access_scope_granted = null; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessScope[] $data_access_scopes - * List of data access scopes. - * @type bool $global_data_access_scope_granted - * Whether or not global scope is granted to the user. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * List of data access scopes. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataAccessScope> - */ - public function getDataAccessScopes() - { - return $this->data_access_scopes; - } - - /** - * List of data access scopes. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataAccessScope data_access_scopes = 1; - * @param \Google\Cloud\Chronicle\V1\DataAccessScope[] $var - * @return $this - */ - public function setDataAccessScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataAccessScope::class); - $this->data_access_scopes = $arr; - - return $this; - } - - /** - * Whether or not global scope is granted to the user. - * - * Generated from protobuf field optional bool global_data_access_scope_granted = 3; - * @return bool - */ - public function getGlobalDataAccessScopeGranted() - { - return isset($this->global_data_access_scope_granted) ? $this->global_data_access_scope_granted : false; - } - - public function hasGlobalDataAccessScopeGranted() - { - return isset($this->global_data_access_scope_granted); - } - - public function clearGlobalDataAccessScopeGranted() - { - unset($this->global_data_access_scope_granted); - } - - /** - * Whether or not global scope is granted to the user. - * - * Generated from protobuf field optional bool global_data_access_scope_granted = 3; - * @param bool $var - * @return $this - */ - public function setGlobalDataAccessScopeGranted($var) - { - GPBUtil::checkBool($var); - $this->global_data_access_scope_granted = $var; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php deleted file mode 100644 index 3289a1b5e1cc..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.chronicle.v1.ListDataTableRowsRequest - */ -class ListDataTableRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDataTableRows` call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * Please see {@see DataTableServiceClient::dataTableName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataTableRowsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * @type int $page_size - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataTableRows` call. - * @type string $order_by - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * @type string $filter - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource id of the data table. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of data table rows to return. The service may - * return fewer than this value. If unspecified, at most 100 data table rows - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDataTableRows` call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDataTableRows` call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter facilitating search over data table rows. This filter - * performs a case-insensitive substring match on the row values. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php deleted file mode 100644 index 7cde914b2a14..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTableRowsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListDataTableRowsResponse - */ -class ListDataTableRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of the data table rows returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - */ - private $data_table_rows; - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow[] $data_table_rows - * The list of the data table rows returned. - * @type string $next_page_token - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * The list of the data table rows returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTableRow> - */ - public function getDataTableRows() - { - return $this->data_table_rows; - } - - /** - * The list of the data table rows returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTableRow data_table_rows = 1; - * @param \Google\Cloud\Chronicle\V1\DataTableRow[] $var - * @return $this - */ - public function setDataTableRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_rows = $arr; - - return $this; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php deleted file mode 100644 index bb06c76adbf4..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.chronicle.v1.ListDataTablesRequest - */ -class ListDataTablesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see DataTableServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListDataTablesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type int $page_size - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * @type string $order_by - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this data table will be created. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of data tables to return. The service may - * return fewer than this value. If unspecified, at most 100 data tables will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDataTables` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDataTables` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Configures ordering of DataTables in the response. - * Note: Our implementation currently supports order by "create_time asc" only - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php deleted file mode 100644 index 51e7bfc065c6..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListDataTablesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListDataTablesResponse - */ -class ListDataTablesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of the data tables returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; - */ - private $data_tables; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTable[] $data_tables - * The list of the data tables returned. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * The list of the data tables returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DataTable> - */ - public function getDataTables() - { - return $this->data_tables; - } - - /** - * The list of the data tables returned. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DataTable data_tables = 1; - * @param \Google\Cloud\Chronicle\V1\DataTable[] $var - * @return $this - */ - public function setDataTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DataTable::class); - $this->data_tables = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php deleted file mode 100644 index 85bffca5276c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsRequest.php +++ /dev/null @@ -1,277 +0,0 @@ -google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsRequest - */ -class ListFeaturedContentNativeDashboardsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of - * FeaturedContentNativeDashboards. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of FeaturedContentNativeDashboards to return. - * The service may return fewer than this value. If unspecified, at most 100 - * FeaturedContentNativeDashboards will be returned. The maximum value is 100; - * values above 100 will be coerced to 100. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `ListFeaturedContentNativeDashboards` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The filter to apply to list the FeaturedContentNativeDashboards. - * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. - * Supported fields for filtering: - * * `name`: The resource name of the featured content. - * * `content_metadata.description`: The description of the featured - * content. - * When a literal value is provided without a field, it will perform a - * substring search across both `name` and `content_metadata.description`. - * Examples: - * * `"test"`: Matches featured content where either the name or description - * contains "test" as a substring. - * * `name="test"`: Matches featured content where the name contains "test". - * * `content_metadata.description="test"`: Matches featured content where - * the description contains "test". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of - * FeaturedContentNativeDashboards. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub - * Please see {@see FeaturedContentNativeDashboardServiceClient::contentHubName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListFeaturedContentNativeDashboardsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of - * FeaturedContentNativeDashboards. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub - * @type int $page_size - * Optional. The maximum number of FeaturedContentNativeDashboards to return. - * The service may return fewer than this value. If unspecified, at most 100 - * FeaturedContentNativeDashboards will be returned. The maximum value is 100; - * values above 100 will be coerced to 100. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `ListFeaturedContentNativeDashboards` must match the call that provided the - * page token. - * @type string $filter - * Optional. The filter to apply to list the FeaturedContentNativeDashboards. - * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. - * Supported fields for filtering: - * * `name`: The resource name of the featured content. - * * `content_metadata.description`: The description of the featured - * content. - * When a literal value is provided without a field, it will perform a - * substring search across both `name` and `content_metadata.description`. - * Examples: - * * `"test"`: Matches featured content where either the name or description - * contains "test" as a substring. - * * `name="test"`: Matches featured content where the name contains "test". - * * `content_metadata.description="test"`: Matches featured content where - * the description contains "test". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of - * FeaturedContentNativeDashboards. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of - * FeaturedContentNativeDashboards. Format: - * projects/{project}/locations/{location}/instances/{instance}/contentHub - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of FeaturedContentNativeDashboards to return. - * The service may return fewer than this value. If unspecified, at most 100 - * FeaturedContentNativeDashboards will be returned. The maximum value is 100; - * values above 100 will be coerced to 100. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of FeaturedContentNativeDashboards to return. - * The service may return fewer than this value. If unspecified, at most 100 - * FeaturedContentNativeDashboards will be returned. The maximum value is 100; - * values above 100 will be coerced to 100. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `ListFeaturedContentNativeDashboards` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListFeaturedContentNativeDashboards` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `ListFeaturedContentNativeDashboards` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. The filter to apply to list the FeaturedContentNativeDashboards. - * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. - * Supported fields for filtering: - * * `name`: The resource name of the featured content. - * * `content_metadata.description`: The description of the featured - * content. - * When a literal value is provided without a field, it will perform a - * substring search across both `name` and `content_metadata.description`. - * Examples: - * * `"test"`: Matches featured content where either the name or description - * contains "test" as a substring. - * * `name="test"`: Matches featured content where the name contains "test". - * * `content_metadata.description="test"`: Matches featured content where - * the description contains "test". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to list the FeaturedContentNativeDashboards. - * The filter syntax follows Google Cloud syntax: https://google.aip.dev/160. - * Supported fields for filtering: - * * `name`: The resource name of the featured content. - * * `content_metadata.description`: The description of the featured - * content. - * When a literal value is provided without a field, it will perform a - * substring search across both `name` and `content_metadata.description`. - * Examples: - * * `"test"`: Matches featured content where either the name or description - * contains "test" as a substring. - * * `name="test"`: Matches featured content where the name contains "test". - * * `content_metadata.description="test"`: Matches featured content where - * the description contains "test". - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php deleted file mode 100644 index 8258ec2f5485..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListFeaturedContentNativeDashboardsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse - */ -class ListFeaturedContentNativeDashboardsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of FeaturedContentNativeDashboards. - * Ordered by name by default. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; - */ - private $featured_content_native_dashboards; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard[] $featured_content_native_dashboards - * The list of FeaturedContentNativeDashboards. - * Ordered by name by default. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * The list of FeaturedContentNativeDashboards. - * Ordered by name by default. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard> - */ - public function getFeaturedContentNativeDashboards() - { - return $this->featured_content_native_dashboards; - } - - /** - * The list of FeaturedContentNativeDashboards. - * Ordered by name by default. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.FeaturedContentNativeDashboard featured_content_native_dashboards = 1; - * @param \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard[] $var - * @return $this - */ - public function setFeaturedContentNativeDashboards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard::class); - $this->featured_content_native_dashboards = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php deleted file mode 100644 index 19e90d6b59df..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsRequest.php +++ /dev/null @@ -1,208 +0,0 @@ -google.cloud.chronicle.v1.ListNativeDashboardsRequest - */ -class ListNativeDashboardsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent owning this dashboard collection. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of dashboards to return. The service may - * return fewer than this value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDashboards` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDashboards` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $parent Required. The parent owning this dashboard collection. - * Format: projects/{project}/locations/{location}/instances/{instance} - * Please see {@see NativeDashboardServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListNativeDashboardsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent owning this dashboard collection. - * Format: projects/{project}/locations/{location}/instances/{instance} - * @type int $page_size - * Optional. The maximum number of dashboards to return. The service may - * return fewer than this value. - * @type string $page_token - * Optional. A page token, received from a previous `ListDashboards` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDashboards` must - * match the call that provided the page token. - * @type int $view - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent owning this dashboard collection. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent owning this dashboard collection. - * Format: projects/{project}/locations/{location}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of dashboards to return. The service may - * return fewer than this value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of dashboards to return. The service may - * return fewer than this value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDashboards` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDashboards` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDashboards` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDashboards` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. View indicates the scope of fields to populate when returning the - * dashboard resource. If unspecified, defaults to the basic view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboardView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\NativeDashboardView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php deleted file mode 100644 index 1284ba4e0a82..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListNativeDashboardsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListNativeDashboardsResponse - */ -class ListNativeDashboardsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The dashboards from the specified chronicle instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; - */ - private $native_dashboards; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboard[] $native_dashboards - * The dashboards from the specified chronicle instance. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * The dashboards from the specified chronicle instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\NativeDashboard> - */ - public function getNativeDashboards() - { - return $this->native_dashboards; - } - - /** - * The dashboards from the specified chronicle instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.NativeDashboard native_dashboards = 1; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard[] $var - * @return $this - */ - public function setNativeDashboards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->native_dashboards = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php deleted file mode 100644 index f06a8a98b070..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.chronicle.v1.ListReferenceListsRequest - */ -class ListReferenceListsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; - */ - protected $view = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see ReferenceListServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListReferenceListsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * @type int $view - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of reference lists. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of reference lists to return. - * The service may return fewer than this value. - * If unspecified, at most 100 reference lists will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListReferenceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReferenceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * How much of each ReferenceList to view. Defaults to - * REFERENCE_LIST_VIEW_BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php deleted file mode 100644 index 9c7b02ac252a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListReferenceListsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.chronicle.v1.ListReferenceListsResponse - */ -class ListReferenceListsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The reference lists. - * Ordered in ascending alphabetical order by name. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; - */ - private $reference_lists; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ReferenceList[] $reference_lists - * The reference lists. - * Ordered in ascending alphabetical order by name. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * The reference lists. - * Ordered in ascending alphabetical order by name. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceList> - */ - public function getReferenceLists() - { - return $this->reference_lists; - } - - /** - * The reference lists. - * Ordered in ascending alphabetical order by name. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceList reference_lists = 1; - * @param \Google\Cloud\Chronicle\V1\ReferenceList[] $var - * @return $this - */ - public function setReferenceLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceList::class); - $this->reference_lists = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php deleted file mode 100644 index 0fb98bf934cf..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.cloud.chronicle.v1.ListRetrohuntsRequest - */ -class ListRetrohuntsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRetrohuntsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type int $page_size - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * @type string $filter - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The rule that the retrohunts belong to. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of retrohunt to return. The service may return fewer - * than this value. If unspecified, at most 100 retrohunts will be returned. - * The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListRetrohunts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRetrohunts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * state - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php deleted file mode 100644 index c4dc57d829af..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRetrohuntsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRetrohuntsResponse - */ -class ListRetrohuntsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The retrohunts from the specified rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; - */ - private $retrohunts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Retrohunt[] $retrohunts - * The retrohunts from the specified rule. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The retrohunts from the specified rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Retrohunt> - */ - public function getRetrohunts() - { - return $this->retrohunts; - } - - /** - * The retrohunts from the specified rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Retrohunt retrohunts = 1; - * @param \Google\Cloud\Chronicle\V1\Retrohunt[] $var - * @return $this - */ - public function setRetrohunts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Retrohunt::class); - $this->retrohunts = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php deleted file mode 100644 index a9135574e7c7..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.cloud.chronicle.v1.ListRuleDeploymentsRequest - */ -class ListRuleDeploymentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRuleDeploymentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * @type int $page_size - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * @type string $filter - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The collection of all parents which own all rule deployments. The - * "-" wildcard token must be used as the rule identifier in the resource - * path. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/-` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of rule deployments to return. The service may return - * fewer than this value. If unspecified, at most 100 rule deployments will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListRuleDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleDeployments` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter that can be used to retrieve specific rule deployments. - * The following fields are filterable: - * archived, name - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php deleted file mode 100644 index b3057a270969..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleDeploymentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRuleDeploymentsResponse - */ -class ListRuleDeploymentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The rule deployments from all rules. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; - */ - private $rule_deployments; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\RuleDeployment[] $rule_deployments - * The rule deployments from all rules. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The rule deployments from all rules. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\RuleDeployment> - */ - public function getRuleDeployments() - { - return $this->rule_deployments; - } - - /** - * The rule deployments from all rules. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RuleDeployment rule_deployments = 1; - * @param \Google\Cloud\Chronicle\V1\RuleDeployment[] $var - * @return $this - */ - public function setRuleDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\RuleDeployment::class); - $this->rule_deployments = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php deleted file mode 100644 index a22efe8c8aff..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.chronicle.v1.ListRuleRevisionsRequest - */ -class ListRuleRevisionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - */ - protected $view = 0; - - /** - * @param string $name Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * Please see {@see RuleServiceClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRuleRevisionsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type int $page_size - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * @type int $view - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule to list revisions for. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of revisions to return per page. The service may return - * fewer than this value. If unspecified, at most 100 revisions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token, received from a previous `ListRuleRevisions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRuleRevisions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view field indicates the scope of fields to populate for the revision - * being returned. If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php deleted file mode 100644 index 9b6fb1ea283d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRuleRevisionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRuleRevisionsResponse - */ -class ListRuleRevisionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The revisions of the rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - */ - private $rules; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Rule[] $rules - * The revisions of the rule. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The revisions of the rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * The revisions of the rule. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @param \Google\Cloud\Chronicle\V1\Rule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php deleted file mode 100644 index 9a5c5ce2394c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesRequest.php +++ /dev/null @@ -1,263 +0,0 @@ -google.cloud.chronicle.v1.ListRulesRequest - */ -class ListRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - */ - protected $view = 0; - /** - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see RuleServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListRulesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * @type int $view - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * @type string $filter - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of rules. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of rules to return. The service may return fewer than - * this value. If unspecified, at most 100 rules will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * view indicates the scope of fields to populate for the Rule being returned. - * If unspecified, defaults to BASIC. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleView::class); - $this->view = $var; - - return $this; - } - - /** - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Only the following filters are allowed: - * "reference_lists:{reference_list_name}" - * "data_tables:{data_table_name}" - * "display_name:{display_name}" - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php deleted file mode 100644 index acf552de7aac..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListRulesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListRulesResponse - */ -class ListRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The rules from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - */ - private $rules; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Rule[] $rules - * The rules from the specified instance. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The rules from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Rule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * The rules from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Rule rules = 1; - * @param \Google\Cloud\Chronicle\V1\Rule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php deleted file mode 100644 index 0fef99adc24d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsRequest.php +++ /dev/null @@ -1,232 +0,0 @@ -google.cloud.chronicle.v1.ListWatchlistsRequest - */ -class ListWatchlistsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * Please see {@see EntityServiceClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\ListWatchlistsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * @type int $page_size - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * @type string $page_token - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * @type string $filter - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of watchlists. - * Format: `projects/{project}/locations/{location}/instances/{instance}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of watchlists to return. - * The service may return fewer than this value. - * If unspecified, at most 200 watchlists will be returned. - * The maximum value is 200; values above 200 will be coerced to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListWatchlists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListWatchlists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Which watchlist to return in aip.dev/160 form. - * Currently, only the following filters are supported: - * - `watchlist_user_preferences.pinned=true` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])` - * - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php deleted file mode 100644 index 7c89c05776a3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ListWatchlistsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.chronicle.v1.ListWatchlistsResponse - */ -class ListWatchlistsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The watchlists from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $watchlists; - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Watchlist[] $watchlists - * Optional. The watchlists from the specified instance. - * @type string $next_page_token - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The watchlists from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\Watchlist> - */ - public function getWatchlists() - { - return $this->watchlists; - } - - /** - * Optional. The watchlists from the specified instance. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\Watchlist[] $var - * @return $this - */ - public function setWatchlists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\Watchlist::class); - $this->watchlists = $arr; - - return $this; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Optional. A token, which can be sent as `page_token` to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php deleted file mode 100644 index 9749a826c422..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.chronicle.v1.Markdown - */ -class Markdown extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Markdown content. - * - * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $content = ''; - /** - * Optional. Properties for the markdown. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $properties = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content - * Required. Markdown content. - * @type \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties $properties - * Optional. Properties for the markdown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Required. Markdown content. - * - * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Required. Markdown content. - * - * Generated from protobuf field string content = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Optional. Properties for the markdown. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties|null - */ - public function getProperties() - { - return $this->properties; - } - - public function hasProperties() - { - return isset($this->properties); - } - - public function clearProperties() - { - unset($this->properties); - } - - /** - * Optional. Properties for the markdown. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Markdown.MarkdownProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties $var - * @return $this - */ - public function setProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Markdown\MarkdownProperties::class); - $this->properties = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php deleted file mode 100644 index d9de9725ab3e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Markdown/MarkdownProperties.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.Markdown.MarkdownProperties - */ -class MarkdownProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Background color of the markdown. - * - * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $background_color = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $background_color - * Optional. Background color of the markdown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardChart::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Background color of the markdown. - * - * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBackgroundColor() - { - return $this->background_color; - } - - /** - * Optional. Background color of the markdown. - * - * Generated from protobuf field string background_color = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBackgroundColor($var) - { - GPBUtil::checkString($var, True); - $this->background_color = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php deleted file mode 100644 index cf9521d4e2ea..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricDisplayTrend.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.MetricDisplayTrend - */ -class MetricDisplayTrend -{ - /** - * Trend is not specified. - * - * Generated from protobuf enum METRIC_DISPLAY_TREND_UNSPECIFIED = 0; - */ - const METRIC_DISPLAY_TREND_UNSPECIFIED = 0; - /** - * Trend data in absolute value - * - * Generated from protobuf enum METRIC_DISPLAY_TREND_ABSOLUTE_VALUE = 2; - */ - const METRIC_DISPLAY_TREND_ABSOLUTE_VALUE = 2; - /** - * Trend data in percentage - * - * Generated from protobuf enum METRIC_DISPLAY_TREND_PERCENTAGE = 3; - */ - const METRIC_DISPLAY_TREND_PERCENTAGE = 3; - /** - * Trend data in both absolute value and percentage - * - * Generated from protobuf enum METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE = 4; - */ - const METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE = 4; - - private static $valueToName = [ - self::METRIC_DISPLAY_TREND_UNSPECIFIED => 'METRIC_DISPLAY_TREND_UNSPECIFIED', - self::METRIC_DISPLAY_TREND_ABSOLUTE_VALUE => 'METRIC_DISPLAY_TREND_ABSOLUTE_VALUE', - self::METRIC_DISPLAY_TREND_PERCENTAGE => 'METRIC_DISPLAY_TREND_PERCENTAGE', - self::METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE => 'METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php deleted file mode 100644 index b7e1c16c9289..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricFormat.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.chronicle.v1.MetricFormat - */ -class MetricFormat -{ - /** - * Metric format is not specified. - * - * Generated from protobuf enum METRIC_FORMAT_UNSPECIFIED = 0; - */ - const METRIC_FORMAT_UNSPECIFIED = 0; - /** - * Metric format in number - * - * Generated from protobuf enum METRIC_FORMAT_NUMBER = 1; - */ - const METRIC_FORMAT_NUMBER = 1; - /** - * Metric format in plain text - * - * Generated from protobuf enum METRIC_FORMAT_PLAIN_TEXT = 2; - */ - const METRIC_FORMAT_PLAIN_TEXT = 2; - - private static $valueToName = [ - self::METRIC_FORMAT_UNSPECIFIED => 'METRIC_FORMAT_UNSPECIFIED', - self::METRIC_FORMAT_NUMBER => 'METRIC_FORMAT_NUMBER', - self::METRIC_FORMAT_PLAIN_TEXT => 'METRIC_FORMAT_PLAIN_TEXT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php deleted file mode 100644 index 20a0f130035f..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/MetricTrendType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.chronicle.v1.MetricTrendType - */ -class MetricTrendType -{ - /** - * Trend type is not specified. - * - * Generated from protobuf enum METRIC_TREND_TYPE_UNSPECIFIED = 0; - */ - const METRIC_TREND_TYPE_UNSPECIFIED = 0; - /** - * The trend type is regular(green for positive delta) - * - * Generated from protobuf enum METRIC_TREND_TYPE_REGULAR = 1; - */ - const METRIC_TREND_TYPE_REGULAR = 1; - /** - * The trend type is inverse(red for positive delta) - * - * Generated from protobuf enum METRIC_TREND_TYPE_INVERSE = 2; - */ - const METRIC_TREND_TYPE_INVERSE = 2; - - private static $valueToName = [ - self::METRIC_TREND_TYPE_UNSPECIFIED => 'METRIC_TREND_TYPE_UNSPECIFIED', - self::METRIC_TREND_TYPE_REGULAR => 'METRIC_TREND_TYPE_REGULAR', - self::METRIC_TREND_TYPE_INVERSE => 'METRIC_TREND_TYPE_INVERSE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php deleted file mode 100644 index 3968678c6358..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboard.php +++ /dev/null @@ -1,493 +0,0 @@ -google.cloud.chronicle.v1.NativeDashboard - */ -class NativeDashboard extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the dashboard. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Dashboard display name/title visible to users. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description of the dashboard. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Definition of the dashboard like metadata, visualization and - * datasource configuration etc. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $definition = null; - /** - * Output only. Whether it's an out of the box or custom created dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. Creation time of dashboard. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time the dashboard was last edited. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. User who created the dashboard. - * - * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_user_id = ''; - /** - * Output only. User who last edited the dashboard. - * - * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_user_id = ''; - /** - * Output only. User Preferences for a dashboard - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $dashboard_user_data = null; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Output only. Access of the dashboard - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the dashboard. - * @type string $display_name - * Required. Dashboard display name/title visible to users. - * @type string $description - * Optional. Description of the dashboard. - * @type \Google\Cloud\Chronicle\V1\DashboardDefinition $definition - * Optional. Definition of the dashboard like metadata, visualization and - * datasource configuration etc. - * @type int $type - * Output only. Whether it's an out of the box or custom created dashboard. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation time of dashboard. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the dashboard was last edited. - * @type string $create_user_id - * Output only. User who created the dashboard. - * @type string $update_user_id - * Output only. User who last edited the dashboard. - * @type \Google\Cloud\Chronicle\V1\DashboardUserData $dashboard_user_data - * Output only. User Preferences for a dashboard - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type int $access - * Output only. Access of the dashboard - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the dashboard. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the dashboard. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Dashboard display name/title visible to users. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Dashboard display name/title visible to users. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the dashboard. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the dashboard. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Definition of the dashboard like metadata, visualization and - * datasource configuration etc. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\DashboardDefinition|null - */ - public function getDefinition() - { - return $this->definition; - } - - public function hasDefinition() - { - return isset($this->definition); - } - - public function clearDefinition() - { - unset($this->definition); - } - - /** - * Optional. Definition of the dashboard like metadata, visualization and - * datasource configuration etc. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardDefinition definition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardDefinition $var - * @return $this - */ - public function setDefinition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardDefinition::class); - $this->definition = $var; - - return $this; - } - - /** - * Output only. Whether it's an out of the box or custom created dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. Whether it's an out of the box or custom created dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DashboardType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. Creation time of dashboard. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Creation time of dashboard. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time the dashboard was last edited. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time the dashboard was last edited. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. User who created the dashboard. - * - * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreateUserId() - { - return $this->create_user_id; - } - - /** - * Output only. User who created the dashboard. - * - * Generated from protobuf field string create_user_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreateUserId($var) - { - GPBUtil::checkString($var, True); - $this->create_user_id = $var; - - return $this; - } - - /** - * Output only. User who last edited the dashboard. - * - * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUpdateUserId() - { - return $this->update_user_id; - } - - /** - * Output only. User who last edited the dashboard. - * - * Generated from protobuf field string update_user_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUpdateUserId($var) - { - GPBUtil::checkString($var, True); - $this->update_user_id = $var; - - return $this; - } - - /** - * Output only. User Preferences for a dashboard - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\DashboardUserData|null - */ - public function getDashboardUserData() - { - return $this->dashboard_user_data; - } - - public function hasDashboardUserData() - { - return isset($this->dashboard_user_data); - } - - public function clearDashboardUserData() - { - unset($this->dashboard_user_data); - } - - /** - * Output only. User Preferences for a dashboard - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardUserData dashboard_user_data = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\DashboardUserData $var - * @return $this - */ - public function setDashboardUserData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DashboardUserData::class); - $this->dashboard_user_data = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. Access of the dashboard - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAccess() - { - return $this->access; - } - - /** - * Output only. Access of the dashboard - * - * Generated from protobuf field .google.cloud.chronicle.v1.DashboardAccess access = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\DashboardAccess::class); - $this->access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php deleted file mode 100644 index 6ca1db683166..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardView.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.chronicle.v1.NativeDashboardView - */ -class NativeDashboardView -{ - /** - * Defaults to basic. - * - * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_UNSPECIFIED = 0; - */ - const NATIVE_DASHBOARD_VIEW_UNSPECIFIED = 0; - /** - * Include basic metadata about the dashboard without full definition. - * - * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_BASIC = 1; - */ - const NATIVE_DASHBOARD_VIEW_BASIC = 1; - /** - * Include everything. - * - * Generated from protobuf enum NATIVE_DASHBOARD_VIEW_FULL = 2; - */ - const NATIVE_DASHBOARD_VIEW_FULL = 2; - - private static $valueToName = [ - self::NATIVE_DASHBOARD_VIEW_UNSPECIFIED => 'NATIVE_DASHBOARD_VIEW_UNSPECIFIED', - self::NATIVE_DASHBOARD_VIEW_BASIC => 'NATIVE_DASHBOARD_VIEW_BASIC', - self::NATIVE_DASHBOARD_VIEW_FULL => 'NATIVE_DASHBOARD_VIEW_FULL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php deleted file mode 100644 index aaf937550d17..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/NativeDashboardWithChartsAndQueries.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.chronicle.v1.NativeDashboardWithChartsAndQueries - */ -class NativeDashboardWithChartsAndQueries extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Native dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dashboard = null; - /** - * Optional. Charts in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $dashboard_charts; - /** - * Optional. Queries in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $dashboard_queries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboard $dashboard - * Optional. Native dashboard. - * @type \Google\Cloud\Chronicle\V1\DashboardChart[] $dashboard_charts - * Optional. Charts in the dashboard. - * @type \Google\Cloud\Chronicle\V1\DashboardQuery[] $dashboard_queries - * Optional. Queries in the dashboard. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Native dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null - */ - public function getDashboard() - { - return $this->dashboard; - } - - public function hasDashboard() - { - return isset($this->dashboard); - } - - public function clearDashboard() - { - unset($this->dashboard); - } - - /** - * Optional. Native dashboard. - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard dashboard = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var - * @return $this - */ - public function setDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->dashboard = $var; - - return $this; - } - - /** - * Optional. Charts in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardChart> - */ - public function getDashboardCharts() - { - return $this->dashboard_charts; - } - - /** - * Optional. Charts in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardChart dashboard_charts = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardChart[] $var - * @return $this - */ - public function setDashboardCharts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardChart::class); - $this->dashboard_charts = $arr; - - return $this; - } - - /** - * Optional. Queries in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\DashboardQuery> - */ - public function getDashboardQueries() - { - return $this->dashboard_queries; - } - - /** - * Optional. Queries in the dashboard. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.DashboardQuery dashboard_queries = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\DashboardQuery[] $var - * @return $this - */ - public function setDashboardQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\DashboardQuery::class); - $this->dashboard_queries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php deleted file mode 100644 index 51984fd662c3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PlotMode.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.PlotMode - */ -class PlotMode -{ - /** - * Plot mode is not specified. - * - * Generated from protobuf enum PLOT_MODE_UNSPECIFIED = 0; - */ - const PLOT_MODE_UNSPECIFIED = 0; - /** - * Plot mode is points. - * - * Generated from protobuf enum PLOT_MODE_POINTS = 1; - */ - const PLOT_MODE_POINTS = 1; - /** - * Plot mode is heatmap. - * - * Generated from protobuf enum PLOT_MODE_HEATMAP = 2; - */ - const PLOT_MODE_HEATMAP = 2; - /** - * Plot mode is both points and heatmap. - * - * Generated from protobuf enum PLOT_MODE_BOTH = 3; - */ - const PLOT_MODE_BOTH = 3; - - private static $valueToName = [ - self::PLOT_MODE_UNSPECIFIED => 'PLOT_MODE_UNSPECIFIED', - self::PLOT_MODE_POINTS => 'PLOT_MODE_POINTS', - self::PLOT_MODE_HEATMAP => 'PLOT_MODE_HEATMAP', - self::PLOT_MODE_BOTH => 'PLOT_MODE_BOTH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php deleted file mode 100644 index fae88d764577..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/PointSizeType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.chronicle.v1.PointSizeType - */ -class PointSizeType -{ - /** - * Point size is not specified. - * - * Generated from protobuf enum POINT_SIZE_TYPE_UNSPECIFIED = 0; - */ - const POINT_SIZE_TYPE_UNSPECIFIED = 0; - /** - * Point size is fixed. - * - * Generated from protobuf enum POINT_SIZE_TYPE_FIXED = 1; - */ - const POINT_SIZE_TYPE_FIXED = 1; - /** - * Point size is proportional to the size of the data point. - * - * Generated from protobuf enum POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE = 2; - */ - const POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE = 2; - - private static $valueToName = [ - self::POINT_SIZE_TYPE_UNSPECIFIED => 'POINT_SIZE_TYPE_UNSPECIFIED', - self::POINT_SIZE_TYPE_FIXED => 'POINT_SIZE_TYPE_FIXED', - self::POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE => 'POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php deleted file mode 100644 index 032140db1d4e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.chronicle.v1.QueryRuntimeError - */ -class QueryRuntimeError extends \Google\Protobuf\Internal\Message -{ - /** - * Short Description of the error. - * - * Generated from protobuf field string error_title = 1; - */ - protected $error_title = ''; - /** - * Error message - * - * Generated from protobuf field string error_description = 2; - */ - protected $error_description = ''; - /** - * Severity of the error. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; - */ - protected $error_severity = 0; - /** - * Metadata for the error. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; - */ - private $metadata; - /** - * Reason for the error. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; - */ - protected $warning_reason = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $error_title - * Short Description of the error. - * @type string $error_description - * Error message - * @type int $error_severity - * Severity of the error. - * @type \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata[] $metadata - * Metadata for the error. - * @type int $warning_reason - * Reason for the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Short Description of the error. - * - * Generated from protobuf field string error_title = 1; - * @return string - */ - public function getErrorTitle() - { - return $this->error_title; - } - - /** - * Short Description of the error. - * - * Generated from protobuf field string error_title = 1; - * @param string $var - * @return $this - */ - public function setErrorTitle($var) - { - GPBUtil::checkString($var, True); - $this->error_title = $var; - - return $this; - } - - /** - * Error message - * - * Generated from protobuf field string error_description = 2; - * @return string - */ - public function getErrorDescription() - { - return $this->error_description; - } - - /** - * Error message - * - * Generated from protobuf field string error_description = 2; - * @param string $var - * @return $this - */ - public function setErrorDescription($var) - { - GPBUtil::checkString($var, True); - $this->error_description = $var; - - return $this; - } - - /** - * Severity of the error. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; - * @return int - */ - public function getErrorSeverity() - { - return $this->error_severity; - } - - /** - * Severity of the error. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity error_severity = 3; - * @param int $var - * @return $this - */ - public function setErrorSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\ErrorSeverity::class); - $this->error_severity = $var; - - return $this; - } - - /** - * Metadata for the error. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata> - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Metadata for the error. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata metadata = 4; - * @param \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata[] $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\QueryRuntimeError\QueryRuntimeErrorMetadata::class); - $this->metadata = $arr; - - return $this; - } - - /** - * Reason for the error. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; - * @return int - */ - public function getWarningReason() - { - return $this->warning_reason; - } - - /** - * Reason for the error. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.WarningReason warning_reason = 5; - * @param int $var - * @return $this - */ - public function setWarningReason($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\WarningReason::class); - $this->warning_reason = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php deleted file mode 100644 index 3b79186ecf3b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/ErrorSeverity.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.chronicle.v1.QueryRuntimeError.ErrorSeverity - */ -class ErrorSeverity -{ - /** - * Severity is unknown. - * - * Generated from protobuf enum ERROR_SEVERITY_UNSPECIFIED = 0; - */ - const ERROR_SEVERITY_UNSPECIFIED = 0; - /** - * Severity is warning. - * - * Generated from protobuf enum WARNING = 1; - */ - const WARNING = 1; - /** - * Error is severe. - * - * Generated from protobuf enum SEVERE = 2; - */ - const SEVERE = 2; - - private static $valueToName = [ - self::ERROR_SEVERITY_UNSPECIFIED => 'ERROR_SEVERITY_UNSPECIFIED', - self::WARNING => 'WARNING', - self::SEVERE => 'SEVERE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php deleted file mode 100644 index aba7c3c6faf9..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/MetadataKey.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey - */ -class MetadataKey -{ - /** - * Key is unknown. - * - * Generated from protobuf enum METADATA_KEY_UNSPECIFIED = 0; - */ - const METADATA_KEY_UNSPECIFIED = 0; - /** - * Key is row limit. - * - * Generated from protobuf enum ROW_LIMIT = 1; - */ - const ROW_LIMIT = 1; - - private static $valueToName = [ - self::METADATA_KEY_UNSPECIFIED => 'METADATA_KEY_UNSPECIFIED', - self::ROW_LIMIT => 'ROW_LIMIT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php deleted file mode 100644 index fcf2088ace2a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/QueryRuntimeErrorMetadata.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata - */ -class QueryRuntimeErrorMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Metadata key. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; - */ - protected $key = 0; - /** - * Metadata value. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $key - * Metadata key. - * @type string $value - * Metadata value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Metadata key. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; - * @return int - */ - public function getKey() - { - return $this->key; - } - - /** - * Metadata key. - * - * Generated from protobuf field .google.cloud.chronicle.v1.QueryRuntimeError.MetadataKey key = 1; - * @param int $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\QueryRuntimeError\MetadataKey::class); - $this->key = $var; - - return $this; - } - - /** - * Metadata value. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Metadata value. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php deleted file mode 100644 index 3caba628f773..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/QueryRuntimeError/WarningReason.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.QueryRuntimeError.WarningReason - */ -class WarningReason -{ - /** - * Reason is unknown. - * - * Generated from protobuf enum WARNING_REASON_UNSPECIFIED = 0; - */ - const WARNING_REASON_UNSPECIFIED = 0; - /** - * Reason is row limit exceeded. - * - * Generated from protobuf enum ROW_LIMIT_EXCEEDED = 1; - */ - const ROW_LIMIT_EXCEEDED = 1; - /** - * Reason is default row limit exceeded. - * - * Generated from protobuf enum DEFAULT_ROW_LIMIT_EXCEEDED = 2; - */ - const DEFAULT_ROW_LIMIT_EXCEEDED = 2; - /** - * Reason is curated query default row limit exceeded. - * - * Generated from protobuf enum CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED = 3; - */ - const CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED = 3; - - private static $valueToName = [ - self::WARNING_REASON_UNSPECIFIED => 'WARNING_REASON_UNSPECIFIED', - self::ROW_LIMIT_EXCEEDED => 'ROW_LIMIT_EXCEEDED', - self::DEFAULT_ROW_LIMIT_EXCEEDED => 'DEFAULT_ROW_LIMIT_EXCEEDED', - self::CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED => 'CURATED_QUERY_DEFAULT_ROW_LIMIT_EXCEEDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php deleted file mode 100644 index fa290dd6040a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceList.php +++ /dev/null @@ -1,409 +0,0 @@ -google.cloud.chronicle.v1.ReferenceList - */ -class ReferenceList extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The unique display name of the reference list. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The timestamp when the reference list was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_create_time = null; - /** - * Required. A user-provided description of the reference list. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private $entries; - /** - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $rules; - /** - * Required. The syntax type indicating how list entries should be validated. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $syntax_type = 0; - /** - * Output only. The count of self-authored rules using the reference list. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule_associations_count = 0; - /** - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; - */ - protected $scope_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * @type string $display_name - * Output only. The unique display name of the reference list. - * @type \Google\Protobuf\Timestamp $revision_create_time - * Output only. The timestamp when the reference list was last updated. - * @type string $description - * Required. A user-provided description of the reference list. - * @type \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $entries - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * @type string[] $rules - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * @type int $syntax_type - * Required. The syntax type indicating how list entries should be validated. - * @type int $rule_associations_count - * Output only. The count of self-authored rules using the reference list. - * @type \Google\Cloud\Chronicle\V1\ScopeInfo $scope_info - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the reference list. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The unique display name of the reference list. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The unique display name of the reference list. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The timestamp when the reference list was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionCreateTime() - { - return $this->revision_create_time; - } - - public function hasRevisionCreateTime() - { - return isset($this->revision_create_time); - } - - public function clearRevisionCreateTime() - { - unset($this->revision_create_time); - } - - /** - * Output only. The timestamp when the reference list was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_create_time = $var; - - return $this; - } - - /** - * Required. A user-provided description of the reference list. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. A user-provided description of the reference list. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\ReferenceListEntry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * Required. The entries of the reference list. - * When listed, they are returned in the order that was specified at creation - * or update. The combined size of the values of the reference list may not - * exceed 6MB. - * This is returned only when the view is REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceListEntry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\ReferenceListEntry::class); - $this->entries = $arr; - - return $this; - } - - /** - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * Output only. The resource names for the associated self-authored Rules that - * use this reference list. This is returned only when the view is - * REFERENCE_LIST_VIEW_FULL. - * - * Generated from protobuf field repeated string rules = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->rules = $arr; - - return $this; - } - - /** - * Required. The syntax type indicating how list entries should be validated. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSyntaxType() - { - return $this->syntax_type; - } - - /** - * Required. The syntax type indicating how list entries should be validated. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSyntaxType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\ReferenceListSyntaxType::class); - $this->syntax_type = $var; - - return $this; - } - - /** - * Output only. The count of self-authored rules using the reference list. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRuleAssociationsCount() - { - return $this->rule_associations_count; - } - - /** - * Output only. The count of self-authored rules using the reference list. - * - * Generated from protobuf field int32 rule_associations_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRuleAssociationsCount($var) - { - GPBUtil::checkInt32($var); - $this->rule_associations_count = $var; - - return $this; - } - - /** - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; - * @return \Google\Cloud\Chronicle\V1\ScopeInfo|null - */ - public function getScopeInfo() - { - return $this->scope_info; - } - - public function hasScopeInfo() - { - return isset($this->scope_info); - } - - public function clearScopeInfo() - { - unset($this->scope_info); - } - - /** - * The scope info of the reference list. - * During reference list creation, if this field is not set, the reference - * list without scopes (an unscoped list) will be created for an unscoped - * user. For a scoped user, this field must be set. During reference list - * update, if scope_info is requested to be updated, this field must be set. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ScopeInfo scope_info = 11; - * @param \Google\Cloud\Chronicle\V1\ScopeInfo $var - * @return $this - */ - public function setScopeInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ScopeInfo::class); - $this->scope_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php deleted file mode 100644 index 09d9360018ce..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListEntry.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListEntry - */ -class ReferenceListEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The value of the entry. Maximum length is 512 characters. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Required. The value of the entry. Maximum length is 512 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The value of the entry. Maximum length is 512 characters. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The value of the entry. Maximum length is 512 characters. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php deleted file mode 100644 index 56675595cb8a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListScope.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListScope - */ -class ReferenceListScope extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * - * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $scope_names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $scope_names - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * - * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getScopeNames() - { - return $this->scope_names; - } - - /** - * Optional. The list of scope names of the reference list. The scope names - * should be full resource names and should be of the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`. - * - * Generated from protobuf field repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setScopeNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->scope_names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php deleted file mode 100644 index 1cc19918caec..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListSyntaxType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListSyntaxType - */ -class ReferenceListSyntaxType -{ - /** - * Defaults to REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; - */ - const REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0; - /** - * List contains plain text patterns. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; - */ - const REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1; - /** - * List contains only Regular Expression patterns. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; - */ - const REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2; - /** - * List contains only CIDR patterns. - * - * Generated from protobuf enum REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; - */ - const REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3; - - private static $valueToName = [ - self::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED => 'REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED', - self::REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING => 'REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING', - self::REFERENCE_LIST_SYNTAX_TYPE_REGEX => 'REFERENCE_LIST_SYNTAX_TYPE_REGEX', - self::REFERENCE_LIST_SYNTAX_TYPE_CIDR => 'REFERENCE_LIST_SYNTAX_TYPE_CIDR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php deleted file mode 100644 index 78d29ab7d594..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ReferenceListView.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.ReferenceListView - */ -class ReferenceListView -{ - /** - * The default / unset value. - * The API will default to the BASIC view for ListReferenceLists. - * The API will default to the FULL view for methods that return a single - * ReferenceList resource. - * - * Generated from protobuf enum REFERENCE_LIST_VIEW_UNSPECIFIED = 0; - */ - const REFERENCE_LIST_VIEW_UNSPECIFIED = 0; - /** - * Include metadata about the ReferenceList. - * This is the default view for ListReferenceLists. - * - * Generated from protobuf enum REFERENCE_LIST_VIEW_BASIC = 1; - */ - const REFERENCE_LIST_VIEW_BASIC = 1; - /** - * Include all details about the ReferenceList: metadata, content lines, - * associated rule counts. This is the default view for GetReferenceList. - * - * Generated from protobuf enum REFERENCE_LIST_VIEW_FULL = 2; - */ - const REFERENCE_LIST_VIEW_FULL = 2; - - private static $valueToName = [ - self::REFERENCE_LIST_VIEW_UNSPECIFIED => 'REFERENCE_LIST_VIEW_UNSPECIFIED', - self::REFERENCE_LIST_VIEW_BASIC => 'REFERENCE_LIST_VIEW_BASIC', - self::REFERENCE_LIST_VIEW_FULL => 'REFERENCE_LIST_VIEW_FULL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php deleted file mode 100644 index ddf1a53ca080..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RemoveChartRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.chronicle.v1.RemoveChartRequest - */ -class RemoveChartRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard name to remove chart from. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The dashboard chart name to remove. - * - * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $dashboard_chart = ''; - - /** - * @param string $name Required. The dashboard name to remove chart from. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * Please see {@see NativeDashboardServiceClient::nativeDashboardName()} for help formatting this field. - * - * @return \Google\Cloud\Chronicle\V1\RemoveChartRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The dashboard name to remove chart from. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @type string $dashboard_chart - * Required. The dashboard chart name to remove. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard name to remove chart from. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The dashboard name to remove chart from. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The dashboard chart name to remove. - * - * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDashboardChart() - { - return $this->dashboard_chart; - } - - /** - * Required. The dashboard chart name to remove. - * - * Generated from protobuf field string dashboard_chart = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDashboardChart($var) - { - GPBUtil::checkString($var, True); - $this->dashboard_chart = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php deleted file mode 100644 index 359a3507de25..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RenderType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.chronicle.v1.RenderType - */ -class RenderType -{ - /** - * Defaults to Unspecified. - * - * Generated from protobuf enum RENDER_TYPE_UNSPECIFIED = 0; - */ - const RENDER_TYPE_UNSPECIFIED = 0; - /** - * Text render type. - * - * Generated from protobuf enum RENDER_TYPE_TEXT = 1; - */ - const RENDER_TYPE_TEXT = 1; - /** - * Icon render type. - * - * Generated from protobuf enum RENDER_TYPE_ICON = 2; - */ - const RENDER_TYPE_ICON = 2; - /** - * Icon and text render type. - * - * Generated from protobuf enum RENDER_TYPE_ICON_AND_TEXT = 3; - */ - const RENDER_TYPE_ICON_AND_TEXT = 3; - - private static $valueToName = [ - self::RENDER_TYPE_UNSPECIFIED => 'RENDER_TYPE_UNSPECIFIED', - self::RENDER_TYPE_TEXT => 'RENDER_TYPE_TEXT', - self::RENDER_TYPE_ICON => 'RENDER_TYPE_ICON', - self::RENDER_TYPE_ICON_AND_TEXT => 'RENDER_TYPE_ICON_AND_TEXT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php deleted file mode 100644 index 39703c9069fd..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.chronicle.v1.Retrohunt - */ -class Retrohunt extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The start and end time of the event time range this retrohunt - * processes. - * - * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $process_interval = null; - /** - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * - * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_interval = null; - /** - * Output only. The state of the retrohunt. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $progress_percentage = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * @type \Google\Type\Interval $process_interval - * Required. The start and end time of the event time range this retrohunt - * processes. - * @type \Google\Type\Interval $execution_interval - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * @type int $state - * Output only. The state of the retrohunt. - * @type float $progress_percentage - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the retrohunt. - * Retrohunt is the child of a rule revision. {rule} in the format below is - * structured as {rule_id\@revision_id}. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The start and end time of the event time range this retrohunt - * processes. - * - * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Interval|null - */ - public function getProcessInterval() - { - return $this->process_interval; - } - - public function hasProcessInterval() - { - return isset($this->process_interval); - } - - public function clearProcessInterval() - { - unset($this->process_interval); - } - - /** - * Required. The start and end time of the event time range this retrohunt - * processes. - * - * Generated from protobuf field .google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setProcessInterval($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->process_interval = $var; - - return $this; - } - - /** - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * - * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Type\Interval|null - */ - public function getExecutionInterval() - { - return $this->execution_interval; - } - - public function hasExecutionInterval() - { - return isset($this->execution_interval); - } - - public function clearExecutionInterval() - { - unset($this->execution_interval); - } - - /** - * Output only. The start and end time of the retrohunt execution. If the - * retrohunt is not yet finished, the end time of the interval will not be - * populated. - * - * Generated from protobuf field .google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setExecutionInterval($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->execution_interval = $var; - - return $this; - } - - /** - * Output only. The state of the retrohunt. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of the retrohunt. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Retrohunt\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getProgressPercentage() - { - return $this->progress_percentage; - } - - /** - * Output only. Percent progress of the retrohunt towards completion, from - * 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setProgressPercentage($var) - { - GPBUtil::checkFloat($var); - $this->progress_percentage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php deleted file mode 100644 index 0c54a8ff495c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Retrohunt/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.Retrohunt.State - */ -class State -{ - /** - * Unspecified or unknown retrohunt state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Running state. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * Done state. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - /** - * Cancelled state. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - /** - * Failed state. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - self::CANCELLED => 'CANCELLED', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php deleted file mode 100644 index 87deefb9bb2e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RetrohuntMetadata.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.chronicle.v1.RetrohuntMetadata - */ -class RetrohuntMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { - */ - protected $retrohunt = ''; - /** - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * - * Generated from protobuf field .google.type.Interval execution_interval = 2; - */ - protected $execution_interval = null; - /** - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 3; - */ - protected $progress_percentage = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $retrohunt - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * @type \Google\Type\Interval $execution_interval - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * @type float $progress_percentage - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getRetrohunt() - { - return $this->retrohunt; - } - - /** - * The name of the retrohunt. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` - * - * Generated from protobuf field string retrohunt = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRetrohunt($var) - { - GPBUtil::checkString($var, True); - $this->retrohunt = $var; - - return $this; - } - - /** - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * - * Generated from protobuf field .google.type.Interval execution_interval = 2; - * @return \Google\Type\Interval|null - */ - public function getExecutionInterval() - { - return $this->execution_interval; - } - - public function hasExecutionInterval() - { - return isset($this->execution_interval); - } - - public function clearExecutionInterval() - { - unset($this->execution_interval); - } - - /** - * The start and end time of the retrohunt execution. If the retrohunt is not - * yet finished, the end time of the interval will not be filled. - * - * Generated from protobuf field .google.type.Interval execution_interval = 2; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setExecutionInterval($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->execution_interval = $var; - - return $this; - } - - /** - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 3; - * @return float - */ - public function getProgressPercentage() - { - return $this->progress_percentage; - } - - /** - * Percent progress of the retrohunt towards completion, from 0.00 to 100.00. - * - * Generated from protobuf field float progress_percentage = 3; - * @param float $var - * @return $this - */ - public function setProgressPercentage($var) - { - GPBUtil::checkFloat($var); - $this->progress_percentage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php deleted file mode 100644 index d1fced9182be..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule.php +++ /dev/null @@ -1,810 +0,0 @@ -google.cloud.chronicle.v1.Rule - */ -class Rule extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_id = ''; - /** - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * The YARA-L content of the rule. - * Populated in FULL view. - * - * Generated from protobuf field string text = 4; - */ - protected $text = ''; - /** - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $author = ''; - /** - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $severity = null; - /** - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * - * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $metadata; - /** - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_create_time = null; - /** - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compilation_state = 0; - /** - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * - * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $reference_lists; - /** - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $allowed_run_frequencies; - /** - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string etag = 15; - */ - protected $etag = ''; - /** - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * - * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { - */ - protected $scope = ''; - /** - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $compilation_diagnostics; - /** - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * - * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $near_real_time_live_rule_eligible = false; - /** - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $inputs_used = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type string $revision_id - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * @type string $display_name - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * @type string $text - * The YARA-L content of the rule. - * Populated in FULL view. - * @type string $author - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * @type \Google\Cloud\Chronicle\V1\Severity $severity - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * @type \Google\Protobuf\Timestamp $revision_create_time - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * @type int $compilation_state - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * @type int $type - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * @type string[] $reference_lists - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * @type int[] $allowed_run_frequencies - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * @type string $etag - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * @type string $scope - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * @type \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $compilation_diagnostics - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * @type bool $near_real_time_live_rule_eligible - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * @type \Google\Cloud\Chronicle\V1\InputsUsed $inputs_used - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Full resource name for the rule. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Output only. The revision ID of the rule. - * A new revision is created whenever the rule text is changed in any way. - * Format: `v_{10 digits}_{9 digits}` - * Populated in REVISION_METADATA_ONLY view and FULL view. - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - - /** - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Display name of the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The YARA-L content of the rule. - * Populated in FULL view. - * - * Generated from protobuf field string text = 4; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The YARA-L content of the rule. - * Populated in FULL view. - * - * Generated from protobuf field string text = 4; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAuthor() - { - return $this->author; - } - - /** - * Output only. The author of the rule. Extracted from the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field string author = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkString($var, True); - $this->author = $var; - - return $this; - } - - /** - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\Severity|null - */ - public function getSeverity() - { - return $this->severity; - } - - public function hasSeverity() - { - return isset($this->severity); - } - - public function clearSeverity() - { - unset($this->severity); - } - - /** - * Output only. The severity of the rule as specified in the meta section of - * text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Severity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\Severity $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * - * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Output only. Additional metadata specified in the meta section of text. - * Populated in FULL view. - * - * Generated from protobuf field map metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the rule was created. - * Populated in FULL view. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionCreateTime() - { - return $this->revision_create_time; - } - - public function hasRevisionCreateTime() - { - return isset($this->revision_create_time); - } - - public function clearRevisionCreateTime() - { - unset($this->revision_create_time); - } - - /** - * Output only. The timestamp of when the rule revision was created. - * Populated in FULL, REVISION_METADATA_ONLY views. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_create_time = $var; - - return $this; - } - - /** - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCompilationState() - { - return $this->compilation_state; - } - - /** - * Output only. The current compilation state of the rule. - * Populated in FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule.CompilationState compilation_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCompilationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\Rule\CompilationState::class); - $this->compilation_state = $var; - - return $this; - } - - /** - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. User-facing type of the rule. Extracted from the events - * section of rule text. Populated in BASIC view and FULL view. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * - * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getReferenceLists() - { - return $this->reference_lists; - } - - /** - * Output only. Resource names of the reference lists used in this rule. - * Populated in FULL view. - * - * Generated from protobuf field repeated string reference_lists = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setReferenceLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->reference_lists = $arr; - - return $this; - } - - /** - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getAllowedRunFrequencies() - { - return $this->allowed_run_frequencies; - } - - /** - * Output only. The run frequencies that are allowed for the rule. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.RunFrequency allowed_run_frequencies = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[] $var - * @return $this - */ - public function setAllowedRunFrequencies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Chronicle\V1\RunFrequency::class); - $this->allowed_run_frequencies = $arr; - - return $this; - } - - /** - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string etag = 15; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The etag for this rule. - * If this is provided on update, the request will succeed if and only if it - * matches the server-computed value, and will fail with an ABORTED error - * otherwise. - * Populated in BASIC view and FULL view. - * - * Generated from protobuf field string etag = 15; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * - * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Resource name of the DataAccessScope bound to this rule. - * Populated in BASIC view and FULL view. - * If reference lists are used in the rule, validations will be performed - * against this scope to ensure that the reference lists are compatible with - * both the user's and the rule's scopes. - * The scope should be in the format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope}`. - * - * Generated from protobuf field string scope = 16 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Chronicle\V1\CompilationDiagnostic> - */ - public function getCompilationDiagnostics() - { - return $this->compilation_diagnostics; - } - - /** - * Output only. A list of a rule's corresponding compilation diagnostic - * messages such as compilation errors and compilation warnings. Populated in - * FULL view. - * - * Generated from protobuf field repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\CompilationDiagnostic[] $var - * @return $this - */ - public function setCompilationDiagnostics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Chronicle\V1\CompilationDiagnostic::class); - $this->compilation_diagnostics = $arr; - - return $this; - } - - /** - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * - * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getNearRealTimeLiveRuleEligible() - { - return $this->near_real_time_live_rule_eligible; - } - - /** - * Output only. Indicate the rule can run in near real time live rule. - * If this is true, the rule uses the near real time live rule when the run - * frequency is set to LIVE. - * - * Generated from protobuf field bool near_real_time_live_rule_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setNearRealTimeLiveRuleEligible($var) - { - GPBUtil::checkBool($var); - $this->near_real_time_live_rule_eligible = $var; - - return $this; - } - - /** - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\InputsUsed|null - */ - public function getInputsUsed() - { - return $this->inputs_used; - } - - public function hasInputsUsed() - { - return isset($this->inputs_used); - } - - public function clearInputsUsed() - { - unset($this->inputs_used); - } - - /** - * Output only. The set of inputs used in the rule. For example, if the rule - * uses $e.principal.hostname, then the uses_udm field will be true. - * - * Generated from protobuf field .google.cloud.chronicle.v1.InputsUsed inputs_used = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\InputsUsed $var - * @return $this - */ - public function setInputsUsed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\InputsUsed::class); - $this->inputs_used = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php deleted file mode 100644 index fde2594a8645..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Rule/CompilationState.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.chronicle.v1.Rule.CompilationState - */ -class CompilationState -{ - /** - * The compilation state is unspecified/unknown. - * - * Generated from protobuf enum COMPILATION_STATE_UNSPECIFIED = 0; - */ - const COMPILATION_STATE_UNSPECIFIED = 0; - /** - * The Rule can successfully compile. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The Rule cannot successfully compile. - * This is possible if a backwards-incompatible change was made to the - * compiler. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - - private static $valueToName = [ - self::COMPILATION_STATE_UNSPECIFIED => 'COMPILATION_STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php deleted file mode 100644 index 59c5d3f3033c..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment.php +++ /dev/null @@ -1,477 +0,0 @@ -google.cloud.chronicle.v1.RuleDeployment - */ -class RuleDeployment extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Whether the rule is currently deployed continuously against incoming data. - * - * Generated from protobuf field bool enabled = 2; - */ - protected $enabled = false; - /** - * Whether detections resulting from this deployment should be considered - * alerts. - * - * Generated from protobuf field bool alerting = 3; - */ - protected $alerting = false; - /** - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * - * Generated from protobuf field bool archived = 4; - */ - protected $archived = false; - /** - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $archive_time = null; - /** - * The run frequency of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; - */ - protected $run_frequency = 0; - /** - * Output only. The execution state of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_state = 0; - /** - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $producer_rules; - /** - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $consumer_rules; - /** - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * - * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_alert_status_change_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * @type bool $enabled - * Whether the rule is currently deployed continuously against incoming data. - * @type bool $alerting - * Whether detections resulting from this deployment should be considered - * alerts. - * @type bool $archived - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * @type \Google\Protobuf\Timestamp $archive_time - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * @type int $run_frequency - * The run frequency of the rule deployment. - * @type int $execution_state - * Output only. The execution state of the rule deployment. - * @type string[] $producer_rules - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type string[] $consumer_rules - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type \Google\Protobuf\Timestamp $last_alert_status_change_time - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the rule deployment. - * Note that RuleDeployment is a child of the overall Rule, not any individual - * revision, so the resource ID segment for the Rule resource must not - * reference a specific revision. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether the rule is currently deployed continuously against incoming data. - * - * Generated from protobuf field bool enabled = 2; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the rule is currently deployed continuously against incoming data. - * - * Generated from protobuf field bool enabled = 2; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Whether detections resulting from this deployment should be considered - * alerts. - * - * Generated from protobuf field bool alerting = 3; - * @return bool - */ - public function getAlerting() - { - return $this->alerting; - } - - /** - * Whether detections resulting from this deployment should be considered - * alerts. - * - * Generated from protobuf field bool alerting = 3; - * @param bool $var - * @return $this - */ - public function setAlerting($var) - { - GPBUtil::checkBool($var); - $this->alerting = $var; - - return $this; - } - - /** - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * - * Generated from protobuf field bool archived = 4; - * @return bool - */ - public function getArchived() - { - return $this->archived; - } - - /** - * The archive state of the rule deployment. - * Cannot be set to true unless enabled is set to false. - * If set to true, alerting will automatically be set to false. - * If currently set to true, enabled, alerting, and run_frequency cannot be - * updated. - * - * Generated from protobuf field bool archived = 4; - * @param bool $var - * @return $this - */ - public function setArchived($var) - { - GPBUtil::checkBool($var); - $this->archived = $var; - - return $this; - } - - /** - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getArchiveTime() - { - return $this->archive_time; - } - - public function hasArchiveTime() - { - return isset($this->archive_time); - } - - public function clearArchiveTime() - { - unset($this->archive_time); - } - - /** - * Output only. The timestamp when the rule deployment archive state was last - * set to true. If the rule deployment's current archive state is not set to - * true, the field will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setArchiveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->archive_time = $var; - - return $this; - } - - /** - * The run frequency of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; - * @return int - */ - public function getRunFrequency() - { - return $this->run_frequency; - } - - /** - * The run frequency of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RunFrequency run_frequency = 6; - * @param int $var - * @return $this - */ - public function setRunFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RunFrequency::class); - $this->run_frequency = $var; - - return $this; - } - - /** - * Output only. The execution state of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getExecutionState() - { - return $this->execution_state; - } - - /** - * Output only. The execution state of the rule deployment. - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setExecutionState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Chronicle\V1\RuleDeployment\ExecutionState::class); - $this->execution_state = $var; - - return $this; - } - - /** - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getProducerRules() - { - return $this->producer_rules; - } - - /** - * Output only. The names of the associated/chained producer rules. Rules are - * considered producers for this rule if this rule explicitly filters on their - * ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setProducerRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->producer_rules = $arr; - - return $this; - } - - /** - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getConsumerRules() - { - return $this->consumer_rules; - } - - /** - * Output only. The names of the associated/chained consumer rules. Rules are - * considered consumers of this rule if their rule text explicitly filters on - * this rule's ruleid. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setConsumerRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->consumer_rules = $arr; - - return $this; - } - - /** - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * - * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastAlertStatusChangeTime() - { - return $this->last_alert_status_change_time; - } - - public function hasLastAlertStatusChangeTime() - { - return isset($this->last_alert_status_change_time); - } - - public function clearLastAlertStatusChangeTime() - { - unset($this->last_alert_status_change_time); - } - - /** - * Output only. The timestamp when the rule deployment alert state was lastly - * changed. This is filled regardless of the current alert state. E.g. if the - * current alert status is false, this timestamp will be the timestamp when - * the alert status was changed to false. - * - * Generated from protobuf field .google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastAlertStatusChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_alert_status_change_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php deleted file mode 100644 index c942861abbcc..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleDeployment/ExecutionState.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.chronicle.v1.RuleDeployment.ExecutionState - */ -class ExecutionState -{ - /** - * Unspecified or unknown execution state. - * - * Generated from protobuf enum EXECUTION_STATE_UNSPECIFIED = 0; - */ - const EXECUTION_STATE_UNSPECIFIED = 0; - /** - * Default execution state. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * Rules in limited state may not have their executions guaranteed. - * - * Generated from protobuf enum LIMITED = 2; - */ - const LIMITED = 2; - /** - * Paused rules are not executed at all. - * - * Generated from protobuf enum PAUSED = 3; - */ - const PAUSED = 3; - - private static $valueToName = [ - self::EXECUTION_STATE_UNSPECIFIED => 'EXECUTION_STATE_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::LIMITED => 'LIMITED', - self::PAUSED => 'PAUSED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php deleted file mode 100644 index fd4d0dbae098..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.chronicle.v1.RuleType - */ -class RuleType -{ - /** - * The rule type is unspecified/unknown. - * - * Generated from protobuf enum RULE_TYPE_UNSPECIFIED = 0; - */ - const RULE_TYPE_UNSPECIFIED = 0; - /** - * Rule checks for the existence of a single event. - * - * Generated from protobuf enum SINGLE_EVENT = 1; - */ - const SINGLE_EVENT = 1; - /** - * Rule checks for correlation between multiple events - * - * Generated from protobuf enum MULTI_EVENT = 2; - */ - const MULTI_EVENT = 2; - - private static $valueToName = [ - self::RULE_TYPE_UNSPECIFIED => 'RULE_TYPE_UNSPECIFIED', - self::SINGLE_EVENT => 'SINGLE_EVENT', - self::MULTI_EVENT => 'MULTI_EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php deleted file mode 100644 index a79782aed652..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RuleView.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.chronicle.v1.RuleView - */ -class RuleView -{ - /** - * The default/unset value. - * The API will default to the BASIC view for ListRules/ListRuleRevisions. - * The API will default to the FULL view for GetRule. - * - * Generated from protobuf enum RULE_VIEW_UNSPECIFIED = 0; - */ - const RULE_VIEW_UNSPECIFIED = 0; - /** - * Include basic metadata about the rule, but not the full contents. - * Returned fields include: revision_id, revision_create_time, display_name, - * author, severity, type, allowed_run_frequency, - * near_real_time_live_rule_eligible, etag, and scope. - * This is the default value for ListRules and ListRuleRevisions. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include all fields. - * This is the default value for GetRule. - * - * Generated from protobuf enum FULL = 2; - */ - const FULL = 2; - /** - * Include basic metadata about the rule's revision only. - * Returned fields include: revision_id and revision_create_time. - * - * Generated from protobuf enum REVISION_METADATA_ONLY = 3; - */ - const REVISION_METADATA_ONLY = 3; - - private static $valueToName = [ - self::RULE_VIEW_UNSPECIFIED => 'RULE_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => 'FULL', - self::REVISION_METADATA_ONLY => 'REVISION_METADATA_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php deleted file mode 100644 index 0540b9c3cfd8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/RunFrequency.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.chronicle.v1.RunFrequency - */ -class RunFrequency -{ - /** - * The run frequency is unspecified/unknown. - * - * Generated from protobuf enum RUN_FREQUENCY_UNSPECIFIED = 0; - */ - const RUN_FREQUENCY_UNSPECIFIED = 0; - /** - * Executes in real time. - * - * Generated from protobuf enum LIVE = 1; - */ - const LIVE = 1; - /** - * Executes once per hour. - * - * Generated from protobuf enum HOURLY = 2; - */ - const HOURLY = 2; - /** - * Executes once per day. - * - * Generated from protobuf enum DAILY = 3; - */ - const DAILY = 3; - - private static $valueToName = [ - self::RUN_FREQUENCY_UNSPECIFIED => 'RUN_FREQUENCY_UNSPECIFIED', - self::LIVE => 'LIVE', - self::HOURLY => 'HOURLY', - self::DAILY => 'DAILY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php deleted file mode 100644 index 69d47b86337b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ScopeInfo.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.chronicle.v1.ScopeInfo - */ -class ScopeInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list_scope = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ReferenceListScope $reference_list_scope - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\ReferenceListScope|null - */ - public function getReferenceListScope() - { - return $this->reference_list_scope; - } - - public function hasReferenceListScope() - { - return isset($this->reference_list_scope); - } - - public function clearReferenceListScope() - { - unset($this->reference_list_scope); - } - - /** - * Required. The list of scope names of the reference list, if the list is - * empty the reference list is treated as unscoped. - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceListScope reference_list_scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceListScope $var - * @return $this - */ - public function setReferenceListScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceListScope::class); - $this->reference_list_scope = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php deleted file mode 100644 index 74f6af984bfe..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesStackStrategy.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.chronicle.v1.SeriesStackStrategy - */ -class SeriesStackStrategy -{ - /** - * Generated from protobuf enum SERIES_STACK_STRATEGY_UNSPECIFIED = 0; - */ - const SERIES_STACK_STRATEGY_UNSPECIFIED = 0; - /** - * Generated from protobuf enum SAMESIGN = 1; - */ - const SAMESIGN = 1; - /** - * Generated from protobuf enum ALL = 2; - */ - const ALL = 2; - /** - * Generated from protobuf enum POSITIVE = 3; - */ - const POSITIVE = 3; - /** - * Generated from protobuf enum NEGATIVE = 4; - */ - const NEGATIVE = 4; - - private static $valueToName = [ - self::SERIES_STACK_STRATEGY_UNSPECIFIED => 'SERIES_STACK_STRATEGY_UNSPECIFIED', - self::SAMESIGN => 'SAMESIGN', - self::ALL => 'ALL', - self::POSITIVE => 'POSITIVE', - self::NEGATIVE => 'NEGATIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php deleted file mode 100644 index 7bb8e3e0dc63..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/SeriesType.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.chronicle.v1.SeriesType - */ -class SeriesType -{ - /** - * Generated from protobuf enum SERIES_TYPE_UNSPECIFIED = 0; - */ - const SERIES_TYPE_UNSPECIFIED = 0; - /** - * Generated from protobuf enum LINE = 1; - */ - const LINE = 1; - /** - * Generated from protobuf enum BAR = 2; - */ - const BAR = 2; - /** - * Generated from protobuf enum PIE = 3; - */ - const PIE = 3; - /** - * Generated from protobuf enum TEXT = 4; - */ - const TEXT = 4; - /** - * Represents map chart type. - * - * Generated from protobuf enum MAP = 5; - */ - const MAP = 5; - /** - * Represents gauge chart type. - * - * Generated from protobuf enum GAUGE = 6; - */ - const GAUGE = 6; - /** - * Represents scatterplot chart type. - * - * Generated from protobuf enum SCATTERPLOT = 7; - */ - const SCATTERPLOT = 7; - - private static $valueToName = [ - self::SERIES_TYPE_UNSPECIFIED => 'SERIES_TYPE_UNSPECIFIED', - self::LINE => 'LINE', - self::BAR => 'BAR', - self::PIE => 'PIE', - self::TEXT => 'TEXT', - self::MAP => 'MAP', - self::GAUGE => 'GAUGE', - self::SCATTERPLOT => 'SCATTERPLOT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php deleted file mode 100644 index 8d2c048917ac..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Severity.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.chronicle.v1.Severity - */ -class Severity extends \Google\Protobuf\Internal\Message -{ - /** - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the severity level. Extracted from the meta section of - * the rule text. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php deleted file mode 100644 index 63e868885a31..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TileType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.chronicle.v1.TileType - */ -class TileType -{ - /** - * Defaults to VISUALIZATION. - * - * Generated from protobuf enum TILE_TYPE_UNSPECIFIED = 0; - */ - const TILE_TYPE_UNSPECIFIED = 0; - /** - * Visualization i.e., bar charts, pie charts etc. - * - * Generated from protobuf enum TILE_TYPE_VISUALIZATION = 1; - */ - const TILE_TYPE_VISUALIZATION = 1; - /** - * Button with hyperlink. - * - * Generated from protobuf enum TILE_TYPE_BUTTON = 2; - */ - const TILE_TYPE_BUTTON = 2; - /** - * Markdown tile. - * - * Generated from protobuf enum TILE_TYPE_MARKDOWN = 3; - */ - const TILE_TYPE_MARKDOWN = 3; - - private static $valueToName = [ - self::TILE_TYPE_UNSPECIFIED => 'TILE_TYPE_UNSPECIFIED', - self::TILE_TYPE_VISUALIZATION => 'TILE_TYPE_VISUALIZATION', - self::TILE_TYPE_BUTTON => 'TILE_TYPE_BUTTON', - self::TILE_TYPE_MARKDOWN => 'TILE_TYPE_MARKDOWN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php deleted file mode 100644 index e7f6968ce5e3..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimeUnit.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.chronicle.v1.TimeUnit - */ -class TimeUnit -{ - /** - * Default unspecified. - * - * Generated from protobuf enum TIME_UNIT_UNSPECIFIED = 0; - */ - const TIME_UNIT_UNSPECIFIED = 0; - /** - * Generated from protobuf enum SECOND = 1; - */ - const SECOND = 1; - /** - * Generated from protobuf enum MINUTE = 2; - */ - const MINUTE = 2; - /** - * Generated from protobuf enum HOUR = 3; - */ - const HOUR = 3; - /** - * Generated from protobuf enum DAY = 4; - */ - const DAY = 4; - /** - * Generated from protobuf enum WEEK = 5; - */ - const WEEK = 5; - /** - * Generated from protobuf enum MONTH = 6; - */ - const MONTH = 6; - /** - * Generated from protobuf enum YEAR = 7; - */ - const YEAR = 7; - - private static $valueToName = [ - self::TIME_UNIT_UNSPECIFIED => 'TIME_UNIT_UNSPECIFIED', - self::SECOND => 'SECOND', - self::MINUTE => 'MINUTE', - self::HOUR => 'HOUR', - self::DAY => 'DAY', - self::WEEK => 'WEEK', - self::MONTH => 'MONTH', - self::YEAR => 'YEAR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php deleted file mode 100644 index 47894d135e50..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/TimestampMetadata.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.chronicle.v1.TimestampMetadata - */ -class TimestampMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Time format of the timestamp column. - * - * Generated from protobuf field string time_format = 1; - */ - protected $time_format = ''; - /** - * Time zone of the timestamp column. - * - * Generated from protobuf field string time_zone = 2; - */ - protected $time_zone = ''; - /** - * Time granularity of the timestamp column. - * - * Generated from protobuf field string time_granularity = 3; - */ - protected $time_granularity = ''; - /** - * Whether the timestamp column is sortable in UI. - * - * Generated from protobuf field bool is_sortable = 4; - */ - protected $is_sortable = false; - /** - * Whether the timestamp column is interpolable in UI. - * - * Generated from protobuf field bool is_interpolable = 5; - */ - protected $is_interpolable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $time_format - * Time format of the timestamp column. - * @type string $time_zone - * Time zone of the timestamp column. - * @type string $time_granularity - * Time granularity of the timestamp column. - * @type bool $is_sortable - * Whether the timestamp column is sortable in UI. - * @type bool $is_interpolable - * Whether the timestamp column is interpolable in UI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DashboardQuery::initOnce(); - parent::__construct($data); - } - - /** - * Time format of the timestamp column. - * - * Generated from protobuf field string time_format = 1; - * @return string - */ - public function getTimeFormat() - { - return $this->time_format; - } - - /** - * Time format of the timestamp column. - * - * Generated from protobuf field string time_format = 1; - * @param string $var - * @return $this - */ - public function setTimeFormat($var) - { - GPBUtil::checkString($var, True); - $this->time_format = $var; - - return $this; - } - - /** - * Time zone of the timestamp column. - * - * Generated from protobuf field string time_zone = 2; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Time zone of the timestamp column. - * - * Generated from protobuf field string time_zone = 2; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Time granularity of the timestamp column. - * - * Generated from protobuf field string time_granularity = 3; - * @return string - */ - public function getTimeGranularity() - { - return $this->time_granularity; - } - - /** - * Time granularity of the timestamp column. - * - * Generated from protobuf field string time_granularity = 3; - * @param string $var - * @return $this - */ - public function setTimeGranularity($var) - { - GPBUtil::checkString($var, True); - $this->time_granularity = $var; - - return $this; - } - - /** - * Whether the timestamp column is sortable in UI. - * - * Generated from protobuf field bool is_sortable = 4; - * @return bool - */ - public function getIsSortable() - { - return $this->is_sortable; - } - - /** - * Whether the timestamp column is sortable in UI. - * - * Generated from protobuf field bool is_sortable = 4; - * @param bool $var - * @return $this - */ - public function setIsSortable($var) - { - GPBUtil::checkBool($var); - $this->is_sortable = $var; - - return $this; - } - - /** - * Whether the timestamp column is interpolable in UI. - * - * Generated from protobuf field bool is_interpolable = 5; - * @return bool - */ - public function getIsInterpolable() - { - return $this->is_interpolable; - } - - /** - * Whether the timestamp column is interpolable in UI. - * - * Generated from protobuf field bool is_interpolable = 5; - * @param bool $var - * @return $this - */ - public function setIsInterpolable($var) - { - GPBUtil::checkBool($var); - $this->is_interpolable = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php deleted file mode 100644 index abbed5759b26..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/ToolTipTrigger.php +++ /dev/null @@ -1,58 +0,0 @@ -google.cloud.chronicle.v1.ToolTipTrigger - */ -class ToolTipTrigger -{ - /** - * Generated from protobuf enum TOOLTIP_TRIGGER_UNSPECIFIED = 0; - */ - const TOOLTIP_TRIGGER_UNSPECIFIED = 0; - /** - * Generated from protobuf enum TOOLTIP_TRIGGER_NONE = 1; - */ - const TOOLTIP_TRIGGER_NONE = 1; - /** - * Generated from protobuf enum TOOLTIP_TRIGGER_ITEM = 2; - */ - const TOOLTIP_TRIGGER_ITEM = 2; - /** - * Generated from protobuf enum TOOLTIP_TRIGGER_AXIS = 3; - */ - const TOOLTIP_TRIGGER_AXIS = 3; - - private static $valueToName = [ - self::TOOLTIP_TRIGGER_UNSPECIFIED => 'TOOLTIP_TRIGGER_UNSPECIFIED', - self::TOOLTIP_TRIGGER_NONE => 'TOOLTIP_TRIGGER_NONE', - self::TOOLTIP_TRIGGER_ITEM => 'TOOLTIP_TRIGGER_ITEM', - self::TOOLTIP_TRIGGER_AXIS => 'TOOLTIP_TRIGGER_AXIS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php deleted file mode 100644 index 6830fde1824e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessLabelRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataAccessLabelRequest - */ -class UpdateDataAccessLabelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_label = null; - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel Required. The data access label to update. - * - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessLabelRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataAccessLabel $dataAccessLabel, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAccessLabel($dataAccessLabel) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessLabel $data_access_label - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessLabel|null - */ - public function getDataAccessLabel() - { - return $this->data_access_label; - } - - public function hasDataAccessLabel() - { - return isset($this->data_access_label); - } - - public function clearDataAccessLabel() - { - unset($this->data_access_label); - } - - /** - * Required. The data access label to update. - * The label's `name` field is used to identify the label to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessLabel data_access_label = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessLabel $var - * @return $this - */ - public function setDataAccessLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessLabel::class); - $this->data_access_label = $var; - - return $this; - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description and definition - * fields are supported for update; an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php deleted file mode 100644 index b332994c240e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataAccessScopeRequest.php +++ /dev/null @@ -1,172 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataAccessScopeRequest - */ -class UpdateDataAccessScopeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_access_scope = null; - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope Required. The data access scope to update. - * - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataAccessScopeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataAccessScope $dataAccessScope, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAccessScope($dataAccessScope) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataAccessScope $data_access_scope - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataAccessScope|null - */ - public function getDataAccessScope() - { - return $this->data_access_scope; - } - - public function hasDataAccessScope() - { - return isset($this->data_access_scope); - } - - public function clearDataAccessScope() - { - unset($this->data_access_scope); - } - - /** - * Required. The data access scope to update. - * The scope's `name` field is used to identify the scope to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataAccessScope data_access_scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataAccessScope $var - * @return $this - */ - public function setDataAccessScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataAccessScope::class); - $this->data_access_scope = $var; - - return $this; - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. Currently, only the description, the allowed - * and denied labels list fields are supported for update; - * an update call that attempts to update any - * other fields will return INVALID_ARGUMENT. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php deleted file mode 100644 index db7d985e7a3d..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataTableRequest - */ -class UpdateDataTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table = null; - /** - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataTable $dataTable Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataTable $dataTable, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataTable($dataTable) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTable $data_table - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTable|null - */ - public function getDataTable() - { - return $this->data_table; - } - - public function hasDataTable() - { - return isset($this->data_table); - } - - public function clearDataTable() - { - unset($this->data_table); - } - - /** - * Required. This field is used to identify the datatable to update. - * Format: - * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTable data_table = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTable $var - * @return $this - */ - public function setDataTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTable::class); - $this->data_table = $var; - - return $this; - } - - /** - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of metadata fields to update. Currently data tables only - * support updating the `description`, `row_time_to_live` and `scope_info` - * fields. When no field mask is supplied, all non-empty fields will be - * updated. A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php deleted file mode 100644 index 9f1bc32f4b5b..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateDataTableRowRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.chronicle.v1.UpdateDataTableRowRequest - */ -class UpdateDataTableRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_table_row = null; - /** - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * @return \Google\Cloud\Chronicle\V1\UpdateDataTableRowRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\DataTableRow $dataTableRow, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataTableRow($dataTableRow) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\DataTableRow $data_table_row - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\DataTable::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\DataTableRow|null - */ - public function getDataTableRow() - { - return $this->data_table_row; - } - - public function hasDataTableRow() - { - return isset($this->data_table_row); - } - - public function clearDataTableRow() - { - unset($this->data_table_row); - } - - /** - * Required. Format: - * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - * Generated from protobuf field .google.cloud.chronicle.v1.DataTableRow data_table_row = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\DataTableRow $var - * @return $this - */ - public function setDataTableRow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\DataTableRow::class); - $this->data_table_row = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. Currently data table rows only - * support updating the `values` field. When no field mask is supplied, all - * non-empty fields will be updated. A field mask of "*" will update all - * fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php deleted file mode 100644 index 7af3a6cab0e8..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateNativeDashboardRequest.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.chronicle.v1.UpdateNativeDashboardRequest - */ -class UpdateNativeDashboardRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dashboard to update. - * The dashboard's `name` field is used to identify the dashboard to update. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $native_dashboard = null; - /** - * Required. LINT.IfChange(update_mask_values) - * The list of fields to update. - * Supported paths are - - * display_name - * description - * definition.filters - * definition.charts - * type - * access - * dashboard_user_data.is_pinned - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard Required. The dashboard to update. - * - * The dashboard's `name` field is used to identify the dashboard to update. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @param \Google\Protobuf\FieldMask $updateMask Required. LINT.IfChange(update_mask_values) - * The list of fields to update. - * Supported paths are - - * display_name - * description - * definition.filters - * definition.charts - * type - * access - * dashboard_user_data.is_pinned - * - * @return \Google\Cloud\Chronicle\V1\UpdateNativeDashboardRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\NativeDashboard $nativeDashboard, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setNativeDashboard($nativeDashboard) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\NativeDashboard $native_dashboard - * Required. The dashboard to update. - * The dashboard's `name` field is used to identify the dashboard to update. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * @type \Google\Protobuf\FieldMask $update_mask - * Required. LINT.IfChange(update_mask_values) - * The list of fields to update. - * Supported paths are - - * display_name - * description - * definition.filters - * definition.charts - * type - * access - * dashboard_user_data.is_pinned - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\NativeDashboard::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dashboard to update. - * The dashboard's `name` field is used to identify the dashboard to update. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\NativeDashboard|null - */ - public function getNativeDashboard() - { - return $this->native_dashboard; - } - - public function hasNativeDashboard() - { - return isset($this->native_dashboard); - } - - public function clearNativeDashboard() - { - unset($this->native_dashboard); - } - - /** - * Required. The dashboard to update. - * The dashboard's `name` field is used to identify the dashboard to update. - * Format: - * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * Generated from protobuf field .google.cloud.chronicle.v1.NativeDashboard native_dashboard = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\NativeDashboard $var - * @return $this - */ - public function setNativeDashboard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\NativeDashboard::class); - $this->native_dashboard = $var; - - return $this; - } - - /** - * Required. LINT.IfChange(update_mask_values) - * The list of fields to update. - * Supported paths are - - * display_name - * description - * definition.filters - * definition.charts - * type - * access - * dashboard_user_data.is_pinned - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. LINT.IfChange(update_mask_values) - * The list of fields to update. - * Supported paths are - - * display_name - * description - * definition.filters - * definition.charts - * type - * access - * dashboard_user_data.is_pinned - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php deleted file mode 100644 index f38d1db1fad1..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateReferenceListRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.chronicle.v1.UpdateReferenceListRequest - */ -class UpdateReferenceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reference_list = null; - /** - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\ReferenceList $referenceList Required. The reference list to update. - * - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * @return \Google\Cloud\Chronicle\V1\UpdateReferenceListRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\ReferenceList $referenceList, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setReferenceList($referenceList) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\ReferenceList $reference_list - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\ReferenceList::initOnce(); - parent::__construct($data); - } - - /** - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\ReferenceList|null - */ - public function getReferenceList() - { - return $this->reference_list; - } - - public function hasReferenceList() - { - return isset($this->reference_list); - } - - public function clearReferenceList() - { - unset($this->reference_list); - } - - /** - * Required. The reference list to update. - * The reference list's `name` field is used to identify the reference list to - * update. - * Format: - * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.ReferenceList reference_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\ReferenceList $var - * @return $this - */ - public function setReferenceList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\ReferenceList::class); - $this->reference_list = $var; - - return $this; - } - - /** - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. - * When no field mask is supplied, all non-empty fields will be updated. - * A field mask of "*" will update all fields, whether empty or not. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php deleted file mode 100644 index b6628f53c50e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleDeploymentRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.chronicle.v1.UpdateRuleDeploymentRequest - */ -class UpdateRuleDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rule_deployment = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment Required. The rule deployment to update. - * - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\Chronicle\V1\UpdateRuleDeploymentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\RuleDeployment $ruleDeployment, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\RuleDeployment $rule_deployment - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\RuleDeployment|null - */ - public function getRuleDeployment() - { - return $this->rule_deployment; - } - - public function hasRuleDeployment() - { - return isset($this->rule_deployment); - } - - public function clearRuleDeployment() - { - unset($this->rule_deployment); - } - - /** - * Required. The rule deployment to update. - * The rule deployment's `name` field is used to identify the rule deployment - * to update. Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` - * - * Generated from protobuf field .google.cloud.chronicle.v1.RuleDeployment rule_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\RuleDeployment $var - * @return $this - */ - public function setRuleDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\RuleDeployment::class); - $this->rule_deployment = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php deleted file mode 100644 index 4d51451d9e75..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateRuleRequest.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.chronicle.v1.UpdateRuleRequest - */ -class UpdateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rule = null; - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\Rule $rule Required. The rule to update. - * - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * @return \Google\Cloud\Chronicle\V1\UpdateRuleRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\Rule $rule, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRule($rule) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Rule $rule - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Rule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * Required. The rule to update. - * The rule's `name` field is used to identify the rule to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Rule rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Rule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Rule::class); - $this->rule = $var; - - return $this; - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The list of fields to update. If not included, all fields with a non-empty - * value will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php deleted file mode 100644 index 9afffa4ab421..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/UpdateWatchlistRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.chronicle.v1.UpdateWatchlistRequest - */ -class UpdateWatchlistRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $watchlist = null; - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Chronicle\V1\Watchlist $watchlist Required. The watchlist to update. - * - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * - * @return \Google\Cloud\Chronicle\V1\UpdateWatchlistRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Chronicle\V1\Watchlist $watchlist, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setWatchlist($watchlist) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Watchlist $watchlist - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Watchlist|null - */ - public function getWatchlist() - { - return $this->watchlist; - } - - public function hasWatchlist() - { - return isset($this->watchlist); - } - - public function clearWatchlist() - { - unset($this->watchlist); - } - - /** - * Required. The watchlist to update. - * The watchlist's `name` field is used to identify the watchlist to update. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist watchlist = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Watchlist $var - * @return $this - */ - public function setWatchlist($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist::class); - $this->watchlist = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php deleted file mode 100644 index f936d25469b0..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/VisualMapType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.chronicle.v1.VisualMapType - */ -class VisualMapType -{ - /** - * Visual map type is not specified - * - * Generated from protobuf enum VISUAL_MAP_TYPE_UNSPECIFIED = 0; - */ - const VISUAL_MAP_TYPE_UNSPECIFIED = 0; - /** - * Continuous visual map - * - * Generated from protobuf enum CONTINUOUS = 1; - */ - const CONTINUOUS = 1; - /** - * Piecewise visual map - * - * Generated from protobuf enum PIECEWISE = 2; - */ - const PIECEWISE = 2; - - private static $valueToName = [ - self::VISUAL_MAP_TYPE_UNSPECIFIED => 'VISUAL_MAP_TYPE_UNSPECIFIED', - self::CONTINUOUS => 'CONTINUOUS', - self::PIECEWISE => 'PIECEWISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php deleted file mode 100644 index 2c3553e82f3e..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist.php +++ /dev/null @@ -1,414 +0,0 @@ -google.cloud.chronicle.v1.Watchlist - */ -class Watchlist extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description of the watchlist. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * - * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $multiplying_factor = 0.0; - /** - * Required. Mechanism to populate entities in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_population_mechanism = null; - /** - * Output only. Entity count in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $entity_count = null; - /** - * Output only. Time the watchlist was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time the watchlist was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User preferences for watchlist configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $watchlist_user_preferences = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * @type string $display_name - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * @type string $description - * Optional. Description of the watchlist. - * @type float $multiplying_factor - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $entity_population_mechanism - * Required. Mechanism to populate entities in the watchlist. - * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $entity_count - * Output only. Entity count in the watchlist. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the watchlist was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the watchlist was last updated. - * @type \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $watchlist_user_preferences - * Optional. User preferences for watchlist configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the watchlist. - * Format: - * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name of the watchlist. - * Note that it must be at least one character and less than 63 characters - * (https://google.aip.dev/148). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the watchlist. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the watchlist. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * - * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getMultiplyingFactor() - { - return $this->multiplying_factor; - } - - /** - * Optional. Weight applied to the risk score for entities - * in this watchlist. - * The default is 1.0 if it is not specified. - * - * Generated from protobuf field float multiplying_factor = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setMultiplyingFactor($var) - { - GPBUtil::checkFloat($var); - $this->multiplying_factor = $var; - - return $this; - } - - /** - * Required. Mechanism to populate entities in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism|null - */ - public function getEntityPopulationMechanism() - { - return $this->entity_population_mechanism; - } - - public function hasEntityPopulationMechanism() - { - return isset($this->entity_population_mechanism); - } - - public function clearEntityPopulationMechanism() - { - unset($this->entity_population_mechanism); - } - - /** - * Required. Mechanism to populate entities in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism entity_population_mechanism = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism $var - * @return $this - */ - public function setEntityPopulationMechanism($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism::class); - $this->entity_population_mechanism = $var; - - return $this; - } - - /** - * Output only. Entity count in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityCount|null - */ - public function getEntityCount() - { - return $this->entity_count; - } - - public function hasEntityCount() - { - return isset($this->entity_count); - } - - public function clearEntityCount() - { - unset($this->entity_count); - } - - /** - * Output only. Entity count in the watchlist. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityCount entity_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityCount $var - * @return $this - */ - public function setEntityCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityCount::class); - $this->entity_count = $var; - - return $this; - } - - /** - * Output only. Time the watchlist was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time the watchlist was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time the watchlist was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time the watchlist was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. User preferences for watchlist configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\WatchlistUserPreferences|null - */ - public function getWatchlistUserPreferences() - { - return $this->watchlist_user_preferences; - } - - public function hasWatchlistUserPreferences() - { - return isset($this->watchlist_user_preferences); - } - - public function clearWatchlistUserPreferences() - { - unset($this->watchlist_user_preferences); - } - - /** - * Optional. User preferences for watchlist configuration. - * - * Generated from protobuf field .google.cloud.chronicle.v1.WatchlistUserPreferences watchlist_user_preferences = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\WatchlistUserPreferences $var - * @return $this - */ - public function setWatchlistUserPreferences($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\WatchlistUserPreferences::class); - $this->watchlist_user_preferences = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php deleted file mode 100644 index 6ed43d57e34a..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityCount.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.chronicle.v1.Watchlist.EntityCount - */ -class EntityCount extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Count of user type entities in the watchlist. - * - * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user = 0; - /** - * Output only. Count of asset type entities in the watchlist. - * - * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $asset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $user - * Output only. Count of user type entities in the watchlist. - * @type int $asset - * Output only. Count of asset type entities in the watchlist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Count of user type entities in the watchlist. - * - * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getUser() - { - return $this->user; - } - - /** - * Output only. Count of user type entities in the watchlist. - * - * Generated from protobuf field int32 user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkInt32($var); - $this->user = $var; - - return $this; - } - - /** - * Output only. Count of asset type entities in the watchlist. - * - * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAsset() - { - return $this->asset; - } - - /** - * Output only. Count of asset type entities in the watchlist. - * - * Generated from protobuf field int32 asset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkInt32($var); - $this->asset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php deleted file mode 100644 index 1d821fb12d88..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism - */ -class EntityPopulationMechanism extends \Google\Protobuf\Internal\Message -{ - protected $mechanism; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $manual - * Optional. Entities are added manually. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Entities are added manually. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual|null - */ - public function getManual() - { - return $this->readOneof(1); - } - - public function hasManual() - { - return $this->hasOneof(1); - } - - /** - * Optional. Entities are added manually. - * - * Generated from protobuf field .google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual manual = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual $var - * @return $this - */ - public function setManual($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Chronicle\V1\Watchlist\EntityPopulationMechanism\Manual::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getMechanism() - { - return $this->whichOneof("mechanism"); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php deleted file mode 100644 index 610033c25683..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/Watchlist/EntityPopulationMechanism/Manual.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.chronicle.v1.Watchlist.EntityPopulationMechanism.Manual - */ -class Manual extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php b/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php deleted file mode 100644 index 1e28b313f6fe..000000000000 --- a/owl-bot-staging/Chronicle/v1/proto/src/Google/Cloud/Chronicle/V1/WatchlistUserPreferences.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.chronicle.v1.WatchlistUserPreferences - */ -class WatchlistUserPreferences extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether the watchlist is pinned on the dashboard. - * - * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $pinned = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $pinned - * Optional. Whether the watchlist is pinned on the dashboard. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether the watchlist is pinned on the dashboard. - * - * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getPinned() - { - return $this->pinned; - } - - /** - * Optional. Whether the watchlist is pinned on the dashboard. - * - * Generated from protobuf field bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setPinned($var) - { - GPBUtil::checkBool($var); - $this->pinned = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php deleted file mode 100644 index 66f67ce6e53e..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($formattedParent) - ->setNames($formattedNames); - - // Call the API and handle any network failures. - try { - /** @var BatchGetDashboardChartsResponse $response */ - $response = $dashboardChartServiceClient->batchGetDashboardCharts($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DashboardChartServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $formattedNamesElement = DashboardChartServiceClient::dashboardChartName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[CHART]' - ); - - batch_get_dashboard_charts_sample($formattedParent, $formattedNamesElement); -} -// [END chronicle_v1_generated_DashboardChartService_BatchGetDashboardCharts_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php deleted file mode 100644 index 423aa931ff5a..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardChartServiceClient/get_dashboard_chart.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DashboardChart $response */ - $response = $dashboardChartServiceClient->getDashboardChart($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DashboardChartServiceClient::dashboardChartName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[CHART]' - ); - - get_dashboard_chart_sample($formattedName); -} -// [END chronicle_v1_generated_DashboardChartService_GetDashboardChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php deleted file mode 100644 index 43ee3d3b78f1..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php +++ /dev/null @@ -1,85 +0,0 @@ -setQuery($queryQuery) - ->setInput($queryInput); - $request = (new ExecuteDashboardQueryRequest()) - ->setParent($formattedParent) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var ExecuteDashboardQueryResponse $response */ - $response = $dashboardQueryServiceClient->executeDashboardQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DashboardQueryServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $queryQuery = '[QUERY]'; - - execute_dashboard_query_sample($formattedParent, $queryQuery); -} -// [END chronicle_v1_generated_DashboardQueryService_ExecuteDashboardQuery_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php b/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php deleted file mode 100644 index 0065d62b4eca..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DashboardQueryServiceClient/get_dashboard_query.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DashboardQuery $response */ - $response = $dashboardQueryServiceClient->getDashboardQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DashboardQueryServiceClient::dashboardQueryName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[QUERY]' - ); - - get_dashboard_query_sample($formattedName); -} -// [END chronicle_v1_generated_DashboardQueryService_GetDashboardQuery_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php deleted file mode 100644 index 0623874acf9e..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_label.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - - // Call the API and handle any network failures. - try { - /** @var DataAccessLabel $response */ - $response = $dataAccessControlServiceClient->createDataAccessLabel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $dataAccessLabelId = '[DATA_ACCESS_LABEL_ID]'; - - create_data_access_label_sample($formattedParent, $dataAccessLabelId); -} -// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php deleted file mode 100644 index 5219ceb6ae38..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/create_data_access_scope.php +++ /dev/null @@ -1,105 +0,0 @@ -setName($formattedDataAccessScopeName); - $request = (new CreateDataAccessScopeRequest()) - ->setParent($formattedParent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - - // Call the API and handle any network failures. - try { - /** @var DataAccessScope $response */ - $response = $dataAccessControlServiceClient->createDataAccessScope($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - $dataAccessScopeId = '[DATA_ACCESS_SCOPE_ID]'; - - create_data_access_scope_sample( - $formattedParent, - $formattedDataAccessScopeName, - $dataAccessScopeId - ); -} -// [END chronicle_v1_generated_DataAccessControlService_CreateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php deleted file mode 100644 index 3c885880892f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_label.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataAccessControlServiceClient->deleteDataAccessLabel($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessLabelName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_LABEL]' - ); - - delete_data_access_label_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php deleted file mode 100644 index 41f166b0bf41..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataAccessControlServiceClient->deleteDataAccessScope($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - - delete_data_access_scope_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_DeleteDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php deleted file mode 100644 index 7b8c83109598..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_label.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAccessLabel $response */ - $response = $dataAccessControlServiceClient->getDataAccessLabel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessLabelName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_LABEL]' - ); - - get_data_access_label_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php deleted file mode 100644 index e434c9be6db8..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/get_data_access_scope.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAccessScope $response */ - $response = $dataAccessControlServiceClient->getDataAccessScope($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - - get_data_access_scope_sample($formattedName); -} -// [END chronicle_v1_generated_DataAccessControlService_GetDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php deleted file mode 100644 index f831204ae17d..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_labels.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAccessControlServiceClient->listDataAccessLabels($request); - - /** @var DataAccessLabel $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_data_access_labels_sample($formattedParent); -} -// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessLabels_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php deleted file mode 100644 index ac4cfa39ba9e..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataAccessControlServiceClient->listDataAccessScopes($request); - - /** @var DataAccessScope $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataAccessControlServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_data_access_scopes_sample($formattedParent); -} -// [END chronicle_v1_generated_DataAccessControlService_ListDataAccessScopes_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php deleted file mode 100644 index e949373ca7f3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_label.php +++ /dev/null @@ -1,59 +0,0 @@ -setDataAccessLabel($dataAccessLabel); - - // Call the API and handle any network failures. - try { - /** @var DataAccessLabel $response */ - $response = $dataAccessControlServiceClient->updateDataAccessLabel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessLabel_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php deleted file mode 100644 index 33d0d8a4424b..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataAccessControlServiceClient/update_data_access_scope.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedDataAccessScopeName); - $request = (new UpdateDataAccessScopeRequest()) - ->setDataAccessScope($dataAccessScope); - - // Call the API and handle any network failures. - try { - /** @var DataAccessScope $response */ - $response = $dataAccessControlServiceClient->updateDataAccessScope($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedDataAccessScopeName = DataAccessControlServiceClient::dataAccessScopeName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_ACCESS_SCOPE]' - ); - - update_data_access_scope_sample($formattedDataAccessScopeName); -} -// [END chronicle_v1_generated_DataAccessControlService_UpdateDataAccessScope_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php deleted file mode 100644 index 1f64d05306a3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php +++ /dev/null @@ -1,108 +0,0 @@ -setValues($requestsDataTableRowValues); - $createDataTableRowRequest = (new CreateDataTableRowRequest()) - ->setParent($formattedRequestsParent) - ->setDataTableRow($requestsDataTableRow); - $requests = [$createDataTableRowRequest,]; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkCreateDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkCreateDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $formattedRequestsParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $requestsDataTableRowValuesElement = '[VALUES]'; - - bulk_create_data_table_rows_sample( - $formattedParent, - $formattedRequestsParent, - $requestsDataTableRowValuesElement - ); -} -// [END chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php deleted file mode 100644 index 5dff1680a8d2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($formattedRequestsName); - $requests = [$getDataTableRowRequest,]; - $request = (new BulkGetDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkGetDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkGetDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $formattedRequestsName = DataTableServiceClient::dataTableRowName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]', - '[DATA_TABLE_ROW]' - ); - - bulk_get_data_table_rows_sample($formattedParent, $formattedRequestsName); -} -// [END chronicle_v1_generated_DataTableService_BulkGetDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php deleted file mode 100644 index 719f12db7676..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php +++ /dev/null @@ -1,108 +0,0 @@ -setValues($requestsDataTableRowValues); - $createDataTableRowRequest = (new CreateDataTableRowRequest()) - ->setParent($formattedRequestsParent) - ->setDataTableRow($requestsDataTableRow); - $requests = [$createDataTableRowRequest,]; - $request = (new BulkReplaceDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkReplaceDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkReplaceDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $formattedRequestsParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $requestsDataTableRowValuesElement = '[VALUES]'; - - bulk_replace_data_table_rows_sample( - $formattedParent, - $formattedRequestsParent, - $requestsDataTableRowValuesElement - ); -} -// [END chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php deleted file mode 100644 index c5b35718149f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php +++ /dev/null @@ -1,92 +0,0 @@ -setValues($requestsDataTableRowValues); - $updateDataTableRowRequest = (new UpdateDataTableRowRequest()) - ->setDataTableRow($requestsDataTableRow); - $requests = [$updateDataTableRowRequest,]; - $request = (new BulkUpdateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BulkUpdateDataTableRowsResponse $response */ - $response = $dataTableServiceClient->bulkUpdateDataTableRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $requestsDataTableRowValuesElement = '[VALUES]'; - - bulk_update_data_table_rows_sample($formattedParent, $requestsDataTableRowValuesElement); -} -// [END chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php deleted file mode 100644 index bca1084349da..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table.php +++ /dev/null @@ -1,87 +0,0 @@ -setDescription($dataTableDescription); - $request = (new CreateDataTableRequest()) - ->setParent($formattedParent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - - // Call the API and handle any network failures. - try { - /** @var DataTable $response */ - $response = $dataTableServiceClient->createDataTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataTableDescription = '[DESCRIPTION]'; - $dataTableId = '[DATA_TABLE_ID]'; - - create_data_table_sample($formattedParent, $dataTableDescription, $dataTableId); -} -// [END chronicle_v1_generated_DataTableService_CreateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php deleted file mode 100644 index 4c2f774cc155..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/create_data_table_row.php +++ /dev/null @@ -1,87 +0,0 @@ -setValues($dataTableRowValues); - $request = (new CreateDataTableRowRequest()) - ->setParent($formattedParent) - ->setDataTableRow($dataTableRow); - - // Call the API and handle any network failures. - try { - /** @var DataTableRow $response */ - $response = $dataTableServiceClient->createDataTableRow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - $dataTableRowValuesElement = '[VALUES]'; - - create_data_table_row_sample($formattedParent, $dataTableRowValuesElement); -} -// [END chronicle_v1_generated_DataTableService_CreateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php deleted file mode 100644 index 28c77cdb6435..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataTableServiceClient->deleteDataTable($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - - delete_data_table_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_DeleteDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php deleted file mode 100644 index 82188421d34a..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/delete_data_table_row.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataTableServiceClient->deleteDataTableRow($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableRowName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]', - '[DATA_TABLE_ROW]' - ); - - delete_data_table_row_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_DeleteDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php deleted file mode 100644 index f8c92cf8d5be..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataTable $response */ - $response = $dataTableServiceClient->getDataTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - - get_data_table_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_GetDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php deleted file mode 100644 index 354a4397517f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_operation_errors.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataTableOperationErrors $response */ - $response = $dataTableServiceClient->getDataTableOperationErrors($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableOperationErrorsName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE_OPERATION_ERRORS]' - ); - - get_data_table_operation_errors_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php deleted file mode 100644 index 90790e1fd6b3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/get_data_table_row.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataTableRow $response */ - $response = $dataTableServiceClient->getDataTableRow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataTableServiceClient::dataTableRowName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]', - '[DATA_TABLE_ROW]' - ); - - get_data_table_row_sample($formattedName); -} -// [END chronicle_v1_generated_DataTableService_GetDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php deleted file mode 100644 index d38cc698f7fd..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_table_rows.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataTableServiceClient->listDataTableRows($request); - - /** @var DataTableRow $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::dataTableName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DATA_TABLE]' - ); - - list_data_table_rows_sample($formattedParent); -} -// [END chronicle_v1_generated_DataTableService_ListDataTableRows_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php deleted file mode 100644 index 87d6c459c2f2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/list_data_tables.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataTableServiceClient->listDataTables($request); - - /** @var DataTable $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataTableServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - list_data_tables_sample($formattedParent); -} -// [END chronicle_v1_generated_DataTableService_ListDataTables_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php deleted file mode 100644 index 56d2a5d3e41c..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table.php +++ /dev/null @@ -1,72 +0,0 @@ -setDescription($dataTableDescription); - $request = (new UpdateDataTableRequest()) - ->setDataTable($dataTable); - - // Call the API and handle any network failures. - try { - /** @var DataTable $response */ - $response = $dataTableServiceClient->updateDataTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $dataTableDescription = '[DESCRIPTION]'; - - update_data_table_sample($dataTableDescription); -} -// [END chronicle_v1_generated_DataTableService_UpdateDataTable_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php b/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php deleted file mode 100644 index a3b430d80898..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/DataTableServiceClient/update_data_table_row.php +++ /dev/null @@ -1,74 +0,0 @@ -setValues($dataTableRowValues); - $request = (new UpdateDataTableRowRequest()) - ->setDataTableRow($dataTableRow); - - // Call the API and handle any network failures. - try { - /** @var DataTableRow $response */ - $response = $dataTableServiceClient->updateDataTableRow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $dataTableRowValuesElement = '[VALUES]'; - - update_data_table_row_sample($dataTableRowValuesElement); -} -// [END chronicle_v1_generated_DataTableService_UpdateDataTableRow_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php deleted file mode 100644 index fc91d0f75173..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/create_watchlist.php +++ /dev/null @@ -1,83 +0,0 @@ -setDisplayName($watchlistDisplayName) - ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - - // Call the API and handle any network failures. - try { - /** @var Watchlist $response */ - $response = $entityServiceClient->createWatchlist($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlistDisplayName = '[DISPLAY_NAME]'; - - create_watchlist_sample($formattedParent, $watchlistDisplayName); -} -// [END chronicle_v1_generated_EntityService_CreateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php deleted file mode 100644 index a4f794c71488..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/delete_watchlist.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $entityServiceClient->deleteWatchlist($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EntityServiceClient::watchlistName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[WATCHLIST]' - ); - - delete_watchlist_sample($formattedName); -} -// [END chronicle_v1_generated_EntityService_DeleteWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php deleted file mode 100644 index f2c0679734af..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/get_watchlist.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Watchlist $response */ - $response = $entityServiceClient->getWatchlist($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EntityServiceClient::watchlistName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[WATCHLIST]' - ); - - get_watchlist_sample($formattedName); -} -// [END chronicle_v1_generated_EntityService_GetWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php deleted file mode 100644 index b3db33e4e1d2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/list_watchlists.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $entityServiceClient->listWatchlists($request); - - /** @var Watchlist $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntityServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - list_watchlists_sample($formattedParent); -} -// [END chronicle_v1_generated_EntityService_ListWatchlists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php b/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php deleted file mode 100644 index 193fe9ee02c9..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/EntityServiceClient/update_watchlist.php +++ /dev/null @@ -1,77 +0,0 @@ -setDisplayName($watchlistDisplayName) - ->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new UpdateWatchlistRequest()) - ->setWatchlist($watchlist); - - // Call the API and handle any network failures. - try { - /** @var Watchlist $response */ - $response = $entityServiceClient->updateWatchlist($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $watchlistDisplayName = '[DISPLAY_NAME]'; - - update_watchlist_sample($watchlistDisplayName); -} -// [END chronicle_v1_generated_EntityService_UpdateWatchlist_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php deleted file mode 100644 index fe4828f66e9f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FeaturedContentNativeDashboard $response */ - $response = $featuredContentNativeDashboardServiceClient->getFeaturedContentNativeDashboard( - $request - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[FEATURED_CONTENT_NATIVE_DASHBOARD]' - ); - - get_featured_content_native_dashboard_sample($formattedName); -} -// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_GetFeaturedContentNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php deleted file mode 100644 index 36d013db73da..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var InstallFeaturedContentNativeDashboardResponse $response */ - $response = $featuredContentNativeDashboardServiceClient->installFeaturedContentNativeDashboard( - $request - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = FeaturedContentNativeDashboardServiceClient::featuredContentNativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[FEATURED_CONTENT_NATIVE_DASHBOARD]' - ); - - install_featured_content_native_dashboard_sample($formattedName); -} -// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_InstallFeaturedContentNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php deleted file mode 100644 index 411b56b48a14..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php +++ /dev/null @@ -1,84 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $featuredContentNativeDashboardServiceClient->listFeaturedContentNativeDashboards( - $request - ); - - /** @var FeaturedContentNativeDashboard $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = FeaturedContentNativeDashboardServiceClient::contentHubName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_featured_content_native_dashboards_sample($formattedParent); -} -// [END chronicle_v1_generated_FeaturedContentNativeDashboardService_ListFeaturedContentNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php b/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php deleted file mode 100644 index 3f58906ea662..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/InstanceServiceClient/get_instance.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Instance $response */ - $response = $instanceServiceClient->getInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = InstanceServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - get_instance_sample($formattedName); -} -// [END chronicle_v1_generated_InstanceService_GetInstance_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php deleted file mode 100644 index 72e37f68b09f..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/add_chart.php +++ /dev/null @@ -1,90 +0,0 @@ -setDisplayName($dashboardChartDisplayName) - ->setVisualization($dashboardChartVisualization); - $chartLayout = new ChartLayout(); - $request = (new AddChartRequest()) - ->setName($formattedName) - ->setDashboardChart($dashboardChart) - ->setChartLayout($chartLayout); - - // Call the API and handle any network failures. - try { - /** @var AddChartResponse $response */ - $response = $nativeDashboardServiceClient->addChart($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NativeDashboardServiceClient::nativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DASHBOARD]' - ); - $dashboardChartDisplayName = '[DISPLAY_NAME]'; - - add_chart_sample($formattedName, $dashboardChartDisplayName); -} -// [END chronicle_v1_generated_NativeDashboardService_AddChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php deleted file mode 100644 index 4f21c73ab361..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/create_native_dashboard.php +++ /dev/null @@ -1,83 +0,0 @@ -setDisplayName($nativeDashboardDisplayName); - $request = (new CreateNativeDashboardRequest()) - ->setParent($formattedParent) - ->setNativeDashboard($nativeDashboard); - - // Call the API and handle any network failures. - try { - /** @var NativeDashboard $response */ - $response = $nativeDashboardServiceClient->createNativeDashboard($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = NativeDashboardServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $nativeDashboardDisplayName = '[DISPLAY_NAME]'; - - create_native_dashboard_sample($formattedParent, $nativeDashboardDisplayName); -} -// [END chronicle_v1_generated_NativeDashboardService_CreateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php deleted file mode 100644 index 68ec8e4fb935..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $nativeDashboardServiceClient->deleteNativeDashboard($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NativeDashboardServiceClient::nativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DASHBOARD]' - ); - - delete_native_dashboard_sample($formattedName); -} -// [END chronicle_v1_generated_NativeDashboardService_DeleteNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php deleted file mode 100644 index 4e391f360625..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_chart.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName) - ->setDashboardChart($formattedDashboardChart); - - // Call the API and handle any network failures. - try { - /** @var DuplicateChartResponse $response */ - $response = $nativeDashboardServiceClient->duplicateChart($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NativeDashboardServiceClient::nativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DASHBOARD]' - ); - $formattedDashboardChart = NativeDashboardServiceClient::dashboardChartName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[CHART]' - ); - - duplicate_chart_sample($formattedName, $formattedDashboardChart); -} -// [END chronicle_v1_generated_NativeDashboardService_DuplicateChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php deleted file mode 100644 index 33cfc432d361..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php +++ /dev/null @@ -1,85 +0,0 @@ -setDisplayName($nativeDashboardDisplayName); - $request = (new DuplicateNativeDashboardRequest()) - ->setName($formattedName) - ->setNativeDashboard($nativeDashboard); - - // Call the API and handle any network failures. - try { - /** @var NativeDashboard $response */ - $response = $nativeDashboardServiceClient->duplicateNativeDashboard($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NativeDashboardServiceClient::nativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DASHBOARD]' - ); - $nativeDashboardDisplayName = '[DISPLAY_NAME]'; - - duplicate_native_dashboard_sample($formattedName, $nativeDashboardDisplayName); -} -// [END chronicle_v1_generated_NativeDashboardService_DuplicateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php deleted file mode 100644 index ee90db305e9c..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/edit_chart.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName) - ->setEditMask($editMask); - - // Call the API and handle any network failures. - try { - /** @var EditChartResponse $response */ - $response = $nativeDashboardServiceClient->editChart($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NativeDashboardServiceClient::nativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DASHBOARD]' - ); - - edit_chart_sample($formattedName); -} -// [END chronicle_v1_generated_NativeDashboardService_EditChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php deleted file mode 100644 index bf7a4303ac1a..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/export_native_dashboards.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent) - ->setNames($names); - - // Call the API and handle any network failures. - try { - /** @var ExportNativeDashboardsResponse $response */ - $response = $nativeDashboardServiceClient->exportNativeDashboards($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = NativeDashboardServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $namesElement = '[NAMES]'; - - export_native_dashboards_sample($formattedParent, $namesElement); -} -// [END chronicle_v1_generated_NativeDashboardService_ExportNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php deleted file mode 100644 index ffa530d192c3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/get_native_dashboard.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var NativeDashboard $response */ - $response = $nativeDashboardServiceClient->getNativeDashboard($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NativeDashboardServiceClient::nativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DASHBOARD]' - ); - - get_native_dashboard_sample($formattedName); -} -// [END chronicle_v1_generated_NativeDashboardService_GetNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php deleted file mode 100644 index e15ab48e5b85..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/import_native_dashboards.php +++ /dev/null @@ -1,82 +0,0 @@ -setDashboards($sourceDashboards); - $request = (new ImportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setSource($source); - - // Call the API and handle any network failures. - try { - /** @var ImportNativeDashboardsResponse $response */ - $response = $nativeDashboardServiceClient->importNativeDashboards($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = NativeDashboardServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - import_native_dashboards_sample($formattedParent); -} -// [END chronicle_v1_generated_NativeDashboardService_ImportNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php deleted file mode 100644 index 349d07215475..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/list_native_dashboards.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $nativeDashboardServiceClient->listNativeDashboards($request); - - /** @var NativeDashboard $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = NativeDashboardServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_native_dashboards_sample($formattedParent); -} -// [END chronicle_v1_generated_NativeDashboardService_ListNativeDashboards_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php deleted file mode 100644 index 7c1630028140..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/remove_chart.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName) - ->setDashboardChart($formattedDashboardChart); - - // Call the API and handle any network failures. - try { - /** @var NativeDashboard $response */ - $response = $nativeDashboardServiceClient->removeChart($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NativeDashboardServiceClient::nativeDashboardName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[DASHBOARD]' - ); - $formattedDashboardChart = NativeDashboardServiceClient::dashboardChartName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[CHART]' - ); - - remove_chart_sample($formattedName, $formattedDashboardChart); -} -// [END chronicle_v1_generated_NativeDashboardService_RemoveChart_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php b/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php deleted file mode 100644 index 04f2a4465e8d..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/NativeDashboardServiceClient/update_native_dashboard.php +++ /dev/null @@ -1,75 +0,0 @@ -setDisplayName($nativeDashboardDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateNativeDashboardRequest()) - ->setNativeDashboard($nativeDashboard) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var NativeDashboard $response */ - $response = $nativeDashboardServiceClient->updateNativeDashboard($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $nativeDashboardDisplayName = '[DISPLAY_NAME]'; - - update_native_dashboard_sample($nativeDashboardDisplayName); -} -// [END chronicle_v1_generated_NativeDashboardService_UpdateNativeDashboard_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php deleted file mode 100644 index 064b32ca29d0..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/create_reference_list.php +++ /dev/null @@ -1,111 +0,0 @@ -setValue($referenceListEntriesValue); - $referenceListEntries = [$referenceListEntry,]; - $referenceList = (new ReferenceList()) - ->setDescription($referenceListDescription) - ->setEntries($referenceListEntries) - ->setSyntaxType($referenceListSyntaxType); - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - - // Call the API and handle any network failures. - try { - /** @var ReferenceList $response */ - $response = $referenceListServiceClient->createReferenceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReferenceListServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - $referenceListDescription = '[DESCRIPTION]'; - $referenceListEntriesValue = '[VALUE]'; - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceListId = '[REFERENCE_LIST_ID]'; - - create_reference_list_sample( - $formattedParent, - $referenceListDescription, - $referenceListEntriesValue, - $referenceListSyntaxType, - $referenceListId - ); -} -// [END chronicle_v1_generated_ReferenceListService_CreateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php deleted file mode 100644 index 5e6d4986fbfb..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/get_reference_list.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ReferenceList $response */ - $response = $referenceListServiceClient->getReferenceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReferenceListServiceClient::referenceListName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[REFERENCE_LIST]' - ); - - get_reference_list_sample($formattedName); -} -// [END chronicle_v1_generated_ReferenceListService_GetReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php deleted file mode 100644 index 5fef5d03cbeb..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/list_reference_lists.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $referenceListServiceClient->listReferenceLists($request); - - /** @var ReferenceList $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReferenceListServiceClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]' - ); - - list_reference_lists_sample($formattedParent); -} -// [END chronicle_v1_generated_ReferenceListService_ListReferenceLists_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php b/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php deleted file mode 100644 index 2ea81ccc24e2..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/ReferenceListServiceClient/update_reference_list.php +++ /dev/null @@ -1,90 +0,0 @@ -setValue($referenceListEntriesValue); - $referenceListEntries = [$referenceListEntry,]; - $referenceList = (new ReferenceList()) - ->setDescription($referenceListDescription) - ->setEntries($referenceListEntries) - ->setSyntaxType($referenceListSyntaxType); - $request = (new UpdateReferenceListRequest()) - ->setReferenceList($referenceList); - - // Call the API and handle any network failures. - try { - /** @var ReferenceList $response */ - $response = $referenceListServiceClient->updateReferenceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $referenceListDescription = '[DESCRIPTION]'; - $referenceListEntriesValue = '[VALUE]'; - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - - update_reference_list_sample( - $referenceListDescription, - $referenceListEntriesValue, - $referenceListSyntaxType - ); -} -// [END chronicle_v1_generated_ReferenceListService_UpdateReferenceList_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php deleted file mode 100644 index 72fe02a04c79..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_retrohunt.php +++ /dev/null @@ -1,90 +0,0 @@ -setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $ruleServiceClient->createRetrohunt($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Retrohunt $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - create_retrohunt_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_CreateRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php deleted file mode 100644 index 4e49df99d1e9..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/create_rule.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setRule($rule); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $ruleServiceClient->createRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - create_rule_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_CreateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php deleted file mode 100644 index 229fd626bf85..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/delete_rule.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $ruleServiceClient->deleteRule($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - delete_rule_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_DeleteRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php deleted file mode 100644 index 9a17dfe2f0fc..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_retrohunt.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Retrohunt $response */ - $response = $ruleServiceClient->getRetrohunt($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::retrohuntName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[RULE]', - '[RETROHUNT]' - ); - - get_retrohunt_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_GetRetrohunt_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php deleted file mode 100644 index 9b7b735b3cbb..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $ruleServiceClient->getRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - get_rule_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_GetRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php deleted file mode 100644 index 16ac2aee8b32..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/get_rule_deployment.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var RuleDeployment $response */ - $response = $ruleServiceClient->getRuleDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[INSTANCE]', - '[RULE]' - ); - - get_rule_deployment_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_GetRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php deleted file mode 100644 index c20092aee588..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_retrohunts.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRetrohunts($request); - - /** @var Retrohunt $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - list_retrohunts_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_ListRetrohunts_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php deleted file mode 100644 index 0a63256b173c..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_deployments.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRuleDeployments($request); - - /** @var RuleDeployment $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - list_rule_deployments_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_ListRuleDeployments_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php deleted file mode 100644 index 44ffc527c875..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rule_revisions.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRuleRevisions($request); - - /** @var Rule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuleServiceClient::ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - - list_rule_revisions_sample($formattedName); -} -// [END chronicle_v1_generated_RuleService_ListRuleRevisions_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php deleted file mode 100644 index aa9cb76ebdd3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/list_rules.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $ruleServiceClient->listRules($request); - - /** @var Rule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuleServiceClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - list_rules_sample($formattedParent); -} -// [END chronicle_v1_generated_RuleService_ListRules_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php deleted file mode 100644 index 5462edfd5766..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule.php +++ /dev/null @@ -1,59 +0,0 @@ -setRule($rule); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $ruleServiceClient->updateRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chronicle_v1_generated_RuleService_UpdateRule_sync] diff --git a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php b/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php deleted file mode 100644 index 8d9d5600aec3..000000000000 --- a/owl-bot-staging/Chronicle/v1/samples/V1/RuleServiceClient/update_rule_deployment.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($ruleDeploymentName); - $updateMask = new FieldMask(); - $request = (new UpdateRuleDeploymentRequest()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var RuleDeployment $response */ - $response = $ruleServiceClient->updateRuleDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $ruleDeploymentName = '[NAME]'; - - update_rule_deployment_sample($ruleDeploymentName); -} -// [END chronicle_v1_generated_RuleService_UpdateRuleDeployment_sync] diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php deleted file mode 100644 index e705b61f0ad7..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardChartServiceClient.php +++ /dev/null @@ -1,310 +0,0 @@ - batchGetDashboardChartsAsync(BatchGetDashboardChartsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDashboardChartAsync(GetDashboardChartRequest $request, array $optionalArgs = []) - */ -final class DashboardChartServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.DashboardChartService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chronicle', - 'https://www.googleapis.com/auth/chronicle.readonly', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/dashboard_chart_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dashboard_chart_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * dashboard_chart resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $chart - * - * @return string The formatted dashboard_chart resource. - */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { - return self::getPathTemplate('dashboardChart')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'chart' => $chart, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\DashboardChartServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DashboardChartServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Get dashboard charts in batches. - * - * The async variant is - * {@see DashboardChartServiceClient::batchGetDashboardChartsAsync()} . - * - * @example samples/V1/DashboardChartServiceClient/batch_get_dashboard_charts.php - * - * @param BatchGetDashboardChartsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchGetDashboardChartsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchGetDashboardCharts(BatchGetDashboardChartsRequest $request, array $callOptions = []): BatchGetDashboardChartsResponse - { - return $this->startApiCall('BatchGetDashboardCharts', $request, $callOptions)->wait(); - } - - /** - * Get a dashboard chart. - * - * The async variant is - * {@see DashboardChartServiceClient::getDashboardChartAsync()} . - * - * @example samples/V1/DashboardChartServiceClient/get_dashboard_chart.php - * - * @param GetDashboardChartRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DashboardChart - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDashboardChart(GetDashboardChartRequest $request, array $callOptions = []): DashboardChart - { - return $this->startApiCall('GetDashboardChart', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php deleted file mode 100644 index d3af52f0d47a..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DashboardQueryServiceClient.php +++ /dev/null @@ -1,332 +0,0 @@ - executeDashboardQueryAsync(ExecuteDashboardQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDashboardQueryAsync(GetDashboardQueryRequest $request, array $optionalArgs = []) - */ -final class DashboardQueryServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.DashboardQueryService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chronicle', - 'https://www.googleapis.com/auth/chronicle.readonly', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/dashboard_query_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dashboard_query_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dashboard_query_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dashboard_query_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * dashboard_chart resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $chart - * - * @return string The formatted dashboard_chart resource. - */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { - return self::getPathTemplate('dashboardChart')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'chart' => $chart, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * dashboard_query resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $query - * - * @return string The formatted dashboard_query resource. - */ - public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string - { - return self::getPathTemplate('dashboardQuery')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'query' => $query, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\DashboardQueryServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DashboardQueryServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Execute a query and return the data. - * - * The async variant is - * {@see DashboardQueryServiceClient::executeDashboardQueryAsync()} . - * - * @example samples/V1/DashboardQueryServiceClient/execute_dashboard_query.php - * - * @param ExecuteDashboardQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExecuteDashboardQueryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function executeDashboardQuery(ExecuteDashboardQueryRequest $request, array $callOptions = []): ExecuteDashboardQueryResponse - { - return $this->startApiCall('ExecuteDashboardQuery', $request, $callOptions)->wait(); - } - - /** - * Get a dashboard query. - * - * The async variant is - * {@see DashboardQueryServiceClient::getDashboardQueryAsync()} . - * - * @example samples/V1/DashboardQueryServiceClient/get_dashboard_query.php - * - * @param GetDashboardQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DashboardQuery - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDashboardQuery(GetDashboardQueryRequest $request, array $callOptions = []): DashboardQuery - { - return $this->startApiCall('GetDashboardQuery', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php deleted file mode 100644 index 11a4d52eccf8..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataAccessControlServiceClient.php +++ /dev/null @@ -1,572 +0,0 @@ - createDataAccessLabelAsync(CreateDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataAccessScopeAsync(CreateDataAccessScopeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAccessLabelAsync(DeleteDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAccessScopeAsync(DeleteDataAccessScopeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAccessLabelAsync(GetDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAccessScopeAsync(GetDataAccessScopeRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAccessLabelsAsync(ListDataAccessLabelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAccessScopesAsync(ListDataAccessScopesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAccessLabelAsync(UpdateDataAccessLabelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAccessScopeAsync(UpdateDataAccessScopeRequest $request, array $optionalArgs = []) - */ -final class DataAccessControlServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataAccessControlService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/data_access_control_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_access_control_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_access_control_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_access_control_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_label resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessLabel - * - * @return string The formatted data_access_label resource. - */ - public static function dataAccessLabelName(string $project, string $location, string $instance, string $dataAccessLabel): string - { - return self::getPathTemplate('dataAccessLabel')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_label' => $dataAccessLabel, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_scope resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessScope - * - * @return string The formatted data_access_scope resource. - */ - public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string - { - return self::getPathTemplate('dataAccessScope')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_scope' => $dataAccessScope, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataAccessLabel: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label} - * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\DataAccessControlServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataAccessControlServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a data access label. - * Data access labels are applied to incoming event data and selected in data - * access scopes (another resource), and only users with scopes containing the - * label can see data with that label. Currently, the data access label - * resource only includes custom labels, which are labels that correspond - * to UDM queries over event data. - * - * The async variant is - * {@see DataAccessControlServiceClient::createDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/create_data_access_label.php - * - * @param CreateDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessLabel - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataAccessLabel(CreateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel - { - return $this->startApiCall('CreateDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Creates a data access scope. - * Data access scope is a combination of allowed and denied labels attached - * to a permission group. If a scope has allowed labels A and B and denied - * labels C and D, then the group of people attached to the scope - * will have permissions to see all events labeled with A or B (or both) and - * not labeled with either C or D. - * - * The async variant is - * {@see DataAccessControlServiceClient::createDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/create_data_access_scope.php - * - * @param CreateDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessScope - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataAccessScope(CreateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope - { - return $this->startApiCall('CreateDataAccessScope', $request, $callOptions)->wait(); - } - - /** - * Deletes a data access label. When a label is deleted, new - * data that enters in the system will not receive the label, but the label - * will not be removed from old data that still refers to it. - * - * The async variant is - * {@see DataAccessControlServiceClient::deleteDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/delete_data_access_label.php - * - * @param DeleteDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataAccessLabel(DeleteDataAccessLabelRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Deletes a data access scope. - * - * The async variant is - * {@see DataAccessControlServiceClient::deleteDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/delete_data_access_scope.php - * - * @param DeleteDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataAccessScope(DeleteDataAccessScopeRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataAccessScope', $request, $callOptions)->wait(); - } - - /** - * Gets a data access label. - * - * The async variant is - * {@see DataAccessControlServiceClient::getDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/get_data_access_label.php - * - * @param GetDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessLabel - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataAccessLabel(GetDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel - { - return $this->startApiCall('GetDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Retrieves an existing data access scope. - * - * The async variant is - * {@see DataAccessControlServiceClient::getDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/get_data_access_scope.php - * - * @param GetDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessScope - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataAccessScope(GetDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope - { - return $this->startApiCall('GetDataAccessScope', $request, $callOptions)->wait(); - } - - /** - * Lists all data access labels for the customer. - * - * The async variant is - * {@see DataAccessControlServiceClient::listDataAccessLabelsAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/list_data_access_labels.php - * - * @param ListDataAccessLabelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataAccessLabels(ListDataAccessLabelsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAccessLabels', $request, $callOptions); - } - - /** - * Lists all existing data access scopes for the customer. - * - * The async variant is - * {@see DataAccessControlServiceClient::listDataAccessScopesAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/list_data_access_scopes.php - * - * @param ListDataAccessScopesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataAccessScopes(ListDataAccessScopesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAccessScopes', $request, $callOptions); - } - - /** - * Updates a data access label. - * - * The async variant is - * {@see DataAccessControlServiceClient::updateDataAccessLabelAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/update_data_access_label.php - * - * @param UpdateDataAccessLabelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessLabel - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataAccessLabel(UpdateDataAccessLabelRequest $request, array $callOptions = []): DataAccessLabel - { - return $this->startApiCall('UpdateDataAccessLabel', $request, $callOptions)->wait(); - } - - /** - * Updates a data access scope. - * - * The async variant is - * {@see DataAccessControlServiceClient::updateDataAccessScopeAsync()} . - * - * @example samples/V1/DataAccessControlServiceClient/update_data_access_scope.php - * - * @param UpdateDataAccessScopeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataAccessScope - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataAccessScope(UpdateDataAccessScopeRequest $request, array $callOptions = []): DataAccessScope - { - return $this->startApiCall('UpdateDataAccessScope', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php deleted file mode 100644 index 3a2425a3b967..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/DataTableServiceClient.php +++ /dev/null @@ -1,747 +0,0 @@ - bulkCreateDataTableRowsAsync(BulkCreateDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface bulkGetDataTableRowsAsync(BulkGetDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface bulkReplaceDataTableRowsAsync(BulkReplaceDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface bulkUpdateDataTableRowsAsync(BulkUpdateDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataTableAsync(CreateDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataTableRowAsync(CreateDataTableRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataTableAsync(DeleteDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataTableRowAsync(DeleteDataTableRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataTableAsync(GetDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataTableOperationErrorsAsync(GetDataTableOperationErrorsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataTableRowAsync(GetDataTableRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataTableRowsAsync(ListDataTableRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataTablesAsync(ListDataTablesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataTableAsync(UpdateDataTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataTableRowAsync(UpdateDataTableRowRequest $request, array $optionalArgs = []) - */ -final class DataTableServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.DataTableService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chronicle', - 'https://www.googleapis.com/auth/chronicle.readonly', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/data_table_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_table_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_table_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_table_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_scope resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessScope - * - * @return string The formatted data_access_scope resource. - */ - public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string - { - return self::getPathTemplate('dataAccessScope')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_scope' => $dataAccessScope, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_table - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataTable - * - * @return string The formatted data_table resource. - */ - public static function dataTableName(string $project, string $location, string $instance, string $dataTable): string - { - return self::getPathTemplate('dataTable')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_table' => $dataTable, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_table_operation_errors resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataTableOperationErrors - * - * @return string The formatted data_table_operation_errors resource. - */ - public static function dataTableOperationErrorsName(string $project, string $location, string $instance, string $dataTableOperationErrors): string - { - return self::getPathTemplate('dataTableOperationErrors')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_table_operation_errors' => $dataTableOperationErrors, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_table_row resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataTable - * @param string $dataTableRow - * - * @return string The formatted data_table_row resource. - */ - public static function dataTableRowName(string $project, string $location, string $instance, string $dataTable, string $dataTableRow): string - { - return self::getPathTemplate('dataTableRow')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_table' => $dataTable, - 'data_table_row' => $dataTableRow, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} - * - dataTable: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} - * - dataTableOperationErrors: projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} - * - dataTableRow: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\DataTableServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataTableServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create data table rows in bulk. - * - * The async variant is - * {@see DataTableServiceClient::bulkCreateDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/bulk_create_data_table_rows.php - * - * @param BulkCreateDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkCreateDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkCreateDataTableRows(BulkCreateDataTableRowsRequest $request, array $callOptions = []): BulkCreateDataTableRowsResponse - { - return $this->startApiCall('BulkCreateDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Get data table rows in bulk. - * - * The async variant is {@see DataTableServiceClient::bulkGetDataTableRowsAsync()} - * . - * - * @example samples/V1/DataTableServiceClient/bulk_get_data_table_rows.php - * - * @param BulkGetDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkGetDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkGetDataTableRows(BulkGetDataTableRowsRequest $request, array $callOptions = []): BulkGetDataTableRowsResponse - { - return $this->startApiCall('BulkGetDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Replace all existing data table rows with new data table rows. - * - * The async variant is - * {@see DataTableServiceClient::bulkReplaceDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/bulk_replace_data_table_rows.php - * - * @param BulkReplaceDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkReplaceDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest $request, array $callOptions = []): BulkReplaceDataTableRowsResponse - { - return $this->startApiCall('BulkReplaceDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Update data table rows in bulk. - * - * The async variant is - * {@see DataTableServiceClient::bulkUpdateDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/bulk_update_data_table_rows.php - * - * @param BulkUpdateDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BulkUpdateDataTableRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function bulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest $request, array $callOptions = []): BulkUpdateDataTableRowsResponse - { - return $this->startApiCall('BulkUpdateDataTableRows', $request, $callOptions)->wait(); - } - - /** - * Create a new data table. - * - * The async variant is {@see DataTableServiceClient::createDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/create_data_table.php - * - * @param CreateDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTable - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataTable(CreateDataTableRequest $request, array $callOptions = []): DataTable - { - return $this->startApiCall('CreateDataTable', $request, $callOptions)->wait(); - } - - /** - * Create a new data table row. - * - * The async variant is {@see DataTableServiceClient::createDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/create_data_table_row.php - * - * @param CreateDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableRow - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataTableRow(CreateDataTableRowRequest $request, array $callOptions = []): DataTableRow - { - return $this->startApiCall('CreateDataTableRow', $request, $callOptions)->wait(); - } - - /** - * Delete data table. - * - * The async variant is {@see DataTableServiceClient::deleteDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/delete_data_table.php - * - * @param DeleteDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataTable(DeleteDataTableRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataTable', $request, $callOptions)->wait(); - } - - /** - * Delete data table row. - * - * The async variant is {@see DataTableServiceClient::deleteDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/delete_data_table_row.php - * - * @param DeleteDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataTableRow(DeleteDataTableRowRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataTableRow', $request, $callOptions)->wait(); - } - - /** - * Get data table info. - * - * The async variant is {@see DataTableServiceClient::getDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/get_data_table.php - * - * @param GetDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTable - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataTable(GetDataTableRequest $request, array $callOptions = []): DataTable - { - return $this->startApiCall('GetDataTable', $request, $callOptions)->wait(); - } - - /** - * Get the error for a data table operation. - * - * The async variant is - * {@see DataTableServiceClient::getDataTableOperationErrorsAsync()} . - * - * @example samples/V1/DataTableServiceClient/get_data_table_operation_errors.php - * - * @param GetDataTableOperationErrorsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableOperationErrors - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataTableOperationErrors(GetDataTableOperationErrorsRequest $request, array $callOptions = []): DataTableOperationErrors - { - return $this->startApiCall('GetDataTableOperationErrors', $request, $callOptions)->wait(); - } - - /** - * Get data table row - * - * The async variant is {@see DataTableServiceClient::getDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/get_data_table_row.php - * - * @param GetDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableRow - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataTableRow(GetDataTableRowRequest $request, array $callOptions = []): DataTableRow - { - return $this->startApiCall('GetDataTableRow', $request, $callOptions)->wait(); - } - - /** - * List data table rows. - * - * The async variant is {@see DataTableServiceClient::listDataTableRowsAsync()} . - * - * @example samples/V1/DataTableServiceClient/list_data_table_rows.php - * - * @param ListDataTableRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataTableRows(ListDataTableRowsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataTableRows', $request, $callOptions); - } - - /** - * List data tables. - * - * The async variant is {@see DataTableServiceClient::listDataTablesAsync()} . - * - * @example samples/V1/DataTableServiceClient/list_data_tables.php - * - * @param ListDataTablesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataTables(ListDataTablesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataTables', $request, $callOptions); - } - - /** - * Update data table. - * - * The async variant is {@see DataTableServiceClient::updateDataTableAsync()} . - * - * @example samples/V1/DataTableServiceClient/update_data_table.php - * - * @param UpdateDataTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTable - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataTable(UpdateDataTableRequest $request, array $callOptions = []): DataTable - { - return $this->startApiCall('UpdateDataTable', $request, $callOptions)->wait(); - } - - /** - * Update data table row - * - * The async variant is {@see DataTableServiceClient::updateDataTableRowAsync()} . - * - * @example samples/V1/DataTableServiceClient/update_data_table_row.php - * - * @param UpdateDataTableRowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataTableRow - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataTableRow(UpdateDataTableRowRequest $request, array $callOptions = []): DataTableRow - { - return $this->startApiCall('UpdateDataTableRow', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php deleted file mode 100644 index 0e4473f59298..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/EntityServiceClient.php +++ /dev/null @@ -1,389 +0,0 @@ - createWatchlistAsync(CreateWatchlistRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWatchlistAsync(DeleteWatchlistRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWatchlistAsync(GetWatchlistRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWatchlistsAsync(ListWatchlistsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWatchlistAsync(UpdateWatchlistRequest $request, array $optionalArgs = []) - */ -final class EntityServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.EntityService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/entity_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/entity_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/entity_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/entity_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a watchlist - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $watchlist - * - * @return string The formatted watchlist resource. - */ - public static function watchlistName(string $project, string $location, string $instance, string $watchlist): string - { - return self::getPathTemplate('watchlist')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'watchlist' => $watchlist, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - watchlist: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\EntityServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new EntityServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a watchlist for the given instance. - * Note that there can be at most 200 watchlists per instance. - * - * The async variant is {@see EntityServiceClient::createWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/create_watchlist.php - * - * @param CreateWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Watchlist - * - * @throws ApiException Thrown if the API call fails. - */ - public function createWatchlist(CreateWatchlistRequest $request, array $callOptions = []): Watchlist - { - return $this->startApiCall('CreateWatchlist', $request, $callOptions)->wait(); - } - - /** - * Deletes the watchlist for the given instance. - * - * The async variant is {@see EntityServiceClient::deleteWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/delete_watchlist.php - * - * @param DeleteWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteWatchlist(DeleteWatchlistRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWatchlist', $request, $callOptions)->wait(); - } - - /** - * Gets watchlist details for the given watchlist ID. - * - * The async variant is {@see EntityServiceClient::getWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/get_watchlist.php - * - * @param GetWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Watchlist - * - * @throws ApiException Thrown if the API call fails. - */ - public function getWatchlist(GetWatchlistRequest $request, array $callOptions = []): Watchlist - { - return $this->startApiCall('GetWatchlist', $request, $callOptions)->wait(); - } - - /** - * Lists all watchlists for the given instance. - * - * The async variant is {@see EntityServiceClient::listWatchlistsAsync()} . - * - * @example samples/V1/EntityServiceClient/list_watchlists.php - * - * @param ListWatchlistsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listWatchlists(ListWatchlistsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWatchlists', $request, $callOptions); - } - - /** - * Updates the watchlist for the given instance. - * - * The async variant is {@see EntityServiceClient::updateWatchlistAsync()} . - * - * @example samples/V1/EntityServiceClient/update_watchlist.php - * - * @param UpdateWatchlistRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Watchlist - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateWatchlist(UpdateWatchlistRequest $request, array $callOptions = []): Watchlist - { - return $this->startApiCall('UpdateWatchlist', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php deleted file mode 100644 index ef15c0083d7e..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/FeaturedContentNativeDashboardServiceClient.php +++ /dev/null @@ -1,431 +0,0 @@ - getFeaturedContentNativeDashboardAsync(GetFeaturedContentNativeDashboardRequest $request, array $optionalArgs = []) - * @method PromiseInterface installFeaturedContentNativeDashboardAsync(InstallFeaturedContentNativeDashboardRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFeaturedContentNativeDashboardsAsync(ListFeaturedContentNativeDashboardsRequest $request, array $optionalArgs = []) - */ -final class FeaturedContentNativeDashboardServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chronicle', - 'https://www.googleapis.com/auth/chronicle.readonly', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/featured_content_native_dashboard_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/featured_content_native_dashboard_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a content_hub - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted content_hub resource. - */ - public static function contentHubName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('contentHub')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * dashboard_chart resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $chart - * - * @return string The formatted dashboard_chart resource. - */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { - return self::getPathTemplate('dashboardChart')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'chart' => $chart, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * dashboard_query resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $query - * - * @return string The formatted dashboard_query resource. - */ - public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string - { - return self::getPathTemplate('dashboardQuery')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'query' => $query, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * featured_content_native_dashboard resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $featuredContentNativeDashboard - * - * @return string The formatted featured_content_native_dashboard resource. - */ - public static function featuredContentNativeDashboardName(string $project, string $location, string $instance, string $featuredContentNativeDashboard): string - { - return self::getPathTemplate('featuredContentNativeDashboard')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'featured_content_native_dashboard' => $featuredContentNativeDashboard, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * native_dashboard resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dashboard - * - * @return string The formatted native_dashboard resource. - */ - public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string - { - return self::getPathTemplate('nativeDashboard')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'dashboard' => $dashboard, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - contentHub: projects/{project}/locations/{location}/instances/{instance}/contentHub - * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * - featuredContentNativeDashboard: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - nativeDashboard: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboardServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new FeaturedContentNativeDashboardServiceClient(['credentials' => - * $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Get a native dashboard featured content. - * - * The async variant is - * {@see FeaturedContentNativeDashboardServiceClient::getFeaturedContentNativeDashboardAsync()} - * . - * - * @example samples/V1/FeaturedContentNativeDashboardServiceClient/get_featured_content_native_dashboard.php - * - * @param GetFeaturedContentNativeDashboardRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FeaturedContentNativeDashboard - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFeaturedContentNativeDashboard(GetFeaturedContentNativeDashboardRequest $request, array $callOptions = []): FeaturedContentNativeDashboard - { - return $this->startApiCall('GetFeaturedContentNativeDashboard', $request, $callOptions)->wait(); - } - - /** - * Install a native dashboard featured content. - * - * The async variant is - * {@see FeaturedContentNativeDashboardServiceClient::installFeaturedContentNativeDashboardAsync()} - * . - * - * @example samples/V1/FeaturedContentNativeDashboardServiceClient/install_featured_content_native_dashboard.php - * - * @param InstallFeaturedContentNativeDashboardRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InstallFeaturedContentNativeDashboardResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function installFeaturedContentNativeDashboard(InstallFeaturedContentNativeDashboardRequest $request, array $callOptions = []): InstallFeaturedContentNativeDashboardResponse - { - return $this->startApiCall('InstallFeaturedContentNativeDashboard', $request, $callOptions)->wait(); - } - - /** - * List all native dashboards featured content. - * - * The async variant is - * {@see FeaturedContentNativeDashboardServiceClient::listFeaturedContentNativeDashboardsAsync()} - * . - * - * @example samples/V1/FeaturedContentNativeDashboardServiceClient/list_featured_content_native_dashboards.php - * - * @param ListFeaturedContentNativeDashboardsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listFeaturedContentNativeDashboards(ListFeaturedContentNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFeaturedContentNativeDashboards', $request, $callOptions); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php deleted file mode 100644 index da3746e28c93..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/InstanceServiceClient.php +++ /dev/null @@ -1,255 +0,0 @@ - getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - */ -final class InstanceServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.InstanceService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/instance_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/instance_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/instance_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/instance_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\InstanceServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new InstanceServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Gets a Instance. - * - * The async variant is {@see InstanceServiceClient::getInstanceAsync()} . - * - * @example samples/V1/InstanceServiceClient/get_instance.php - * - * @param GetInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Instance - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance - { - return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php deleted file mode 100644 index 971464871d9a..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/NativeDashboardServiceClient.php +++ /dev/null @@ -1,644 +0,0 @@ - addChartAsync(AddChartRequest $request, array $optionalArgs = []) - * @method PromiseInterface createNativeDashboardAsync(CreateNativeDashboardRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteNativeDashboardAsync(DeleteNativeDashboardRequest $request, array $optionalArgs = []) - * @method PromiseInterface duplicateChartAsync(DuplicateChartRequest $request, array $optionalArgs = []) - * @method PromiseInterface duplicateNativeDashboardAsync(DuplicateNativeDashboardRequest $request, array $optionalArgs = []) - * @method PromiseInterface editChartAsync(EditChartRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportNativeDashboardsAsync(ExportNativeDashboardsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNativeDashboardAsync(GetNativeDashboardRequest $request, array $optionalArgs = []) - * @method PromiseInterface importNativeDashboardsAsync(ImportNativeDashboardsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNativeDashboardsAsync(ListNativeDashboardsRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeChartAsync(RemoveChartRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateNativeDashboardAsync(UpdateNativeDashboardRequest $request, array $optionalArgs = []) - */ -final class NativeDashboardServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.NativeDashboardService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chronicle', - 'https://www.googleapis.com/auth/chronicle.readonly', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/native_dashboard_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/native_dashboard_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/native_dashboard_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/native_dashboard_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * dashboard_chart resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $chart - * - * @return string The formatted dashboard_chart resource. - */ - public static function dashboardChartName(string $project, string $location, string $instance, string $chart): string - { - return self::getPathTemplate('dashboardChart')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'chart' => $chart, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * dashboard_query resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $query - * - * @return string The formatted dashboard_query resource. - */ - public static function dashboardQueryName(string $project, string $location, string $instance, string $query): string - { - return self::getPathTemplate('dashboardQuery')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'query' => $query, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * native_dashboard resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dashboard - * - * @return string The formatted native_dashboard resource. - */ - public static function nativeDashboardName(string $project, string $location, string $instance, string $dashboard): string - { - return self::getPathTemplate('nativeDashboard')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'dashboard' => $dashboard, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dashboardChart: projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} - * - dashboardQuery: projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - nativeDashboard: projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\NativeDashboardServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new NativeDashboardServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Add chart in a dashboard. - * - * The async variant is {@see NativeDashboardServiceClient::addChartAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/add_chart.php - * - * @param AddChartRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AddChartResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function addChart(AddChartRequest $request, array $callOptions = []): AddChartResponse - { - return $this->startApiCall('AddChart', $request, $callOptions)->wait(); - } - - /** - * Create a dashboard. - * - * The async variant is - * {@see NativeDashboardServiceClient::createNativeDashboardAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/create_native_dashboard.php - * - * @param CreateNativeDashboardRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NativeDashboard - * - * @throws ApiException Thrown if the API call fails. - */ - public function createNativeDashboard(CreateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard - { - return $this->startApiCall('CreateNativeDashboard', $request, $callOptions)->wait(); - } - - /** - * Delete a dashboard. - * - * The async variant is - * {@see NativeDashboardServiceClient::deleteNativeDashboardAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/delete_native_dashboard.php - * - * @param DeleteNativeDashboardRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteNativeDashboard(DeleteNativeDashboardRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteNativeDashboard', $request, $callOptions)->wait(); - } - - /** - * Duplicate chart in a dashboard. - * - * The async variant is {@see NativeDashboardServiceClient::duplicateChartAsync()} - * . - * - * @example samples/V1/NativeDashboardServiceClient/duplicate_chart.php - * - * @param DuplicateChartRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DuplicateChartResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function duplicateChart(DuplicateChartRequest $request, array $callOptions = []): DuplicateChartResponse - { - return $this->startApiCall('DuplicateChart', $request, $callOptions)->wait(); - } - - /** - * Duplicate a dashboard. - * - * The async variant is - * {@see NativeDashboardServiceClient::duplicateNativeDashboardAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/duplicate_native_dashboard.php - * - * @param DuplicateNativeDashboardRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NativeDashboard - * - * @throws ApiException Thrown if the API call fails. - */ - public function duplicateNativeDashboard(DuplicateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard - { - return $this->startApiCall('DuplicateNativeDashboard', $request, $callOptions)->wait(); - } - - /** - * Edit chart in a dashboard. - * - * The async variant is {@see NativeDashboardServiceClient::editChartAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/edit_chart.php - * - * @param EditChartRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EditChartResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function editChart(EditChartRequest $request, array $callOptions = []): EditChartResponse - { - return $this->startApiCall('EditChart', $request, $callOptions)->wait(); - } - - /** - * Exports the dashboards. - * - * The async variant is - * {@see NativeDashboardServiceClient::exportNativeDashboardsAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/export_native_dashboards.php - * - * @param ExportNativeDashboardsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExportNativeDashboardsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function exportNativeDashboards(ExportNativeDashboardsRequest $request, array $callOptions = []): ExportNativeDashboardsResponse - { - return $this->startApiCall('ExportNativeDashboards', $request, $callOptions)->wait(); - } - - /** - * Get a dashboard. - * - * The async variant is - * {@see NativeDashboardServiceClient::getNativeDashboardAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/get_native_dashboard.php - * - * @param GetNativeDashboardRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NativeDashboard - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNativeDashboard(GetNativeDashboardRequest $request, array $callOptions = []): NativeDashboard - { - return $this->startApiCall('GetNativeDashboard', $request, $callOptions)->wait(); - } - - /** - * Imports the dashboards. - * - * The async variant is - * {@see NativeDashboardServiceClient::importNativeDashboardsAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/import_native_dashboards.php - * - * @param ImportNativeDashboardsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ImportNativeDashboardsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function importNativeDashboards(ImportNativeDashboardsRequest $request, array $callOptions = []): ImportNativeDashboardsResponse - { - return $this->startApiCall('ImportNativeDashboards', $request, $callOptions)->wait(); - } - - /** - * List all dashboards. - * - * The async variant is - * {@see NativeDashboardServiceClient::listNativeDashboardsAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/list_native_dashboards.php - * - * @param ListNativeDashboardsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNativeDashboards(ListNativeDashboardsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListNativeDashboards', $request, $callOptions); - } - - /** - * Remove chart from a dashboard. - * - * The async variant is {@see NativeDashboardServiceClient::removeChartAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/remove_chart.php - * - * @param RemoveChartRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NativeDashboard - * - * @throws ApiException Thrown if the API call fails. - */ - public function removeChart(RemoveChartRequest $request, array $callOptions = []): NativeDashboard - { - return $this->startApiCall('RemoveChart', $request, $callOptions)->wait(); - } - - /** - * Update a dashboard. - * - * The async variant is - * {@see NativeDashboardServiceClient::updateNativeDashboardAsync()} . - * - * @example samples/V1/NativeDashboardServiceClient/update_native_dashboard.php - * - * @param UpdateNativeDashboardRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NativeDashboard - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateNativeDashboard(UpdateNativeDashboardRequest $request, array $callOptions = []): NativeDashboard - { - return $this->startApiCall('UpdateNativeDashboard', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php deleted file mode 100644 index 3f922d8c579f..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/ReferenceListServiceClient.php +++ /dev/null @@ -1,366 +0,0 @@ - createReferenceListAsync(CreateReferenceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReferenceListAsync(GetReferenceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReferenceListsAsync(ListReferenceListsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReferenceListAsync(UpdateReferenceListRequest $request, array $optionalArgs = []) - */ -final class ReferenceListServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.ReferenceListService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/reference_list_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/reference_list_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/reference_list_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/reference_list_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * reference_list resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $referenceList - * - * @return string The formatted reference_list resource. - */ - public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string - { - return self::getPathTemplate('referenceList')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'reference_list' => $referenceList, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\ReferenceListServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ReferenceListServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a new reference list. - * - * The async variant is - * {@see ReferenceListServiceClient::createReferenceListAsync()} . - * - * @example samples/V1/ReferenceListServiceClient/create_reference_list.php - * - * @param CreateReferenceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReferenceList - * - * @throws ApiException Thrown if the API call fails. - */ - public function createReferenceList(CreateReferenceListRequest $request, array $callOptions = []): ReferenceList - { - return $this->startApiCall('CreateReferenceList', $request, $callOptions)->wait(); - } - - /** - * Gets a single reference list. - * - * The async variant is {@see ReferenceListServiceClient::getReferenceListAsync()} - * . - * - * @example samples/V1/ReferenceListServiceClient/get_reference_list.php - * - * @param GetReferenceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReferenceList - * - * @throws ApiException Thrown if the API call fails. - */ - public function getReferenceList(GetReferenceListRequest $request, array $callOptions = []): ReferenceList - { - return $this->startApiCall('GetReferenceList', $request, $callOptions)->wait(); - } - - /** - * Lists a collection of reference lists. - * - * The async variant is - * {@see ReferenceListServiceClient::listReferenceListsAsync()} . - * - * @example samples/V1/ReferenceListServiceClient/list_reference_lists.php - * - * @param ListReferenceListsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReferenceLists(ListReferenceListsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReferenceLists', $request, $callOptions); - } - - /** - * Updates an existing reference list. - * - * The async variant is - * {@see ReferenceListServiceClient::updateReferenceListAsync()} . - * - * @example samples/V1/ReferenceListServiceClient/update_reference_list.php - * - * @param UpdateReferenceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReferenceList - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateReferenceList(UpdateReferenceListRequest $request, array $callOptions = []): ReferenceList - { - return $this->startApiCall('UpdateReferenceList', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php b/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php deleted file mode 100644 index bdbeb342276e..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/Client/RuleServiceClient.php +++ /dev/null @@ -1,733 +0,0 @@ - createRetrohuntAsync(CreateRetrohuntRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRuleAsync(CreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRuleAsync(DeleteRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRetrohuntAsync(GetRetrohuntRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuleAsync(GetRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuleDeploymentAsync(GetRuleDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRetrohuntsAsync(ListRetrohuntsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRuleDeploymentsAsync(ListRuleDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRuleRevisionsAsync(ListRuleRevisionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRulesAsync(ListRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRuleAsync(UpdateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRuleDeploymentAsync(UpdateRuleDeploymentRequest $request, array $optionalArgs = []) - */ -final class RuleServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.chronicle.v1.RuleService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chronicle.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chronicle.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/rule_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/rule_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/rule_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/rule_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_access_scope resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $dataAccessScope - * - * @return string The formatted data_access_scope resource. - */ - public static function dataAccessScopeName(string $project, string $location, string $instance, string $dataAccessScope): string - { - return self::getPathTemplate('dataAccessScope')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'data_access_scope' => $dataAccessScope, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * reference_list resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $referenceList - * - * @return string The formatted reference_list resource. - */ - public static function referenceListName(string $project, string $location, string $instance, string $referenceList): string - { - return self::getPathTemplate('referenceList')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'reference_list' => $referenceList, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a retrohunt - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $rule - * @param string $retrohunt - * - * @return string The formatted retrohunt resource. - */ - public static function retrohuntName(string $project, string $location, string $instance, string $rule, string $retrohunt): string - { - return self::getPathTemplate('retrohunt')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'rule' => $rule, - 'retrohunt' => $retrohunt, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a rule - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $rule - * - * @return string The formatted rule resource. - */ - public static function ruleName(string $project, string $location, string $instance, string $rule): string - { - return self::getPathTemplate('rule')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'rule' => $rule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * rule_deployment resource. - * - * @param string $project - * @param string $location - * @param string $instance - * @param string $rule - * - * @return string The formatted rule_deployment resource. - */ - public static function ruleDeploymentName(string $project, string $location, string $instance, string $rule): string - { - return self::getPathTemplate('ruleDeployment')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - 'rule' => $rule, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataAccessScope: projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope} - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - referenceList: projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list} - * - retrohunt: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt} - * - rule: projects/{project}/locations/{location}/instances/{instance}/rules/{rule} - * - ruleDeployment: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chronicle.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Chronicle\V1\RuleServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new RuleServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create a Retrohunt. - * - * The async variant is {@see RuleServiceClient::createRetrohuntAsync()} . - * - * @example samples/V1/RuleServiceClient/create_retrohunt.php - * - * @param CreateRetrohuntRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRetrohunt(CreateRetrohuntRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRetrohunt', $request, $callOptions)->wait(); - } - - /** - * Creates a new Rule. - * - * The async variant is {@see RuleServiceClient::createRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/create_rule.php - * - * @param CreateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRule(CreateRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('CreateRule', $request, $callOptions)->wait(); - } - - /** - * Deletes a Rule. - * - * The async variant is {@see RuleServiceClient::deleteRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/delete_rule.php - * - * @param DeleteRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteRule(DeleteRuleRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteRule', $request, $callOptions)->wait(); - } - - /** - * Get a Retrohunt. - * - * The async variant is {@see RuleServiceClient::getRetrohuntAsync()} . - * - * @example samples/V1/RuleServiceClient/get_retrohunt.php - * - * @param GetRetrohuntRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Retrohunt - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRetrohunt(GetRetrohuntRequest $request, array $callOptions = []): Retrohunt - { - return $this->startApiCall('GetRetrohunt', $request, $callOptions)->wait(); - } - - /** - * Gets a Rule. - * - * The async variant is {@see RuleServiceClient::getRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/get_rule.php - * - * @param GetRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRule(GetRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('GetRule', $request, $callOptions)->wait(); - } - - /** - * Gets a RuleDeployment. - * - * The async variant is {@see RuleServiceClient::getRuleDeploymentAsync()} . - * - * @example samples/V1/RuleServiceClient/get_rule_deployment.php - * - * @param GetRuleDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RuleDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRuleDeployment(GetRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment - { - return $this->startApiCall('GetRuleDeployment', $request, $callOptions)->wait(); - } - - /** - * List Retrohunts. - * - * The async variant is {@see RuleServiceClient::listRetrohuntsAsync()} . - * - * @example samples/V1/RuleServiceClient/list_retrohunts.php - * - * @param ListRetrohuntsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRetrohunts(ListRetrohuntsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRetrohunts', $request, $callOptions); - } - - /** - * Lists RuleDeployments across all Rules. - * - * The async variant is {@see RuleServiceClient::listRuleDeploymentsAsync()} . - * - * @example samples/V1/RuleServiceClient/list_rule_deployments.php - * - * @param ListRuleDeploymentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRuleDeployments(ListRuleDeploymentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRuleDeployments', $request, $callOptions); - } - - /** - * Lists all revisions of the rule. - * - * The async variant is {@see RuleServiceClient::listRuleRevisionsAsync()} . - * - * @example samples/V1/RuleServiceClient/list_rule_revisions.php - * - * @param ListRuleRevisionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRuleRevisions(ListRuleRevisionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRuleRevisions', $request, $callOptions); - } - - /** - * Lists Rules. - * - * The async variant is {@see RuleServiceClient::listRulesAsync()} . - * - * @example samples/V1/RuleServiceClient/list_rules.php - * - * @param ListRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRules(ListRulesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRules', $request, $callOptions); - } - - /** - * Updates a Rule. - * - * The async variant is {@see RuleServiceClient::updateRuleAsync()} . - * - * @example samples/V1/RuleServiceClient/update_rule.php - * - * @param UpdateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRule(UpdateRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('UpdateRule', $request, $callOptions)->wait(); - } - - /** - * Updates a RuleDeployment. - * Failures are not necessarily atomic. If there is a request to update - * multiple fields, and any update to a single field fails, an error will be - * returned, but other fields may remain successfully updated. - * - * The async variant is {@see RuleServiceClient::updateRuleDeploymentAsync()} . - * - * @example samples/V1/RuleServiceClient/update_rule_deployment.php - * - * @param UpdateRuleDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RuleDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRuleDeployment(UpdateRuleDeploymentRequest $request, array $callOptions = []): RuleDeployment - { - return $this->startApiCall('UpdateRuleDeployment', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 72ec1f023606..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,453 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.chronicle.v1", - "libraryPackage": "Google\\Cloud\\Chronicle\\V1", - "services": { - "BigQueryExportService": { - "clients": { - "grpc": { - "libraryClient": "BigQueryExportServiceGapicClient", - "rpcs": { - "GetBigQueryExport": { - "methods": [ - "getBigQueryExport" - ] - }, - "ProvisionBigQueryExport": { - "methods": [ - "provisionBigQueryExport" - ] - }, - "UpdateBigQueryExport": { - "methods": [ - "updateBigQueryExport" - ] - } - } - } - } - }, - "DashboardQueryService": { - "clients": { - "grpc": { - "libraryClient": "DashboardQueryServiceGapicClient", - "rpcs": { - "ExecuteDashboardQuery": { - "methods": [ - "executeDashboardQuery" - ] - }, - "GetDashboardQuery": { - "methods": [ - "getDashboardQuery" - ] - } - } - } - } - }, - "DashboardChartService": { - "clients": { - "grpc": { - "libraryClient": "DashboardChartServiceGapicClient", - "rpcs": { - "BatchGetDashboardCharts": { - "methods": [ - "batchGetDashboardCharts" - ] - }, - "GetDashboardChart": { - "methods": [ - "getDashboardChart" - ] - } - } - } - } - }, - "DataAccessControlService": { - "clients": { - "grpc": { - "libraryClient": "DataAccessControlServiceGapicClient", - "rpcs": { - "CreateDataAccessLabel": { - "methods": [ - "createDataAccessLabel" - ] - }, - "CreateDataAccessScope": { - "methods": [ - "createDataAccessScope" - ] - }, - "DeleteDataAccessLabel": { - "methods": [ - "deleteDataAccessLabel" - ] - }, - "DeleteDataAccessScope": { - "methods": [ - "deleteDataAccessScope" - ] - }, - "GetDataAccessLabel": { - "methods": [ - "getDataAccessLabel" - ] - }, - "GetDataAccessScope": { - "methods": [ - "getDataAccessScope" - ] - }, - "ListDataAccessLabels": { - "methods": [ - "listDataAccessLabels" - ] - }, - "ListDataAccessScopes": { - "methods": [ - "listDataAccessScopes" - ] - }, - "UpdateDataAccessLabel": { - "methods": [ - "updateDataAccessLabel" - ] - }, - "UpdateDataAccessScope": { - "methods": [ - "updateDataAccessScope" - ] - } - } - } - } - }, - "DataTableService": { - "clients": { - "grpc": { - "libraryClient": "DataTableServiceGapicClient", - "rpcs": { - "BulkCreateDataTableRows": { - "methods": [ - "bulkCreateDataTableRows" - ] - }, - "BulkGetDataTableRows": { - "methods": [ - "bulkGetDataTableRows" - ] - }, - "BulkReplaceDataTableRows": { - "methods": [ - "bulkReplaceDataTableRows" - ] - }, - "BulkUpdateDataTableRows": { - "methods": [ - "bulkUpdateDataTableRows" - ] - }, - "CreateDataTable": { - "methods": [ - "createDataTable" - ] - }, - "CreateDataTableRow": { - "methods": [ - "createDataTableRow" - ] - }, - "DeleteDataTable": { - "methods": [ - "deleteDataTable" - ] - }, - "DeleteDataTableRow": { - "methods": [ - "deleteDataTableRow" - ] - }, - "GetDataTable": { - "methods": [ - "getDataTable" - ] - }, - "GetDataTableOperationErrors": { - "methods": [ - "getDataTableOperationErrors" - ] - }, - "GetDataTableRow": { - "methods": [ - "getDataTableRow" - ] - }, - "ListDataTableRows": { - "methods": [ - "listDataTableRows" - ] - }, - "ListDataTables": { - "methods": [ - "listDataTables" - ] - }, - "UpdateDataTable": { - "methods": [ - "updateDataTable" - ] - }, - "UpdateDataTableRow": { - "methods": [ - "updateDataTableRow" - ] - } - } - } - } - }, - "EntityService": { - "clients": { - "grpc": { - "libraryClient": "EntityServiceGapicClient", - "rpcs": { - "CreateWatchlist": { - "methods": [ - "createWatchlist" - ] - }, - "DeleteWatchlist": { - "methods": [ - "deleteWatchlist" - ] - }, - "GetWatchlist": { - "methods": [ - "getWatchlist" - ] - }, - "ListWatchlists": { - "methods": [ - "listWatchlists" - ] - }, - "UpdateWatchlist": { - "methods": [ - "updateWatchlist" - ] - } - } - } - } - }, - "NativeDashboardService": { - "clients": { - "grpc": { - "libraryClient": "NativeDashboardServiceGapicClient", - "rpcs": { - "AddChart": { - "methods": [ - "addChart" - ] - }, - "CreateNativeDashboard": { - "methods": [ - "createNativeDashboard" - ] - }, - "DeleteNativeDashboard": { - "methods": [ - "deleteNativeDashboard" - ] - }, - "DuplicateChart": { - "methods": [ - "duplicateChart" - ] - }, - "DuplicateNativeDashboard": { - "methods": [ - "duplicateNativeDashboard" - ] - }, - "EditChart": { - "methods": [ - "editChart" - ] - }, - "ExportNativeDashboards": { - "methods": [ - "exportNativeDashboards" - ] - }, - "GetNativeDashboard": { - "methods": [ - "getNativeDashboard" - ] - }, - "ImportNativeDashboards": { - "methods": [ - "importNativeDashboards" - ] - }, - "ListNativeDashboards": { - "methods": [ - "listNativeDashboards" - ] - }, - "RemoveChart": { - "methods": [ - "removeChart" - ] - }, - "UpdateNativeDashboard": { - "methods": [ - "updateNativeDashboard" - ] - } - } - } - } - }, - "FeaturedContentNativeDashboardService": { - "clients": { - "grpc": { - "libraryClient": "FeaturedContentNativeDashboardServiceGapicClient", - "rpcs": { - "GetFeaturedContentNativeDashboard": { - "methods": [ - "getFeaturedContentNativeDashboard" - ] - }, - "InstallFeaturedContentNativeDashboard": { - "methods": [ - "installFeaturedContentNativeDashboard" - ] - }, - "ListFeaturedContentNativeDashboards": { - "methods": [ - "listFeaturedContentNativeDashboards" - ] - } - } - } - } - }, - "InstanceService": { - "clients": { - "grpc": { - "libraryClient": "InstanceServiceGapicClient", - "rpcs": { - "GetInstance": { - "methods": [ - "getInstance" - ] - } - } - } - } - }, - "ReferenceListService": { - "clients": { - "grpc": { - "libraryClient": "ReferenceListServiceGapicClient", - "rpcs": { - "CreateReferenceList": { - "methods": [ - "createReferenceList" - ] - }, - "GetReferenceList": { - "methods": [ - "getReferenceList" - ] - }, - "ListReferenceLists": { - "methods": [ - "listReferenceLists" - ] - }, - "UpdateReferenceList": { - "methods": [ - "updateReferenceList" - ] - } - } - } - } - }, - "RuleService": { - "clients": { - "grpc": { - "libraryClient": "RuleServiceGapicClient", - "rpcs": { - "CreateRetrohunt": { - "methods": [ - "createRetrohunt" - ] - }, - "CreateRule": { - "methods": [ - "createRule" - ] - }, - "DeleteRule": { - "methods": [ - "deleteRule" - ] - }, - "GetRetrohunt": { - "methods": [ - "getRetrohunt" - ] - }, - "GetRule": { - "methods": [ - "getRule" - ] - }, - "GetRuleDeployment": { - "methods": [ - "getRuleDeployment" - ] - }, - "ListRetrohunts": { - "methods": [ - "listRetrohunts" - ] - }, - "ListRuleDeployments": { - "methods": [ - "listRuleDeployments" - ] - }, - "ListRuleRevisions": { - "methods": [ - "listRuleRevisions" - ] - }, - "ListRules": { - "methods": [ - "listRules" - ] - }, - "UpdateRule": { - "methods": [ - "updateRule" - ] - }, - "UpdateRuleDeployment": { - "methods": [ - "updateRuleDeployment" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json deleted file mode 100644 index 31595fe9e655..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_client_config.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.DashboardChartService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "BatchGetDashboardCharts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDashboardChart": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php deleted file mode 100644 index 9a91c348c9c9..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_descriptor_config.php +++ /dev/null @@ -1,56 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DashboardChartService' => [ - 'BatchGetDashboardCharts' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BatchGetDashboardChartsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetDashboardChart' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DashboardChart', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php deleted file mode 100644 index f178ba0b2d48..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_chart_service_rest_client_config.php +++ /dev/null @@ -1,98 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DashboardChartService' => [ - 'BatchGetDashboardCharts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dashboardCharts:batchGet', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetDashboardChart' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dashboardCharts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json deleted file mode 100644 index 4490dae622f1..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_client_config.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.DashboardQueryService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 1800000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 1800000, - "total_timeout_millis": 1800000 - } - }, - "methods": { - "ExecuteDashboardQuery": { - "timeout_millis": 1800000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetDashboardQuery": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php deleted file mode 100644 index e4733997aaa5..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_descriptor_config.php +++ /dev/null @@ -1,57 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DashboardQueryService' => [ - 'ExecuteDashboardQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ExecuteDashboardQueryResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetDashboardQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DashboardQuery', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', - 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php deleted file mode 100644 index 44abdc791cc9..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/dashboard_query_service_rest_client_config.php +++ /dev/null @@ -1,99 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DashboardQueryService' => [ - 'ExecuteDashboardQuery' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dashboardQueries:execute', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetDashboardQuery' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dashboardQueries/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json deleted file mode 100644 index 93ed52f8b477..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_client_config.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.DataAccessControlService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "CreateDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "GetDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataAccessLabels": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataAccessScopes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataAccessLabel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "UpdateDataAccessScope": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php deleted file mode 100644 index c8a4082ca4c9..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_descriptor_config.php +++ /dev/null @@ -1,171 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataAccessControlService' => [ - 'CreateDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAccessLabels' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAccessLabels', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessLabelsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAccessScopes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAccessScopes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataAccessScopesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataAccessLabel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessLabel', - 'headerParams' => [ - [ - 'keyName' => 'data_access_label.name', - 'fieldAccessors' => [ - 'getDataAccessLabel', - 'getName', - ], - ], - ], - ], - 'UpdateDataAccessScope' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataAccessScope', - 'headerParams' => [ - [ - 'keyName' => 'data_access_scope.name', - 'fieldAccessors' => [ - 'getDataAccessScope', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dataAccessLabel' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}', - 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php deleted file mode 100644 index 5541511b522c..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_access_control_service_rest_client_config.php +++ /dev/null @@ -1,198 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataAccessControlService' => [ - 'CreateDataAccessLabel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', - 'body' => 'data_access_label', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_access_label_id', - ], - ], - 'CreateDataAccessScope' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', - 'body' => 'data_access_scope', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_access_scope_id', - ], - ], - 'DeleteDataAccessLabel' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAccessScope' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessLabel' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessLabels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAccessScope' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataAccessScopes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAccessLabels' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessLabels', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAccessScopes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataAccessScopes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataAccessLabel' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_access_label.name=projects/*/locations/*/instances/*/dataAccessLabels/*}', - 'body' => 'data_access_label', - 'placeholders' => [ - 'data_access_label.name' => [ - 'getters' => [ - 'getDataAccessLabel', - 'getName', - ], - ], - ], - ], - 'UpdateDataAccessScope' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_access_scope.name=projects/*/locations/*/instances/*/dataAccessScopes/*}', - 'body' => 'data_access_scope', - 'placeholders' => [ - 'data_access_scope.name' => [ - 'getters' => [ - 'getDataAccessScope', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json deleted file mode 100644 index 2aca06ccfede..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_client_config.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.DataTableService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_5_codes": [ - "UNAVAILABLE" - ], - "no_retry_5_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_5_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - }, - "no_retry_5_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "BulkCreateDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "BulkGetDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - }, - "BulkReplaceDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "BulkUpdateDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "CreateDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "CreateDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "GetDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - }, - "GetDataTableOperationErrors": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - }, - "GetDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - }, - "ListDataTableRows": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - }, - "ListDataTables": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - }, - "UpdateDataTable": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "UpdateDataTableRow": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php deleted file mode 100644 index 8e920d69d520..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_descriptor_config.php +++ /dev/null @@ -1,233 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataTableService' => [ - 'BulkCreateDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkCreateDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BulkGetDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkGetDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BulkReplaceDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkReplaceDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BulkUpdateDataTableRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\BulkUpdateDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableOperationErrors' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableOperationErrors', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataTableRows' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataTableRows', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTableRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataTables' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataTables', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListDataTablesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTable', - 'headerParams' => [ - [ - 'keyName' => 'data_table.name', - 'fieldAccessors' => [ - 'getDataTable', - 'getName', - ], - ], - ], - ], - 'UpdateDataTableRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DataTableRow', - 'headerParams' => [ - [ - 'keyName' => 'data_table_row.name', - 'fieldAccessors' => [ - 'getDataTableRow', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', - 'dataTable' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}', - 'dataTableOperationErrors' => 'projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}', - 'dataTableRow' => 'projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php deleted file mode 100644 index b16af4a2aa89..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/data_table_service_rest_client_config.php +++ /dev/null @@ -1,254 +0,0 @@ - [ - 'google.cloud.chronicle.v1.DataTableService' => [ - 'BulkCreateDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkCreate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BulkGetDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkGet', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BulkReplaceDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkReplace', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BulkUpdateDataTableRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows:bulkUpdate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataTable' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', - 'body' => 'data_table', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_table_id', - ], - ], - 'CreateDataTableRow' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', - 'body' => 'data_table_row', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataTable' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataTableRow' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTable' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableOperationErrors' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTableOperationErrors/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTableRow' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataTableRows' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/dataTables/*}/dataTableRows', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataTables' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/dataTables', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataTable' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_table.name=projects/*/locations/*/instances/*/dataTables/*}', - 'body' => 'data_table', - 'placeholders' => [ - 'data_table.name' => [ - 'getters' => [ - 'getDataTable', - 'getName', - ], - ], - ], - ], - 'UpdateDataTableRow' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_table_row.name=projects/*/locations/*/instances/*/dataTables/*/dataTableRows/*}', - 'body' => 'data_table_row', - 'placeholders' => [ - 'data_table_row.name' => [ - 'getters' => [ - 'getDataTableRow', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json deleted file mode 100644 index 5eda360a775b..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_client_config.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.EntityService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_3_codes": [ - "UNAVAILABLE" - ], - "no_retry_4_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_3_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 90000, - "initial_rpc_timeout_millis": 90000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 90000, - "total_timeout_millis": 90000 - }, - "no_retry_4_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 90000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 90000, - "total_timeout_millis": 90000 - } - }, - "methods": { - "CreateWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "DeleteWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "GetWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "ListWatchlists": { - "timeout_millis": 90000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "UpdateWatchlist": { - "timeout_millis": 90000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php deleted file mode 100644 index 3e621e9503b3..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_descriptor_config.php +++ /dev/null @@ -1,101 +0,0 @@ - [ - 'google.cloud.chronicle.v1.EntityService' => [ - 'CreateWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListWatchlists' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWatchlists', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListWatchlistsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateWatchlist' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Watchlist', - 'headerParams' => [ - [ - 'keyName' => 'watchlist.name', - 'fieldAccessors' => [ - 'getWatchlist', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'watchlist' => 'projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php deleted file mode 100644 index eebd35bba736..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/entity_service_rest_client_config.php +++ /dev/null @@ -1,134 +0,0 @@ - [ - 'google.cloud.chronicle.v1.EntityService' => [ - 'CreateWatchlist' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', - 'body' => 'watchlist', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteWatchlist' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWatchlist' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/watchlists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListWatchlists' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/watchlists', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateWatchlist' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{watchlist.name=projects/*/locations/*/instances/*/watchlists/*}', - 'body' => 'watchlist', - 'placeholders' => [ - 'watchlist.name' => [ - 'getters' => [ - 'getWatchlist', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json deleted file mode 100644 index f06003b592c2..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetFeaturedContentNativeDashboard": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "InstallFeaturedContentNativeDashboard": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListFeaturedContentNativeDashboards": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php deleted file mode 100644 index 7a4c36e97ba9..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_descriptor_config.php +++ /dev/null @@ -1,80 +0,0 @@ - [ - 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService' => [ - 'GetFeaturedContentNativeDashboard' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\FeaturedContentNativeDashboard', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InstallFeaturedContentNativeDashboard' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\InstallFeaturedContentNativeDashboardResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListFeaturedContentNativeDashboards' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFeaturedContentNativeDashboards', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListFeaturedContentNativeDashboardsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'contentHub' => 'projects/{project}/locations/{location}/instances/{instance}/contentHub', - 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', - 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', - 'featuredContentNativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'nativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php deleted file mode 100644 index 414c0d943156..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/featured_content_native_dashboard_service_rest_client_config.php +++ /dev/null @@ -1,110 +0,0 @@ - [ - 'google.cloud.chronicle.v1.FeaturedContentNativeDashboardService' => [ - 'GetFeaturedContentNativeDashboard' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InstallFeaturedContentNativeDashboard' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/contentHub/featuredContentNativeDashboards/*}:install', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListFeaturedContentNativeDashboards' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/contentHub}/featuredContentNativeDashboards', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json deleted file mode 100644 index 5de3bac58b09..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_client_config.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.InstanceService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetInstance": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php deleted file mode 100644 index 7f7d60f75b19..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_descriptor_config.php +++ /dev/null @@ -1,43 +0,0 @@ - [ - 'google.cloud.chronicle.v1.InstanceService' => [ - 'GetInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Instance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php deleted file mode 100644 index d4685582daa0..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/instance_service_rest_client_config.php +++ /dev/null @@ -1,87 +0,0 @@ - [ - 'google.cloud.chronicle.v1.InstanceService' => [ - 'GetInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json deleted file mode 100644 index 9de9c63abe1d..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_client_config.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.NativeDashboardService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AddChart": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "CreateNativeDashboard": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteNativeDashboard": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DuplicateChart": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DuplicateNativeDashboard": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "EditChart": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "ExportNativeDashboards": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetNativeDashboard": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ImportNativeDashboards": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "ListNativeDashboards": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RemoveChart": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "UpdateNativeDashboard": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php deleted file mode 100644 index edf23c87150a..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_descriptor_config.php +++ /dev/null @@ -1,187 +0,0 @@ - [ - 'google.cloud.chronicle.v1.NativeDashboardService' => [ - 'AddChart' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\AddChartResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateNativeDashboard' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteNativeDashboard' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DuplicateChart' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\DuplicateChartResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DuplicateNativeDashboard' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'EditChart' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\EditChartResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExportNativeDashboards' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ExportNativeDashboardsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetNativeDashboard' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ImportNativeDashboards' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ImportNativeDashboardsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListNativeDashboards' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getNativeDashboards', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListNativeDashboardsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RemoveChart' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateNativeDashboard' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\NativeDashboard', - 'headerParams' => [ - [ - 'keyName' => 'native_dashboard.name', - 'fieldAccessors' => [ - 'getNativeDashboard', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dashboardChart' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}', - 'dashboardQuery' => 'projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'nativeDashboard' => 'projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php deleted file mode 100644 index db983134a840..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/native_dashboard_service_rest_client_config.php +++ /dev/null @@ -1,221 +0,0 @@ - [ - 'google.cloud.chronicle.v1.NativeDashboardService' => [ - 'AddChart' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:addChart', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateNativeDashboard' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards', - 'body' => 'native_dashboard', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteNativeDashboard' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DuplicateChart' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicateChart', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DuplicateNativeDashboard' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:duplicate', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'EditChart' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportNativeDashboards' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:export', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetNativeDashboard' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ImportNativeDashboards' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards:import', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListNativeDashboards' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/nativeDashboards', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RemoveChart' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:removeChart', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateNativeDashboard' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{native_dashboard.name=projects/*/locations/*/instances/*/nativeDashboards/*}', - 'body' => 'native_dashboard', - 'placeholders' => [ - 'native_dashboard.name' => [ - 'getters' => [ - 'getNativeDashboard', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json deleted file mode 100644 index 731c05c97068..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_client_config.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.ReferenceListService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateReferenceList": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "GetReferenceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListReferenceLists": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateReferenceList": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php deleted file mode 100644 index 388793580afd..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_descriptor_config.php +++ /dev/null @@ -1,89 +0,0 @@ - [ - 'google.cloud.chronicle.v1.ReferenceListService' => [ - 'CreateReferenceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetReferenceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListReferenceLists' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReferenceLists', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListReferenceListsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateReferenceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ReferenceList', - 'headerParams' => [ - [ - 'keyName' => 'reference_list.name', - 'fieldAccessors' => [ - 'getReferenceList', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php deleted file mode 100644 index 9763cbfd0f4d..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/reference_list_service_rest_client_config.php +++ /dev/null @@ -1,126 +0,0 @@ - [ - 'google.cloud.chronicle.v1.ReferenceListService' => [ - 'CreateReferenceList' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', - 'body' => 'reference_list', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'reference_list_id', - ], - ], - 'GetReferenceList' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListReferenceLists' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/referenceLists', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateReferenceList' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{reference_list.name=projects/*/locations/*/instances/*/referenceLists/*}', - 'body' => 'reference_list', - 'placeholders' => [ - 'reference_list.name' => [ - 'getters' => [ - 'getReferenceList', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json deleted file mode 100644 index 46102ab67fdf..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_client_config.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "interfaces": { - "google.cloud.chronicle.v1.RuleService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "retry_policy_4_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_codes": [], - "no_retry_3_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "retry_policy_4_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 600000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_3_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "CreateRetrohunt": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" - }, - "CreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "GetRetrohunt": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRuleDeployment": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "ListRetrohunts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRuleDeployments": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "ListRuleRevisions": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "ListRules": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "UpdateRule": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" - }, - "UpdateRuleDeployment": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" - } - } - } - } -} diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php deleted file mode 100644 index 94e1a30f30f7..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_descriptor_config.php +++ /dev/null @@ -1,221 +0,0 @@ - [ - 'google.cloud.chronicle.v1.RuleService' => [ - 'CreateRetrohunt' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Chronicle\V1\Retrohunt', - 'metadataReturnType' => '\Google\Cloud\Chronicle\V1\RetrohuntMetadata', - 'initialPollDelayMillis' => '1000', - 'pollDelayMultiplier' => '2.0', - 'maxPollDelayMillis' => '10000', - 'totalPollTimeoutMillis' => '900000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRetrohunt' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Retrohunt', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRuleDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRetrohunts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRetrohunts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRetrohuntsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleDeployments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRuleDeployments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleDeploymentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleRevisions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRuleRevisionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRules' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\ListRulesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'rule.name', - 'fieldAccessors' => [ - 'getRule', - 'getName', - ], - ], - ], - ], - 'UpdateRuleDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Chronicle\V1\RuleDeployment', - 'headerParams' => [ - [ - 'keyName' => 'rule_deployment.name', - 'fieldAccessors' => [ - 'getRuleDeployment', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'dataAccessScope' => 'projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}', - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'referenceList' => 'projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}', - 'retrohunt' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}', - 'rule' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}', - 'ruleDeployment' => 'projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment', - ], - ], - ], -]; diff --git a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php b/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php deleted file mode 100644 index 0da0c5c50559..000000000000 --- a/owl-bot-staging/Chronicle/v1/src/V1/resources/rule_service_rest_client_config.php +++ /dev/null @@ -1,217 +0,0 @@ - [ - 'google.cloud.chronicle.v1.RuleService' => [ - 'CreateRetrohunt' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', - 'body' => 'retrohunt', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRule' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', - 'body' => 'rule', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteRule' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRetrohunt' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRule' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRuleDeployment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRetrohunts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleDeployments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRuleRevisions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/rules/*}:listRevisions', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRules' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/rules', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateRule' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}', - 'body' => 'rule', - 'placeholders' => [ - 'rule.name' => [ - 'getters' => [ - 'getRule', - 'getName', - ], - ], - ], - ], - 'UpdateRuleDeployment' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}', - 'body' => 'rule_deployment', - 'placeholders' => [ - 'rule_deployment.name' => [ - 'getters' => [ - 'getRuleDeployment', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php deleted file mode 100644 index db0110e9fdf8..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardChartServiceClientTest.php +++ /dev/null @@ -1,241 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DashboardChartServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DashboardChartServiceClient($options); - } - - /** @test */ - public function batchGetDashboardChartsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetDashboardChartsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $formattedNames = [ - $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), - ]; - $request = (new BatchGetDashboardChartsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchGetDashboardCharts($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetDashboardChartsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $formattedNames = [ - $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), - ]; - $request = (new BatchGetDashboardChartsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - try { - $gapicClient->batchGetDashboardCharts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDashboardChartTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $nativeDashboard = 'nativeDashboard-671726484'; - $etag = 'etag3123477'; - $expectedResponse = new DashboardChart(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setNativeDashboard($nativeDashboard); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new GetDashboardChartRequest()) - ->setName($formattedName); - $response = $gapicClient->getDashboardChart($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/GetDashboardChart', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDashboardChartExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new GetDashboardChartRequest()) - ->setName($formattedName); - try { - $gapicClient->getDashboardChart($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetDashboardChartsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetDashboardChartsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $formattedNames = [ - $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'), - ]; - $request = (new BatchGetDashboardChartsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchGetDashboardChartsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DashboardChartService/BatchGetDashboardCharts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php deleted file mode 100644 index 669772c5a4aa..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DashboardQueryServiceClientTest.php +++ /dev/null @@ -1,246 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DashboardQueryServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DashboardQueryServiceClient($options); - } - - /** @test */ - public function executeDashboardQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ExecuteDashboardQueryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $query = new DashboardQuery(); - $queryQuery = 'queryQuery-181056288'; - $query->setQuery($queryQuery); - $queryInput = new Input(); - $query->setInput($queryInput); - $request = (new ExecuteDashboardQueryRequest()) - ->setParent($formattedParent) - ->setQuery($query); - $response = $gapicClient->executeDashboardQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function executeDashboardQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $query = new DashboardQuery(); - $queryQuery = 'queryQuery-181056288'; - $query->setQuery($queryQuery); - $queryInput = new Input(); - $query->setInput($queryInput); - $request = (new ExecuteDashboardQueryRequest()) - ->setParent($formattedParent) - ->setQuery($query); - try { - $gapicClient->executeDashboardQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDashboardQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $query = 'query107944136'; - $dashboardChart = 'dashboardChart-1592924557'; - $etag = 'etag3123477'; - $expectedResponse = new DashboardQuery(); - $expectedResponse->setName($name2); - $expectedResponse->setQuery($query); - $expectedResponse->setDashboardChart($dashboardChart); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); - $request = (new GetDashboardQueryRequest()) - ->setName($formattedName); - $response = $gapicClient->getDashboardQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/GetDashboardQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDashboardQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dashboardQueryName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[QUERY]'); - $request = (new GetDashboardQueryRequest()) - ->setName($formattedName); - try { - $gapicClient->getDashboardQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function executeDashboardQueryAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ExecuteDashboardQueryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $query = new DashboardQuery(); - $queryQuery = 'queryQuery-181056288'; - $query->setQuery($queryQuery); - $queryInput = new Input(); - $query->setInput($queryInput); - $request = (new ExecuteDashboardQueryRequest()) - ->setParent($formattedParent) - ->setQuery($query); - $response = $gapicClient->executeDashboardQueryAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DashboardQueryService/ExecuteDashboardQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php deleted file mode 100644 index bc7163b93a3f..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataAccessControlServiceClientTest.php +++ /dev/null @@ -1,866 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataAccessControlServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataAccessControlServiceClient($options); - } - - /** @test */ - public function createDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessLabel = new DataAccessLabel(); - $dataAccessLabelId = 'dataAccessLabelId-1688134612'; - $request = (new CreateDataAccessLabelRequest()) - ->setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - $response = $gapicClient->createDataAccessLabel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabel(); - $this->assertProtobufEquals($dataAccessLabel, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabelId(); - $this->assertProtobufEquals($dataAccessLabelId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessLabel = new DataAccessLabel(); - $dataAccessLabelId = 'dataAccessLabelId-1688134612'; - $request = (new CreateDataAccessLabelRequest()) - ->setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - try { - $gapicClient->createDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $allowAll = false; - $expectedResponse = new DataAccessScope(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $expectedResponse->setAllowAll($allowAll); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $dataAccessScopeId = 'dataAccessScopeId-216227636'; - $request = (new CreateDataAccessScopeRequest()) - ->setParent($formattedParent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - $response = $gapicClient->createDataAccessScope($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAccessScope(); - $this->assertProtobufEquals($dataAccessScope, $actualValue); - $actualValue = $actualRequestObject->getDataAccessScopeId(); - $this->assertProtobufEquals($dataAccessScopeId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $dataAccessScopeId = 'dataAccessScopeId-216227636'; - $request = (new CreateDataAccessScopeRequest()) - ->setParent($formattedParent) - ->setDataAccessScope($dataAccessScope) - ->setDataAccessScopeId($dataAccessScopeId); - try { - $gapicClient->createDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new DeleteDataAccessLabelRequest()) - ->setName($formattedName); - $gapicClient->deleteDataAccessLabel($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new DeleteDataAccessLabelRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new DeleteDataAccessScopeRequest()) - ->setName($formattedName); - $gapicClient->deleteDataAccessScope($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/DeleteDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new DeleteDataAccessScopeRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new GetDataAccessLabelRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAccessLabel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessLabelName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_LABEL]'); - $request = (new GetDataAccessLabelRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $allowAll = false; - $expectedResponse = new DataAccessScope(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $expectedResponse->setAllowAll($allowAll); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new GetDataAccessScopeRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAccessScope($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/GetDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $request = (new GetDataAccessScopeRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessLabelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAccessLabelsElement = new DataAccessLabel(); - $dataAccessLabels = [ - $dataAccessLabelsElement, - ]; - $expectedResponse = new ListDataAccessLabelsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAccessLabels($dataAccessLabels); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessLabelsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAccessLabels($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAccessLabels()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessLabels', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessLabelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessLabelsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAccessLabels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessScopesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $globalDataAccessScopeGranted = true; - $nextPageToken = ''; - $dataAccessScopesElement = new DataAccessScope(); - $dataAccessScopes = [ - $dataAccessScopesElement, - ]; - $expectedResponse = new ListDataAccessScopesResponse(); - $expectedResponse->setGlobalDataAccessScopeGranted($globalDataAccessScopeGranted); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAccessScopes($dataAccessScopes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessScopesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAccessScopes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAccessScopes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/ListDataAccessScopes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAccessScopesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataAccessScopesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAccessScopes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessLabelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $dataAccessLabel = new DataAccessLabel(); - $request = (new UpdateDataAccessLabelRequest()) - ->setDataAccessLabel($dataAccessLabel); - $response = $gapicClient->updateDataAccessLabel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getDataAccessLabel(); - $this->assertProtobufEquals($dataAccessLabel, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessLabelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataAccessLabel = new DataAccessLabel(); - $request = (new UpdateDataAccessLabelRequest()) - ->setDataAccessLabel($dataAccessLabel); - try { - $gapicClient->updateDataAccessLabel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessScopeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $allowAll = false; - $expectedResponse = new DataAccessScope(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $expectedResponse->setAllowAll($allowAll); - $transport->addResponse($expectedResponse); - // Mock request - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $request = (new UpdateDataAccessScopeRequest()) - ->setDataAccessScope($dataAccessScope); - $response = $gapicClient->updateDataAccessScope($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/UpdateDataAccessScope', $actualFuncCall); - $actualValue = $actualRequestObject->getDataAccessScope(); - $this->assertProtobufEquals($dataAccessScope, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataAccessScopeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataAccessScope = new DataAccessScope(); - $dataAccessScopeName = $gapicClient->dataAccessScopeName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_ACCESS_SCOPE]'); - $dataAccessScope->setName($dataAccessScopeName); - $request = (new UpdateDataAccessScopeRequest()) - ->setDataAccessScope($dataAccessScope); - try { - $gapicClient->updateDataAccessScope($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataAccessLabelAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $udmQuery = 'udmQuery-2050033401'; - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $author = 'author-1406328437'; - $lastEditor = 'lastEditor1620154166'; - $description = 'description-1724546052'; - $expectedResponse = new DataAccessLabel(); - $expectedResponse->setUdmQuery($udmQuery); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAuthor($author); - $expectedResponse->setLastEditor($lastEditor); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataAccessLabel = new DataAccessLabel(); - $dataAccessLabelId = 'dataAccessLabelId-1688134612'; - $request = (new CreateDataAccessLabelRequest()) - ->setParent($formattedParent) - ->setDataAccessLabel($dataAccessLabel) - ->setDataAccessLabelId($dataAccessLabelId); - $response = $gapicClient->createDataAccessLabelAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataAccessControlService/CreateDataAccessLabel', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabel(); - $this->assertProtobufEquals($dataAccessLabel, $actualValue); - $actualValue = $actualRequestObject->getDataAccessLabelId(); - $this->assertProtobufEquals($dataAccessLabelId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php deleted file mode 100644 index 125ba2f76d68..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/DataTableServiceClientTest.php +++ /dev/null @@ -1,1178 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataTableServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataTableServiceClient($options); - } - - /** @test */ - public function bulkCreateDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkCreateDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkCreateDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkCreateDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkCreateDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkGetDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkGetDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkGetDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkGetDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkGetDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkGetDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkGetDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkGetDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkReplaceDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkReplaceDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkReplaceDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkReplaceDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkReplaceDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkReplaceDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkReplaceDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkReplaceDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkUpdateDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkUpdateDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkUpdateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkUpdateDataTableRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkUpdateDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkUpdateDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkUpdateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->bulkUpdateDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $dataTableUuid = 'dataTableUuid-1818199743'; - $ruleAssociationsCount = 1522562875; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $approximateRowCount = 297926913; - $expectedResponse = new DataTable(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDataTableUuid($dataTableUuid); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $expectedResponse->setApproximateRowCount($approximateRowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $dataTableId = 'dataTableId-319210463'; - $request = (new CreateDataTableRequest()) - ->setParent($formattedParent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - $response = $gapicClient->createDataTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataTable(); - $this->assertProtobufEquals($dataTable, $actualValue); - $actualValue = $actualRequestObject->getDataTableId(); - $this->assertProtobufEquals($dataTableId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $dataTableId = 'dataTableId-319210463'; - $request = (new CreateDataTableRequest()) - ->setParent($formattedParent) - ->setDataTable($dataTable) - ->setDataTableId($dataTableId); - try { - $gapicClient->createDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $expectedResponse = new DataTableRow(); - $expectedResponse->setName($name); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new CreateDataTableRowRequest()) - ->setParent($formattedParent) - ->setDataTableRow($dataTableRow); - $response = $gapicClient->createDataTableRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/CreateDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataTableRow(); - $this->assertProtobufEquals($dataTableRow, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new CreateDataTableRowRequest()) - ->setParent($formattedParent) - ->setDataTableRow($dataTableRow); - try { - $gapicClient->createDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new DeleteDataTableRequest()) - ->setName($formattedName); - $gapicClient->deleteDataTable($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new DeleteDataTableRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new DeleteDataTableRowRequest()) - ->setName($formattedName); - $gapicClient->deleteDataTableRow($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/DeleteDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new DeleteDataTableRowRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $dataTableUuid = 'dataTableUuid-1818199743'; - $ruleAssociationsCount = 1522562875; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $approximateRowCount = 297926913; - $expectedResponse = new DataTable(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDataTableUuid($dataTableUuid); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $expectedResponse->setApproximateRowCount($approximateRowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new GetDataTableRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new GetDataTableRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableOperationErrorsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new DataTableOperationErrors(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); - $request = (new GetDataTableOperationErrorsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataTableOperationErrors($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableOperationErrors', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableOperationErrorsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableOperationErrorsName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE_OPERATION_ERRORS]'); - $request = (new GetDataTableOperationErrorsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataTableOperationErrors($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $expectedResponse = new DataTableRow(); - $expectedResponse->setName($name2); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new GetDataTableRowRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataTableRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/GetDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataTableRowName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]', '[DATA_TABLE_ROW]'); - $request = (new GetDataTableRowRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTableRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataTableRowsElement = new DataTableRow(); - $dataTableRows = [ - $dataTableRowsElement, - ]; - $expectedResponse = new ListDataTableRowsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataTableRows($dataTableRows); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new ListDataTableRowsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataTableRows($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataTableRows()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTableRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $request = (new ListDataTableRowsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataTableRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTablesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataTablesElement = new DataTable(); - $dataTables = [ - $dataTablesElement, - ]; - $expectedResponse = new ListDataTablesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataTables($dataTables); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataTablesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataTables($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataTables()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/ListDataTables', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTablesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListDataTablesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataTables($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $dataTableUuid = 'dataTableUuid-1818199743'; - $ruleAssociationsCount = 1522562875; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $approximateRowCount = 297926913; - $expectedResponse = new DataTable(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDataTableUuid($dataTableUuid); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $expectedResponse->setApproximateRowCount($approximateRowCount); - $transport->addResponse($expectedResponse); - // Mock request - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $request = (new UpdateDataTableRequest()) - ->setDataTable($dataTable); - $response = $gapicClient->updateDataTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTable', $actualFuncCall); - $actualValue = $actualRequestObject->getDataTable(); - $this->assertProtobufEquals($dataTable, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataTable = new DataTable(); - $dataTableDescription = 'dataTableDescription924959512'; - $dataTable->setDescription($dataTableDescription); - $request = (new UpdateDataTableRequest()) - ->setDataTable($dataTable); - try { - $gapicClient->updateDataTable($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $rowTimeToLive = 'rowTimeToLive1109069571'; - $expectedResponse = new DataTableRow(); - $expectedResponse->setName($name); - $expectedResponse->setRowTimeToLive($rowTimeToLive); - $transport->addResponse($expectedResponse); - // Mock request - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new UpdateDataTableRowRequest()) - ->setDataTableRow($dataTableRow); - $response = $gapicClient->updateDataTableRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/UpdateDataTableRow', $actualFuncCall); - $actualValue = $actualRequestObject->getDataTableRow(); - $this->assertProtobufEquals($dataTableRow, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataTableRowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataTableRow = new DataTableRow(); - $dataTableRowValues = []; - $dataTableRow->setValues($dataTableRowValues); - $request = (new UpdateDataTableRowRequest()) - ->setDataTableRow($dataTableRow); - try { - $gapicClient->updateDataTableRow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function bulkCreateDataTableRowsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BulkCreateDataTableRowsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTableName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DATA_TABLE]'); - $requests = []; - $request = (new BulkCreateDataTableRowsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->bulkCreateDataTableRowsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.DataTableService/BulkCreateDataTableRows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php deleted file mode 100644 index ae91a174beb0..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/EntityServiceClientTest.php +++ /dev/null @@ -1,477 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EntityServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EntityServiceClient($options); - } - - /** @test */ - public function createWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - $response = $gapicClient->createWatchlist($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWatchlist(); - $this->assertProtobufEquals($watchlist, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - try { - $gapicClient->createWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new DeleteWatchlistRequest()) - ->setName($formattedName); - $gapicClient->deleteWatchlist($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/DeleteWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new DeleteWatchlistRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new GetWatchlistRequest()) - ->setName($formattedName); - $response = $gapicClient->getWatchlist($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/GetWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->watchlistName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[WATCHLIST]'); - $request = (new GetWatchlistRequest()) - ->setName($formattedName); - try { - $gapicClient->getWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWatchlistsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $watchlistsElement = new Watchlist(); - $watchlists = [ - $watchlistsElement, - ]; - $expectedResponse = new ListWatchlistsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWatchlists($watchlists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListWatchlistsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWatchlists($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWatchlists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/ListWatchlists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWatchlistsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListWatchlistsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWatchlists($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWatchlistTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new UpdateWatchlistRequest()) - ->setWatchlist($watchlist); - $response = $gapicClient->updateWatchlist($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/UpdateWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getWatchlist(); - $this->assertProtobufEquals($watchlist, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWatchlistExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new UpdateWatchlistRequest()) - ->setWatchlist($watchlist); - try { - $gapicClient->updateWatchlist($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWatchlistAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $multiplyingFactor = 1981784; - $expectedResponse = new Watchlist(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMultiplyingFactor($multiplyingFactor); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $watchlist = new Watchlist(); - $watchlistDisplayName = 'watchlistDisplayName2018509376'; - $watchlist->setDisplayName($watchlistDisplayName); - $watchlistEntityPopulationMechanism = new EntityPopulationMechanism(); - $watchlist->setEntityPopulationMechanism($watchlistEntityPopulationMechanism); - $request = (new CreateWatchlistRequest()) - ->setParent($formattedParent) - ->setWatchlist($watchlist); - $response = $gapicClient->createWatchlistAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.EntityService/CreateWatchlist', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWatchlist(); - $this->assertProtobufEquals($watchlist, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php deleted file mode 100644 index e6d53dc7f72f..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/FeaturedContentNativeDashboardServiceClientTest.php +++ /dev/null @@ -1,295 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return FeaturedContentNativeDashboardServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new FeaturedContentNativeDashboardServiceClient($options); - } - - /** @test */ - public function getFeaturedContentNativeDashboardTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new FeaturedContentNativeDashboard(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new GetFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); - $response = $gapicClient->getFeaturedContentNativeDashboard($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFeaturedContentNativeDashboardExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new GetFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); - try { - $gapicClient->getFeaturedContentNativeDashboard($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function installFeaturedContentNativeDashboardTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nativeDashboard = 'nativeDashboard-671726484'; - $expectedResponse = new InstallFeaturedContentNativeDashboardResponse(); - $expectedResponse->setNativeDashboard($nativeDashboard); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new InstallFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); - $response = $gapicClient->installFeaturedContentNativeDashboard($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/InstallFeaturedContentNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function installFeaturedContentNativeDashboardExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new InstallFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); - try { - $gapicClient->installFeaturedContentNativeDashboard($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFeaturedContentNativeDashboardsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $featuredContentNativeDashboardsElement = new FeaturedContentNativeDashboard(); - $featuredContentNativeDashboards = [ - $featuredContentNativeDashboardsElement, - ]; - $expectedResponse = new ListFeaturedContentNativeDashboardsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFeaturedContentNativeDashboards($featuredContentNativeDashboards); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListFeaturedContentNativeDashboardsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFeaturedContentNativeDashboards($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFeaturedContentNativeDashboards()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/ListFeaturedContentNativeDashboards', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFeaturedContentNativeDashboardsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->contentHubName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListFeaturedContentNativeDashboardsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFeaturedContentNativeDashboards($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFeaturedContentNativeDashboardAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new FeaturedContentNativeDashboard(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->featuredContentNativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[FEATURED_CONTENT_NATIVE_DASHBOARD]'); - $request = (new GetFeaturedContentNativeDashboardRequest()) - ->setName($formattedName); - $response = $gapicClient->getFeaturedContentNativeDashboardAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.FeaturedContentNativeDashboardService/GetFeaturedContentNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php deleted file mode 100644 index 24e45ff2e5ba..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/InstanceServiceClientTest.php +++ /dev/null @@ -1,155 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return InstanceServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new InstanceServiceClient($options); - } - - /** @test */ - public function getInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - try { - $gapicClient->getInstance($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getInstanceAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.InstanceService/GetInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php deleted file mode 100644 index 39c444fc6a19..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/NativeDashboardServiceClientTest.php +++ /dev/null @@ -1,1021 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return NativeDashboardServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new NativeDashboardServiceClient($options); - } - - /** @test */ - public function addChartTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AddChartResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $dashboardChart = new DashboardChart(); - $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; - $dashboardChart->setDisplayName($dashboardChartDisplayName); - $dashboardChartVisualization = new Visualization(); - $dashboardChart->setVisualization($dashboardChartVisualization); - $chartLayout = new ChartLayout(); - $request = (new AddChartRequest()) - ->setName($formattedName) - ->setDashboardChart($dashboardChart) - ->setChartLayout($chartLayout); - $response = $gapicClient->addChart($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/AddChart', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getDashboardChart(); - $this->assertProtobufEquals($dashboardChart, $actualValue); - $actualValue = $actualRequestObject->getChartLayout(); - $this->assertProtobufEquals($chartLayout, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function addChartExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $dashboardChart = new DashboardChart(); - $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; - $dashboardChart->setDisplayName($dashboardChartDisplayName); - $dashboardChartVisualization = new Visualization(); - $dashboardChart->setVisualization($dashboardChartVisualization); - $chartLayout = new ChartLayout(); - $request = (new AddChartRequest()) - ->setName($formattedName) - ->setDashboardChart($dashboardChart) - ->setChartLayout($chartLayout); - try { - $gapicClient->addChart($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNativeDashboardTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $createUserId = 'createUserId-1225950772'; - $updateUserId = 'updateUserId-1278348135'; - $etag = 'etag3123477'; - $expectedResponse = new NativeDashboard(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCreateUserId($createUserId); - $expectedResponse->setUpdateUserId($updateUserId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $nativeDashboard = new NativeDashboard(); - $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; - $nativeDashboard->setDisplayName($nativeDashboardDisplayName); - $request = (new CreateNativeDashboardRequest()) - ->setParent($formattedParent) - ->setNativeDashboard($nativeDashboard); - $response = $gapicClient->createNativeDashboard($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/CreateNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNativeDashboard(); - $this->assertProtobufEquals($nativeDashboard, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNativeDashboardExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $nativeDashboard = new NativeDashboard(); - $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; - $nativeDashboard->setDisplayName($nativeDashboardDisplayName); - $request = (new CreateNativeDashboardRequest()) - ->setParent($formattedParent) - ->setNativeDashboard($nativeDashboard); - try { - $gapicClient->createNativeDashboard($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNativeDashboardTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new DeleteNativeDashboardRequest()) - ->setName($formattedName); - $gapicClient->deleteNativeDashboard($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DeleteNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNativeDashboardExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new DeleteNativeDashboardRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteNativeDashboard($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function duplicateChartTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DuplicateChartResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new DuplicateChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); - $response = $gapicClient->duplicateChart($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DuplicateChart', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getDashboardChart(); - $this->assertProtobufEquals($formattedDashboardChart, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function duplicateChartExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new DuplicateChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); - try { - $gapicClient->duplicateChart($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function duplicateNativeDashboardTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $createUserId = 'createUserId-1225950772'; - $updateUserId = 'updateUserId-1278348135'; - $etag = 'etag3123477'; - $expectedResponse = new NativeDashboard(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCreateUserId($createUserId); - $expectedResponse->setUpdateUserId($updateUserId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $nativeDashboard = new NativeDashboard(); - $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; - $nativeDashboard->setDisplayName($nativeDashboardDisplayName); - $request = (new DuplicateNativeDashboardRequest()) - ->setName($formattedName) - ->setNativeDashboard($nativeDashboard); - $response = $gapicClient->duplicateNativeDashboard($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/DuplicateNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getNativeDashboard(); - $this->assertProtobufEquals($nativeDashboard, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function duplicateNativeDashboardExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $nativeDashboard = new NativeDashboard(); - $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; - $nativeDashboard->setDisplayName($nativeDashboardDisplayName); - $request = (new DuplicateNativeDashboardRequest()) - ->setName($formattedName) - ->setNativeDashboard($nativeDashboard); - try { - $gapicClient->duplicateNativeDashboard($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function editChartTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new EditChartResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $editMask = new FieldMask(); - $request = (new EditChartRequest()) - ->setName($formattedName) - ->setEditMask($editMask); - $response = $gapicClient->editChart($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/EditChart', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getEditMask(); - $this->assertProtobufEquals($editMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function editChartExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $editMask = new FieldMask(); - $request = (new EditChartRequest()) - ->setName($formattedName) - ->setEditMask($editMask); - try { - $gapicClient->editChart($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function exportNativeDashboardsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ExportNativeDashboardsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $names = []; - $request = (new ExportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setNames($names); - $response = $gapicClient->exportNativeDashboards($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ExportNativeDashboards', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($names, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function exportNativeDashboardsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $names = []; - $request = (new ExportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setNames($names); - try { - $gapicClient->exportNativeDashboards($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNativeDashboardTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $createUserId = 'createUserId-1225950772'; - $updateUserId = 'updateUserId-1278348135'; - $etag = 'etag3123477'; - $expectedResponse = new NativeDashboard(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCreateUserId($createUserId); - $expectedResponse->setUpdateUserId($updateUserId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new GetNativeDashboardRequest()) - ->setName($formattedName); - $response = $gapicClient->getNativeDashboard($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/GetNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNativeDashboardExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $request = (new GetNativeDashboardRequest()) - ->setName($formattedName); - try { - $gapicClient->getNativeDashboard($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importNativeDashboardsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ImportNativeDashboardsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $source = new ImportNativeDashboardsInlineSource(); - $sourceDashboards = []; - $source->setDashboards($sourceDashboards); - $request = (new ImportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setSource($source); - $response = $gapicClient->importNativeDashboards($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ImportNativeDashboards', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSource(); - $this->assertProtobufEquals($source, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importNativeDashboardsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $source = new ImportNativeDashboardsInlineSource(); - $sourceDashboards = []; - $source->setDashboards($sourceDashboards); - $request = (new ImportNativeDashboardsRequest()) - ->setParent($formattedParent) - ->setSource($source); - try { - $gapicClient->importNativeDashboards($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNativeDashboardsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $nativeDashboardsElement = new NativeDashboard(); - $nativeDashboards = [ - $nativeDashboardsElement, - ]; - $expectedResponse = new ListNativeDashboardsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setNativeDashboards($nativeDashboards); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListNativeDashboardsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listNativeDashboards($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getNativeDashboards()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/ListNativeDashboards', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNativeDashboardsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListNativeDashboardsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listNativeDashboards($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeChartTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $createUserId = 'createUserId-1225950772'; - $updateUserId = 'updateUserId-1278348135'; - $etag = 'etag3123477'; - $expectedResponse = new NativeDashboard(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCreateUserId($createUserId); - $expectedResponse->setUpdateUserId($updateUserId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new RemoveChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); - $response = $gapicClient->removeChart($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/RemoveChart', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getDashboardChart(); - $this->assertProtobufEquals($formattedDashboardChart, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeChartExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $formattedDashboardChart = $gapicClient->dashboardChartName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[CHART]'); - $request = (new RemoveChartRequest()) - ->setName($formattedName) - ->setDashboardChart($formattedDashboardChart); - try { - $gapicClient->removeChart($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNativeDashboardTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $createUserId = 'createUserId-1225950772'; - $updateUserId = 'updateUserId-1278348135'; - $etag = 'etag3123477'; - $expectedResponse = new NativeDashboard(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCreateUserId($createUserId); - $expectedResponse->setUpdateUserId($updateUserId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $nativeDashboard = new NativeDashboard(); - $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; - $nativeDashboard->setDisplayName($nativeDashboardDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateNativeDashboardRequest()) - ->setNativeDashboard($nativeDashboard) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateNativeDashboard($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/UpdateNativeDashboard', $actualFuncCall); - $actualValue = $actualRequestObject->getNativeDashboard(); - $this->assertProtobufEquals($nativeDashboard, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNativeDashboardExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nativeDashboard = new NativeDashboard(); - $nativeDashboardDisplayName = 'nativeDashboardDisplayName-400195088'; - $nativeDashboard->setDisplayName($nativeDashboardDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateNativeDashboardRequest()) - ->setNativeDashboard($nativeDashboard) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateNativeDashboard($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function addChartAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AddChartResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->nativeDashboardName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[DASHBOARD]'); - $dashboardChart = new DashboardChart(); - $dashboardChartDisplayName = 'dashboardChartDisplayName-260950429'; - $dashboardChart->setDisplayName($dashboardChartDisplayName); - $dashboardChartVisualization = new Visualization(); - $dashboardChart->setVisualization($dashboardChartVisualization); - $chartLayout = new ChartLayout(); - $request = (new AddChartRequest()) - ->setName($formattedName) - ->setDashboardChart($dashboardChart) - ->setChartLayout($chartLayout); - $response = $gapicClient->addChartAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.NativeDashboardService/AddChart', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getDashboardChart(); - $this->assertProtobufEquals($dashboardChart, $actualValue); - $actualValue = $actualRequestObject->getChartLayout(); - $this->assertProtobufEquals($chartLayout, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php deleted file mode 100644 index 42584fb06abd..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/ReferenceListServiceClientTest.php +++ /dev/null @@ -1,434 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ReferenceListServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ReferenceListServiceClient($options); - } - - /** @test */ - public function createReferenceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $referenceListId = 'referenceListId-1667170456'; - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - $response = $gapicClient->createReferenceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReferenceList(); - $this->assertProtobufEquals($referenceList, $actualValue); - $actualValue = $actualRequestObject->getReferenceListId(); - $this->assertProtobufEquals($referenceListId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReferenceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $referenceListId = 'referenceListId-1667170456'; - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - try { - $gapicClient->createReferenceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReferenceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); - $request = (new GetReferenceListRequest()) - ->setName($formattedName); - $response = $gapicClient->getReferenceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/GetReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReferenceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->referenceListName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[REFERENCE_LIST]'); - $request = (new GetReferenceListRequest()) - ->setName($formattedName); - try { - $gapicClient->getReferenceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReferenceListsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $referenceListsElement = new ReferenceList(); - $referenceLists = [ - $referenceListsElement, - ]; - $expectedResponse = new ListReferenceListsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReferenceLists($referenceLists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListReferenceListsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReferenceLists($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReferenceLists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/ListReferenceLists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReferenceListsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListReferenceListsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReferenceLists($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReferenceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $request = (new UpdateReferenceListRequest()) - ->setReferenceList($referenceList); - $response = $gapicClient->updateReferenceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/UpdateReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getReferenceList(); - $this->assertProtobufEquals($referenceList, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReferenceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $request = (new UpdateReferenceListRequest()) - ->setReferenceList($referenceList); - try { - $gapicClient->updateReferenceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReferenceListAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $ruleAssociationsCount = 1522562875; - $expectedResponse = new ReferenceList(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRuleAssociationsCount($ruleAssociationsCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $referenceList = new ReferenceList(); - $referenceListDescription = 'referenceListDescription-265280077'; - $referenceList->setDescription($referenceListDescription); - $referenceListEntries = []; - $referenceList->setEntries($referenceListEntries); - $referenceListSyntaxType = ReferenceListSyntaxType::REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED; - $referenceList->setSyntaxType($referenceListSyntaxType); - $referenceListId = 'referenceListId-1667170456'; - $request = (new CreateReferenceListRequest()) - ->setParent($formattedParent) - ->setReferenceList($referenceList) - ->setReferenceListId($referenceListId); - $response = $gapicClient->createReferenceListAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.ReferenceListService/CreateReferenceList', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReferenceList(); - $this->assertProtobufEquals($referenceList, $actualValue); - $actualValue = $actualRequestObject->getReferenceListId(); - $this->assertProtobufEquals($referenceListId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php b/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php deleted file mode 100644 index 157ee8fd1f14..000000000000 --- a/owl-bot-staging/Chronicle/v1/tests/Unit/V1/Client/RuleServiceClientTest.php +++ /dev/null @@ -1,1100 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RuleServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RuleServiceClient($options); - } - - /** @test */ - public function createRetrohuntTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRetrohuntTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $progressPercentage = 4432484; - $expectedResponse = new Retrohunt(); - $expectedResponse->setName($name); - $expectedResponse->setProgressPercentage($progressPercentage); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRetrohuntTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $retrohunt = new Retrohunt(); - $retrohuntProcessInterval = new Interval(); - $retrohunt->setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - $response = $gapicClient->createRetrohunt($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRetrohunt(); - $this->assertProtobufEquals($retrohunt, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRetrohuntExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRetrohuntTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $retrohunt = new Retrohunt(); - $retrohuntProcessInterval = new Interval(); - $retrohunt->setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - $response = $gapicClient->createRetrohunt($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $revisionId = 'revisionId513861631'; - $displayName = 'displayName1615086568'; - $text = 'text3556653'; - $author = 'author-1406328437'; - $etag = 'etag3123477'; - $scope = 'scope109264468'; - $nearRealTimeLiveRuleEligible = false; - $expectedResponse = new Rule(); - $expectedResponse->setName($name); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setText($text); - $expectedResponse->setAuthor($author); - $expectedResponse->setEtag($etag); - $expectedResponse->setScope($scope); - $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $rule = new Rule(); - $request = (new CreateRuleRequest()) - ->setParent($formattedParent) - ->setRule($rule); - $response = $gapicClient->createRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRule(); - $this->assertProtobufEquals($rule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $rule = new Rule(); - $request = (new CreateRuleRequest()) - ->setParent($formattedParent) - ->setRule($rule); - try { - $gapicClient->createRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new DeleteRuleRequest()) - ->setName($formattedName); - $gapicClient->deleteRule($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/DeleteRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new DeleteRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRetrohuntTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $progressPercentage = 4432484; - $expectedResponse = new Retrohunt(); - $expectedResponse->setName($name2); - $expectedResponse->setProgressPercentage($progressPercentage); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); - $request = (new GetRetrohuntRequest()) - ->setName($formattedName); - $response = $gapicClient->getRetrohunt($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRetrohunt', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRetrohuntExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->retrohuntName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]', '[RETROHUNT]'); - $request = (new GetRetrohuntRequest()) - ->setName($formattedName); - try { - $gapicClient->getRetrohunt($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $revisionId = 'revisionId513861631'; - $displayName = 'displayName1615086568'; - $text = 'text3556653'; - $author = 'author-1406328437'; - $etag = 'etag3123477'; - $scope = 'scope109264468'; - $nearRealTimeLiveRuleEligible = false; - $expectedResponse = new Rule(); - $expectedResponse->setName($name2); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setText($text); - $expectedResponse->setAuthor($author); - $expectedResponse->setEtag($etag); - $expectedResponse->setScope($scope); - $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleRequest()) - ->setName($formattedName); - $response = $gapicClient->getRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->getRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $enabled = false; - $alerting = true; - $archived = true; - $expectedResponse = new RuleDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setEnabled($enabled); - $expectedResponse->setAlerting($alerting); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->getRuleDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/GetRuleDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleDeploymentName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new GetRuleDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->getRuleDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRetrohuntsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $retrohuntsElement = new Retrohunt(); - $retrohunts = [ - $retrohuntsElement, - ]; - $expectedResponse = new ListRetrohuntsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRetrohunts($retrohunts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRetrohuntsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRetrohunts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRetrohunts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRetrohunts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRetrohuntsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRetrohuntsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRetrohunts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleDeploymentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $ruleDeploymentsElement = new RuleDeployment(); - $ruleDeployments = [ - $ruleDeploymentsElement, - ]; - $expectedResponse = new ListRuleDeploymentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRuleDeployments($ruleDeployments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleDeploymentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRuleDeployments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRuleDeployments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleDeployments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleDeploymentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleDeploymentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRuleDeployments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleRevisionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rulesElement = new Rule(); - $rules = [ - $rulesElement, - ]; - $expectedResponse = new ListRuleRevisionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRules($rules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleRevisionsRequest()) - ->setName($formattedName); - $response = $gapicClient->listRuleRevisions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRuleRevisions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuleRevisionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $request = (new ListRuleRevisionsRequest()) - ->setName($formattedName); - try { - $gapicClient->listRuleRevisions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rulesElement = new Rule(); - $rules = [ - $rulesElement, - ]; - $expectedResponse = new ListRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRules($rules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListRulesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRules($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/ListRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new ListRulesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $revisionId = 'revisionId513861631'; - $displayName = 'displayName1615086568'; - $text = 'text3556653'; - $author = 'author-1406328437'; - $etag = 'etag3123477'; - $scope = 'scope109264468'; - $nearRealTimeLiveRuleEligible = false; - $expectedResponse = new Rule(); - $expectedResponse->setName($name); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setText($text); - $expectedResponse->setAuthor($author); - $expectedResponse->setEtag($etag); - $expectedResponse->setScope($scope); - $expectedResponse->setNearRealTimeLiveRuleEligible($nearRealTimeLiveRuleEligible); - $transport->addResponse($expectedResponse); - // Mock request - $rule = new Rule(); - $request = (new UpdateRuleRequest()) - ->setRule($rule); - $response = $gapicClient->updateRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getRule(); - $this->assertProtobufEquals($rule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $rule = new Rule(); - $request = (new UpdateRuleRequest()) - ->setRule($rule); - try { - $gapicClient->updateRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $enabled = false; - $alerting = true; - $archived = true; - $expectedResponse = new RuleDeployment(); - $expectedResponse->setName($name); - $expectedResponse->setEnabled($enabled); - $expectedResponse->setAlerting($alerting); - $expectedResponse->setArchived($archived); - $transport->addResponse($expectedResponse); - // Mock request - $ruleDeployment = new RuleDeployment(); - $ruleDeploymentName = 'ruleDeploymentName648362252'; - $ruleDeployment->setName($ruleDeploymentName); - $updateMask = new FieldMask(); - $request = (new UpdateRuleDeploymentRequest()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateRuleDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/UpdateRuleDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getRuleDeployment(); - $this->assertProtobufEquals($ruleDeployment, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $ruleDeployment = new RuleDeployment(); - $ruleDeploymentName = 'ruleDeploymentName648362252'; - $ruleDeployment->setName($ruleDeploymentName); - $updateMask = new FieldMask(); - $request = (new UpdateRuleDeploymentRequest()) - ->setRuleDeployment($ruleDeployment) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateRuleDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRetrohuntAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRetrohuntTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $progressPercentage = 4432484; - $expectedResponse = new Retrohunt(); - $expectedResponse->setName($name); - $expectedResponse->setProgressPercentage($progressPercentage); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRetrohuntTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[RULE]'); - $retrohunt = new Retrohunt(); - $retrohuntProcessInterval = new Interval(); - $retrohunt->setProcessInterval($retrohuntProcessInterval); - $request = (new CreateRetrohuntRequest()) - ->setParent($formattedParent) - ->setRetrohunt($retrohunt); - $response = $gapicClient->createRetrohuntAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.chronicle.v1.RuleService/CreateRetrohunt', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRetrohunt(); - $this->assertProtobufEquals($retrohunt, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRetrohuntTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -}